From c9de4444320e1c706af9123ac089d053fe561d49 Mon Sep 17 00:00:00 2001 From: Cole Deck Date: Mon, 10 Oct 2022 23:13:30 -0500 Subject: [PATCH] Add exe installer builder --- release.sh | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/release.sh b/release.sh index 58b1d4f..207c366 100644 --- a/release.sh +++ b/release.sh @@ -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 -rm release-$COMMIT.zip \ No newline at end of file +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 \ No newline at end of file