aboutsummaryrefslogtreecommitdiff
path: root/setup/package.sh
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-02-09 22:01:47 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-02-09 22:01:47 +1300
commit8a1ecff3518bcbe1a1700c119e7afd4cb106bbae (patch)
treef7ae2aea48bb27c848688d82750a623ab77a23d3 /setup/package.sh
parenta4e4fd560bb52b2a06d9815f8d2251dc5456b6a6 (diff)
downloadtrackermap-server-8a1ecff3518bcbe1a1700c119e7afd4cb106bbae.tar.gz
trackermap-server-8a1ecff3518bcbe1a1700c119e7afd4cb106bbae.tar.bz2
trackermap-server-8a1ecff3518bcbe1a1700c119e7afd4cb106bbae.zip
Added Mac OS X installer
Diffstat (limited to 'setup/package.sh')
-rwxr-xr-xsetup/package.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/setup/package.sh b/setup/package.sh
index ac0f021a8..cd07fc46c 100755
--- a/setup/package.sh
+++ b/setup/package.sh
@@ -126,6 +126,22 @@ chmod +x out/bin/traccar
makeself out traccar.run "traccar" "mkdir $app; cp -rf * $app; $app/bin/traccar install"
zip -j traccar-linux-64.zip traccar.run linux/README.txt
+# MACOSX PACKAGE
+
+rm out/conf/linux.cfg
+rm out/lib/libwrapper.so
+
+cp macosx/macosx.cfg out/conf
+
+sed -i "s/linux.cfg/macosx.cfg/g" out/conf/wrapper.conf
+
+cp wrapper/bin/wrapper-macosx-universal-64 out/bin/wrapper
+cp wrapper/lib/libwrapper-macosx-universal-64.jnilib out/lib/libwrapper.jnilib
+chmod +x out/bin/traccar
+
+makeself out traccar.run "traccar" "mkdir -p $app; cp -rf * $app; $app/bin/traccar install"
+zip -j traccar-macosx-64.zip traccar.run macosx/README.txt
+
rm traccar.run
rm -rf out