Compare commits
2 Commits
1665459376
...
1665461763
Author | SHA1 | Date | |
---|---|---|---|
02175cc67e | |||
c9de444432 |
23
release.sh
23
release.sh
@ -11,8 +11,11 @@ export PATH=$PATH:"C:\Program Files\7-Zip"
|
||||
TAG=$(date +%s)
|
||||
"C:/Program Files/Python310/python.exe" setup.py build
|
||||
sleep 2
|
||||
7z a -r release-$COMMIT.zip ./build/exe.win-amd64-3.10/*
|
||||
|
||||
mv ./build/exe.win-amd64-3.10/ ./build/ippigeon-win
|
||||
7z a -r release-$COMMIT.zip ./build/ippigeon-win
|
||||
7z a -sfx7z.sfx IPPigeon-install.exe ./build/ippigeon-win
|
||||
mv ./build/ippigeon-win/ ./build/exe.win-amd64-3.10
|
||||
#sleep 30
|
||||
DATA='{
|
||||
"body": "Autogenerated release",
|
||||
"draft": false,
|
||||
@ -33,9 +36,19 @@ OUT=$(curl -X 'POST' \
|
||||
'https://git.deck.sh/api/v1/repos/Interfaz/ff/releases/'$ID'/assets?token='$TOKEN'' \
|
||||
-H 'accept: application/json' \
|
||||
-H 'Content-Type: multipart/form-data' \
|
||||
-F 'attachment=@'release-$COMMIT.zip';type=application/x-zip-compressed')
|
||||
-F 'attachment=@IPPigeon-install.exe;type=application/octet-stream')
|
||||
|
||||
URL=$(echo $OUT | cut -d',' -f 7 | cut -d\" -f4)
|
||||
echo $URL
|
||||
|
||||
curl -d "$URL" https://notify.deck.sh/ipro-release
|
||||
rm release-$COMMIT.zip
|
||||
echo $URL
|
||||
|
||||
OUT=$(curl -X 'POST' \
|
||||
'https://git.deck.sh/api/v1/repos/Interfaz/ff/releases/'$ID'/assets?token='$TOKEN'' \
|
||||
-H 'accept: application/json' \
|
||||
-H 'Content-Type: multipart/form-data' \
|
||||
-F 'attachment=@'release-$COMMIT.zip';type=application/x-zip-compressed')
|
||||
|
||||
|
||||
rm release-$COMMIT.zip
|
||||
rm IPPigeon-install.exe
|
Reference in New Issue
Block a user