forked from harelba/q
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdo-manual-release.sh
executable file
·29 lines (24 loc) · 1.03 KB
/
do-manual-release.sh
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
#!/bin/bash -x
set -e
VERSION=$(bin/__version__.py)
echo "Packing binary for $TRAVIS_OS_NAME"
if [[ "$TRAVIS_OS_NAME" == "osx" || "$TRAVIS_OS_NAME" == "linux" ]]
then
echo "Packing $TRAVIS_OS_NAME installer - packing binary"
pyci pack binary
echo "Packing $TRAVIS_OS_NAME installer - uploading"
pyci github upload-asset --asset q-$(uname -m)-$(uname -s) --release $VERSION
else
echo "Packing windows installer - packing binary"
pyci pack binary
echo "Packing windows installer - listing files"
find `pwd` -ls | grep -v \.git/
echo "Packing windows installer - packing nsis"
BINARY_LOCATION="c:\\Users\\travis\\build\\harelba\\q\\q-AMD64-Windows.exe"
pyci pack nsis --program-files-dir q-TextAsData --binary-path $BINARY_LOCATION --version ${VERSION}.0
echo "Packing windows installer - uploading"
pyci github upload-asset --asset $BINARY_LOCATION --release $VERSION
SETUP_LOCATION="c:\\Users\\travis\\build\\harelba\\q\\q-AMD64-Windows-installer.exe"
pyci github upload-asset --asset $SETUP_LOCATION --release $VERSION
fi
echo "done"