[2601] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
[2786] | 3 | ## settings ##
|
---|
| 4 |
|
---|
[3776] | 5 | VERSION=latest
|
---|
[2786] | 6 |
|
---|
| 7 | PROGRAM_FILES="/cygdrive/c/Program Files"
|
---|
| 8 |
|
---|
[3771] | 9 | LAUNCH4J_XML="C:\Dokumente und Einstellungen\ulfl\Eigene Dateien\svn.openstreetmap.org\applications\editors\josm\nsis\launch4j.xml"
|
---|
[2786] | 10 |
|
---|
| 11 |
|
---|
[2601] | 12 | ### download required files ###
|
---|
| 13 | mkdir -p downloads
|
---|
| 14 | cd downloads
|
---|
| 15 |
|
---|
| 16 | # get latest josm version (and license)
|
---|
| 17 | wget -nc http://josm.eigenheimstrasse.de/download/josm-latest.jar
|
---|
| 18 | wget -nc http://josm.eigenheimstrasse.de/browser/LICENSE?format=raw
|
---|
| 19 | cp LICENSE?format=raw LICENSE
|
---|
| 20 |
|
---|
| 21 | # get latest plugin (and supporting files) versions
|
---|
[3771] | 22 | cp ../../plugins/mappaint/mappaint.jar .
|
---|
| 23 | cp ../../plugins/namefinder/namefinder.jar .
|
---|
| 24 | #cp ../../plugins/osmarender/osmarender.jar .
|
---|
| 25 | #cp ../../plugins/annotation-tester/annotation-tester.jar .
|
---|
| 26 | #cp ../../plugins/wmsplugin/wmsplugin.jar .
|
---|
[2952] | 27 |
|
---|
[3773] | 28 | # wget -N http://svn.openstreetmap.org/applications/editors/josm/plugins/mappaint/mappaint.jar
|
---|
| 29 | # wget -N http://www.free-map.org.uk/downloads/josm/mappaint.jar
|
---|
| 30 | # wget -N http://www.free-map.org.uk/downloads/josm/elemstyles.xml
|
---|
| 31 | wget -N http://www.eigenheimstrasse.de/josm/plugins/osmarender.jar
|
---|
| 32 | wget -N http://www.eigenheimstrasse.de/josm/plugins/annotation-tester.jar
|
---|
| 33 | wget -N http://chippy2005.googlepages.com/wmsplugin.jar
|
---|
[3801] | 34 | # wget -N http://personales.ya.com/frsantos/validator.jar
|
---|
| 35 | wget -N http://personales.ya.com/osmfrsantos/validator/latest/validator.jar
|
---|
[3773] | 36 | wget -N http://thomas.walraet.net/tways/tways-0.2.jar
|
---|
[2601] | 37 |
|
---|
| 38 | cd ..
|
---|
| 39 |
|
---|
| 40 | ### convert jar to exe ###
|
---|
| 41 | # (makes attaching to file extensions a lot easier)
|
---|
| 42 | # launch4j - http://launch4j.sourceforge.net/
|
---|
[2786] | 43 | "$PROGRAM_FILES/Launch4j/launch4jc.exe" "$LAUNCH4J_XML"
|
---|
[2601] | 44 |
|
---|
| 45 | ### create the installer exe ###
|
---|
| 46 | # NSIS - http://nsis.sourceforge.net/Main_Page
|
---|
[3771] | 47 | "$PROGRAM_FILES/nsis/makensis.exe" /DVERSION=$VERSION josm.nsi
|
---|