Last change
on this file since 5148 was 5148, checked in by joerg, 18 years ago |
nsis/josm-setup-unix.sh: First Version of unix Version for creating Windows Installer Files
|
-
Property svn:executable
set to
*
|
File size:
1.5 KB
|
Rev | Line | |
---|
[5148] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | # Creates an josm-install.exe File
|
---|
| 4 | # for working on a debian-unix system install the nsis package with
|
---|
| 5 | # apt-get install nsis
|
---|
| 6 | # replace the /usr/share/nsis/Plugins/System.dll with the new Version from the nsis .zip File
|
---|
| 7 | # The old one is missing the Call:: Function
|
---|
| 8 | # then download launch4j from http://launch4j.sourceforge.net/
|
---|
| 9 |
|
---|
| 10 | ## settings ##
|
---|
| 11 | LAUNCH4J="java -jar launch4j/launch4j.jar"
|
---|
| 12 |
|
---|
| 13 | export VERSION=latest
|
---|
| 14 | #export VERSION=custom
|
---|
| 15 |
|
---|
| 16 | ##################################################################
|
---|
| 17 | ### Build the Complete josm + Plugin Stuff
|
---|
| 18 | if true; then
|
---|
| 19 | echo "Build the Complete josm Stuff"
|
---|
| 20 |
|
---|
| 21 | echo "Compile Josm"
|
---|
| 22 | cd ../core
|
---|
| 23 | ant clean
|
---|
| 24 | ant compile || exit -1
|
---|
| 25 | cd ..
|
---|
| 26 |
|
---|
| 27 | echo "Compile Josm Plugins"
|
---|
| 28 | cd plugins
|
---|
| 29 | ant clean
|
---|
| 30 | ant dist || exit -1
|
---|
| 31 | fi
|
---|
| 32 |
|
---|
| 33 |
|
---|
| 34 | ##################################################################
|
---|
| 35 | ### Copy the required Stuff into the download Directory
|
---|
| 36 | mkdir -p downloads
|
---|
| 37 | (
|
---|
| 38 | cd downloads
|
---|
| 39 |
|
---|
| 40 | # get latest josm version (and license)
|
---|
| 41 | cp ../../core/LICENSE LICENSE
|
---|
| 42 | cp ../../core/dist/josm-custom.jar josm-latest.jar
|
---|
| 43 |
|
---|
| 44 | # Get all plugins
|
---|
| 45 | cp ../../plugins/dist/*.jar .
|
---|
| 46 | )
|
---|
| 47 |
|
---|
| 48 | ##################################################################
|
---|
| 49 | ### convert jar to exe
|
---|
| 50 | # (makes attaching to file extensions a lot easier)
|
---|
| 51 | # launch4j - http://launch4j.sourceforge.net/
|
---|
| 52 | $LAUNCH4J ./launch4j.xml
|
---|
| 53 |
|
---|
| 54 | ##################################################################
|
---|
| 55 | ### create the installer exe
|
---|
| 56 | # NSIS - http://nsis.sourceforge.net/Main_Page
|
---|
| 57 | # apt-get install nsis
|
---|
| 58 | makensis -DVERSION=$VERSION josm.nsi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.