-
-
Notifications
You must be signed in to change notification settings - Fork 72
Expand file tree
/
Copy pathuploadSevalla.sh
More file actions
executable file
·18 lines (15 loc) · 802 Bytes
/
Copy pathuploadSevalla.sh
File metadata and controls
executable file
·18 lines (15 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
apiUrl=https://minskybe-x7dj1.sevalla.app
version=`git describe`
releaseDate=`git log -1 --format=%cs --date=iso`
arch=`arch`
if [ $arch = 'i386' -o $arch = 'x86_64' ]; then arch=x64; fi
os=`uname`
if git describe|grep beta; then
beta=--beta
fi
if [ $os = Darwin ]; then
python3 ~/usr/bin/upload_assets.py --api-url $apiUrl --product minsky --version $version --os macos --arch $arch --release-date $releaseDate --sign ~/minsky-signing.key $beta gui-js/dist/ravel-$version-$arch.dmg
else #linux, but assume we're running this in a MXE build directory
python3 ~/usr/bin/upload_assets.py --api-url $apiUrl --product minsky --version $version --os windows --arch $arch --release-date $releaseDate --sign ~/minsky-signing.key $beta gui-js/dist/executables/ravel-$version.exe
fi