[2601] | 1 | #!/bin/sh
|
---|
| 2 |
|
---|
[2786] | 3 | ## settings ##
|
---|
| 4 |
|
---|
[3243] | 5 | VERSION=0.0.8
|
---|
[2786] | 6 |
|
---|
| 7 | PROGRAM_FILES="/cygdrive/c/Program Files"
|
---|
| 8 |
|
---|
| 9 | LAUNCH4J_XML="C:\Dokumente und Einstellungen\ulfl\Eigene Dateien\proj\gps\osm\svn.openstreetmap.org\applications\nsis\launch4j.xml"
|
---|
| 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
|
---|
[2952] | 22 | cp ../../editors/josm/plugins/mappaint/mappaint.jar .
|
---|
| 23 | cp ../../editors/josm/plugins/namefinder/namefinder.jar .
|
---|
| 24 | #cp ../../editors/josm/plugins/osmarender/osmarender.jar .
|
---|
| 25 | #cp ../../editors/josm/plugins/annotation-tester/annotation-tester.jar .
|
---|
| 26 | #cp ../../editors/josm/plugins/wmsplugin/wmsplugin.jar .
|
---|
| 27 |
|
---|
| 28 | # wget -nc http://svn.openstreetmap.org/applications/editors/josm/plugins/mappaint/mappaint.jar
|
---|
[2786] | 29 | # wget -nc http://www.free-map.org.uk/downloads/josm/mappaint.jar
|
---|
| 30 | # wget -nc http://www.free-map.org.uk/downloads/josm/elemstyles.xml
|
---|
[2601] | 31 | wget -nc http://www.eigenheimstrasse.de/josm/plugins/osmarender.jar
|
---|
[2786] | 32 | wget -nc http://www.eigenheimstrasse.de/josm/plugins/annotation-tester.jar
|
---|
[2601] | 33 | wget -nc http://chippy2005.googlepages.com/wmsplugin.jar
|
---|
[3243] | 34 | wget -nc http://personales.ya.com/frsantos/validator.jar
|
---|
[2601] | 35 |
|
---|
| 36 | cd ..
|
---|
| 37 |
|
---|
| 38 | ### convert jar to exe ###
|
---|
| 39 | # (makes attaching to file extensions a lot easier)
|
---|
| 40 | # launch4j - http://launch4j.sourceforge.net/
|
---|
[2786] | 41 | "$PROGRAM_FILES/Launch4j/launch4jc.exe" "$LAUNCH4J_XML"
|
---|
[2601] | 42 |
|
---|
| 43 | ### create the installer exe ###
|
---|
| 44 | # NSIS - http://nsis.sourceforge.net/Main_Page
|
---|
[2786] | 45 | "$PROGRAM_FILES/nsis/makensis.exe" /DVERSION=$VERSION openstreetmap.nsi
|
---|