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
36 lines (28 loc) · 897 Bytes
/
travis_deploy.sh
File metadata and controls
36 lines (28 loc) · 897 Bytes
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
#!/bin/sh
# Create a zip file for Windows, Linux and macOS.
#----------- check for Windows, Linux and macOS build
if [ "$TRAVIS_OS_NAME" = "linux" ]
then
# Linux
sudo apt-get install zip -y
echo "Building zip file for Linux amd64"
zip -j $RELEASE_ZIP_FILE enduser/*.txt enduser/trackereditor
elif [ "$TRAVIS_OS_NAME" = "osx" ]
then
# Apple macOS
echo "Building zip file for macOS"
# Add certificate into the macOS system
source ./scripts/travis_add_macos_cert.sh
# sign + zip the app
source ./scripts/travis_sign_macos_app.sh
elif [ "$TRAVIS_OS_NAME" = "windows" ]
then
# Windows
echo "Building zip file for windows"
choco install zip
zip -j $RELEASE_ZIP_FILE enduser/*.txt enduser/trackereditor.exe enduser/*.dll
fi
echo "Create Amazon s3 folder"
mkdir -p s3
cp $RELEASE_ZIP_FILE s3/$(date +%F_%R)_$RELEASE_ZIP_FILE
echo "Created $RELEASE_ZIP_FILE for GitHub"