source: subversion/applications/editors/josm/nsis/josm-setup-unix.sh @ 5214

Last change on this file since 5214 was 5214, checked in by ulf, 13 years ago

remove the need for a downloads dir, as we download nothing and get all files from the subversion directory directly

  • Property svn:executable set to *
File size: 1.9 KB
Line 
1#!/bin/bash
2
3# Creates an josm-setup-xy.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 Version from the nsis .zip File
7# The one comming with the debian package is missing the Call:: Function
8# See also /usr/share/doc/nsis/README.Debian
9#
10# Then download launch4j from http://launch4j.sourceforge.net/
11# wget http://mesh.dl.sourceforge.net/sourceforge/launch4j/launch4j-3.0.0-pre2-linux.tgz
12# and unpack it to /usr/share/launch4j
13
14## settings ##
15LAUNCH4J="java -jar /usr/share/launch4j/launch4j.jar"
16
17svncorerevision=`svnversion ../core`
18svnpluginsrevision=`svnversion ../plugins`
19svnrevision="$svncorerevision-$svnpluginsrevision"
20
21#export VERSION=latest
22export VERSION=custom-${svnrevision}                                         
23
24echo "Creating Windows Installer for josm-$VERSION"
25
26##################################################################
27### Build the Complete josm + Plugin Stuff
28if true; then
29    (
30        echo "Build the Complete josm Stuff"
31       
32        echo "Compile Josm"
33        cd ../core
34        ant -q clean
35        ant -q compile || exit -1
36        cd ..
37       
38        echo "Compile Josm Plugins"
39        cd plugins
40        ant -q clean
41        ant -q dist || exit -1
42        ) || exit -1
43fi
44
45echo 
46echo "##################################################################"
47echo "### convert jar to exe with launch4j"
48# (an exe file makes attaching to file extensions a lot easier)
49# launch4j - http://launch4j.sourceforge.net/
50rm josm.exe
51$LAUNCH4J ./launch4j.xml
52
53if ! [ -s josm.exe ]; then
54    echo "NO Josm File Created"
55    exit -1
56fi
57
58echo 
59echo "##################################################################"
60echo "### create the installer exe with makensis"
61# NSIS - http://nsis.sourceforge.net/Main_Page
62# apt-get install nsis
63makensis -V2 -DVERSION=$VERSION josm.nsi
64
65# delete the intermediate file, just to avoid confusion
66rm josm.exe
Note: See TracBrowser for help on using the repository browser.