-
-
Notifications
You must be signed in to change notification settings - Fork 756
/
release.sh
executable file
·24 lines (24 loc) · 1.01 KB
/
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
#!/bin/bash
git checkout master
rm -rf NitroSniperGo_build_*
mkdir NitroSniperGo_build_win64 NitroSniperGo_build_linux NitroSniperGo_build_mac
env GOOS=windows GOARCH=amd64 go build && cp settings.json settings.json NitroSniperGo.exe NitroSniperGo_build_win64
env GOOS=linux go build && cp settings.json settings.json NitroSniperGo NitroSniperGo_build_linux
go build && cp NitroSniperGo settings.json sound.mp3 NitroSniperGo_build_mac
zip -r NitroSniperGo_build_linux NitroSniperGo_build_linux
zip -r NitroSniperGo_build_win64 NitroSniperGo_build_win64
zip -r NitroSniperGo_build_mac NitroSniperGo_build_mac
rm -rf NitroSniperGo_build_win64 NitroSniperGo_build_linux NitroSniperGo_build_mac
hub release create -d -m "NitroSniperGo Build $1" $1
files=$(find . -type f -name "*.zip" -exec echo '-a' {} \;)
hub release edit $files -m "NitroSniperGo Build $1" $1
rm -rf *.zip NitroSniperGo*
git checkout heroku
git pull
git merge --no-ff master
git push
git checkout replit
git pull
git merge --no-ff heroku
git push
git checkout master