diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-09 18:58:41 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-07-09 18:58:41 +1200 |
commit | 9d0c476b042f8347ec201372a9b72cf6076902c9 (patch) | |
tree | 52e86aff2773ef0d59ad8d5df76e14bb6732a0d7 /setup/package.sh | |
parent | b239fff7c8e68551d4f7da759cf18e23e7c741bb (diff) | |
download | trackermap-server-9d0c476b042f8347ec201372a9b72cf6076902c9.tar.gz trackermap-server-9d0c476b042f8347ec201372a9b72cf6076902c9.tar.bz2 trackermap-server-9d0c476b042f8347ec201372a9b72cf6076902c9.zip |
Fix package script for mac (fix #1043)
Diffstat (limited to 'setup/package.sh')
-rwxr-xr-x | setup/package.sh | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/setup/package.sh b/setup/package.sh index a7b58b599..b75e691e4 100755 --- a/setup/package.sh +++ b/setup/package.sh @@ -94,7 +94,7 @@ package_windows () { wine app/ISCC.exe windows/traccar.iss - zip -j traccar-$1-$VERSION.zip windows/Output/setup.exe README.txt + zip -j traccar-$1-$VERSION.zip windows/Output/traccar-setup.exe README.txt rm -rf windows/Output/ rm -rf tmp/ @@ -108,26 +108,26 @@ package_unix () { cp wrapper/lib/wrapper.jar out/lib cp wrapper/src/conf/wrapper.conf.in out/conf/wrapper.conf - sed -i 's/tail -1/tail -n 1/g' out/bin/traccar + perl -i -pe 's/tail -1/tail -n 1/g' out/bin/traccar chmod +x out/bin/traccar cp ../target/tracker-server.jar out cp ../target/lib/* out/lib -cp ../schema/* out/schema + cp ../schema/* out/schema cp -r ../web/* out/web cp unix/traccar.xml out/conf - sed -i 's/@app.name@/traccar/g' out/bin/traccar - sed -i 's/@app.long.name@/traccar/g' out/bin/traccar - - sed -i '/wrapper.java.classpath.1/i\wrapper.java.classpath.2=../tracker-server.jar' out/conf/wrapper.conf - sed -i '/wrapper.app.parameter.1/i\wrapper.app.parameter.2=../conf/traccar.xml' out/conf/wrapper.conf - sed -i 's/wrapper.java.additional.1=/wrapper.java.additional.1=-Dfile.encoding=UTF-8/g' out/conf/wrapper.conf - sed -i 's/<YourMainClass>/org.traccar.Main/g' out/conf/wrapper.conf - sed -i 's/@app.name@/traccar/g' out/conf/wrapper.conf - sed -i 's/@app.long.name@/traccar/g' out/conf/wrapper.conf - sed -i 's/@app.description@/traccar/g' out/conf/wrapper.conf - sed -i 's/wrapper.logfile=..\/logs\/wrapper.log/wrapper.logfile=..\/logs\/wrapper.log.YYYYMMDD\nwrapper.logfile.rollmode=DATE/g' out/conf/wrapper.conf + perl -i -pe 's/@app.name@/traccar/g' out/bin/traccar + perl -i -pe 's/@app.long.name@/traccar/g' out/bin/traccar + + perl -i -pe '/wrapper.java.classpath.1/i\wrapper.java.classpath.2=../tracker-server.jar' out/conf/wrapper.conf + perl -i -pe '/wrapper.app.parameter.1/i\wrapper.app.parameter.2=../conf/traccar.xml' out/conf/wrapper.conf + perl -i -pe 's/wrapper.java.additional.1=/wrapper.java.additional.1=-Dfile.encoding=UTF-8/g' out/conf/wrapper.conf + perl -i -pe 's/<YourMainClass>/org.traccar.Main/g' out/conf/wrapper.conf + perl -i -pe 's/@app.name@/traccar/g' out/conf/wrapper.conf + perl -i -pe 's/@app.long.name@/traccar/g' out/conf/wrapper.conf + perl -i -pe 's/@app.description@/traccar/g' out/conf/wrapper.conf + perl -i -pe 's/wrapper.logfile=..\/logs\/wrapper.log/wrapper.logfile=..\/logs\/wrapper.log.YYYYMMDD\nwrapper.logfile.rollmode=DATE/g' out/conf/wrapper.conf eval $2 |