forked from GerryFerdinandus/bittorrent-tracker-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtravis_deploy.sh
More file actions
48 lines (34 loc) · 1.11 KB
/
travis_deploy.sh
File metadata and controls
48 lines (34 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
#Create a zip file for Windows, Linux and Apple macOS
#this will be set later
unset RELEASE_ZIP_FILE
#----------- check for Windows, Linux and Apple macOS build
if [ "$TRAVIS_OS_NAME" = "linux" ]
then
#wine = windows
if [ "$LAZ_ENV" = "wine" ]
then
#windows
export RELEASE_ZIP_FILE="trackereditor_win32.zip"
zip -j $RELEASE_ZIP_FILE enduser/*.txt enduser/trackereditor.exe enduser/libeay32.dll enduser/ssleay32.dll
else
#linux
export RELEASE_ZIP_FILE="trackereditor_linux_amd64.zip"
zip -j $RELEASE_ZIP_FILE enduser/*.txt enduser/trackereditor
fi
elif [ "$TRAVIS_OS_NAME" = "osx" ]
then
#Apple os x
export RELEASE_ZIP_FILE="trackereditor_macOS.zip"
cd enduser
#move the executable to the application bundle
mv trackereditor trackereditor.app/Contents/MacOS
#move the trackers list to application bundle
mv add_trackers.txt trackereditor.app/Contents/MacOS
mv remove_trackers.txt trackereditor.app/Contents/MacOS
#Create the zip file.
zip -j ../$RELEASE_ZIP_FILE *.txt
zip -r ../$RELEASE_ZIP_FILE trackereditor.app
cd ..
fi
echo "Created $RELEASE_ZIP_FILE for GitHub"