Add exe installer builder
This commit is contained in:
parent
a83e4016ab
commit
c9de444432
17
release.sh
17
release.sh
@ -12,7 +12,8 @@ TAG=$(date +%s)
|
|||||||
"C:/Program Files/Python310/python.exe" setup.py build
|
"C:/Program Files/Python310/python.exe" setup.py build
|
||||||
sleep 2
|
sleep 2
|
||||||
7z a -r release-$COMMIT.zip ./build/exe.win-amd64-3.10/*
|
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='{
|
DATA='{
|
||||||
"body": "Autogenerated release",
|
"body": "Autogenerated release",
|
||||||
"draft": false,
|
"draft": false,
|
||||||
@ -33,9 +34,19 @@ OUT=$(curl -X 'POST' \
|
|||||||
'https://git.deck.sh/api/v1/repos/Interfaz/ff/releases/'$ID'/assets?token='$TOKEN'' \
|
'https://git.deck.sh/api/v1/repos/Interfaz/ff/releases/'$ID'/assets?token='$TOKEN'' \
|
||||||
-H 'accept: application/json' \
|
-H 'accept: application/json' \
|
||||||
-H 'Content-Type: multipart/form-data' \
|
-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)
|
URL=$(echo $OUT | cut -d',' -f 7 | cut -d\" -f4)
|
||||||
echo $URL
|
|
||||||
curl -d "$URL" https://notify.deck.sh/ipro-release
|
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 release-$COMMIT.zip
|
||||||
|
rm IPPigeon-install.exe
|
Loading…
x
Reference in New Issue
Block a user