|
|
|
@ -12,7 +12,8 @@ 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/*
|
|
|
|
|
|
|
|
|
|
7z a -sfx7z.sfx IPPigeon-install.exe ./build/exe.win-amd64-3.10/*
|
|
|
|
|
#sleep 30
|
|
|
|
|
DATA='{
|
|
|
|
|
"body": "Autogenerated release",
|
|
|
|
|
"draft": false,
|
|
|
|
@ -33,9 +34,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
|
|
|
|
|
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
|