Skip to content

Commit a0f5cf6

Browse files
Initial commit
Bash file for creating zip file for deployment.
1 parent 63feca1 commit a0f5cf6

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

scripts/travis_deploy.sh

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#!/bin/bash
2+
3+
#Create a zip file for Windows, Linux and Apple OS X
4+
5+
#this will be set later
6+
unset RELEASE_ZIP_FILE
7+
8+
#----------- check for Windows, Linux and Apple OS X build
9+
if [ "$TRAVIS_OS_NAME" = "linux" ]
10+
then
11+
12+
#wine = windows
13+
if [ "$LAZ_ENV" = "wine" ]
14+
then
15+
16+
#windows
17+
export RELEASE_ZIP_FILE="trackereditor_win32.zip"
18+
zip -j $RELEASE_ZIP_FILE enduser/*.txt enduser/trackereditor.exe
19+
20+
else
21+
22+
#linux
23+
export RELEASE_ZIP_FILE="trackereditor_linux_amd64.zip"
24+
zip -j $RELEASE_ZIP_FILE enduser/*.txt enduser/trackereditor
25+
26+
fi
27+
28+
elif [ "$TRAVIS_OS_NAME" = "osx" ]
29+
then
30+
#Apple os x
31+
export RELEASE_ZIP_FILE="trackereditor_os_x.zip"
32+
cd enduser
33+
34+
#move the executable to the application bundle
35+
mv trackereditor trackereditor.app/Contents/MacOS
36+
37+
#move the trackers list to application bundle
38+
mv add_trackers.txt trackereditor.app/Contents/MacOS
39+
mv remove_trackers.txt trackereditor.app/Contents/MacOS
40+
41+
#Create the zip file.
42+
zip -j ../$RELEASE_ZIP_FILE *.txt
43+
zip -r ../$RELEASE_ZIP_FILE trackereditor.app
44+
cd ..
45+
46+
fi
47+
48+
echo "Created $RELEASE_ZIP_FILE for GitHub"

0 commit comments

Comments
 (0)