Compare commits
5 Commits
1665459376
...
1665463933
Author | SHA1 | Date | |
---|---|---|---|
09836efcc4 | |||
1254b543e9 | |||
3838c37b1b | |||
02175cc67e | |||
c9de444432 |
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,8 +1,7 @@
|
|||||||
__pycache__/
|
__pycache__/
|
||||||
build/
|
build/
|
||||||
config.yaml
|
config.yaml
|
||||||
0xf44ee3942e7dgendata.csv
|
*.csv
|
||||||
0xf44ee3942e7agendata.csv
|
|
||||||
admin-key.ppk
|
admin-key.ppk
|
||||||
token.txt
|
token.txt
|
||||||
*.zip
|
*.zip
|
26
release.sh
26
release.sh
@ -11,8 +11,11 @@ export PATH=$PATH:"C:\Program Files\7-Zip"
|
|||||||
TAG=$(date +%s)
|
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/*
|
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='{
|
DATA='{
|
||||||
"body": "Autogenerated release",
|
"body": "Autogenerated release",
|
||||||
"draft": false,
|
"draft": false,
|
||||||
@ -33,9 +36,22 @@ 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
|
|
||||||
|
|
||||||
|
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')
|
||||||
|
|
||||||
|
URLZIP=$(echo $OUT | cut -d',' -f 7 | cut -d\" -f4)
|
||||||
|
curl -d "Self extracting installer: $URL
|
||||||
|
|
||||||
|
Portable Zip: $URLZIP" https://notify.deck.sh/ipro-release
|
||||||
|
|
||||||
rm release-$COMMIT.zip
|
rm release-$COMMIT.zip
|
||||||
|
rm IPPigeon-install.exe
|
2
run.sh
Normal file
2
run.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
"C:/Program Files/Python310/python.exe" setup.py build
|
||||||
|
|
4
setup.py
4
setup.py
@ -5,7 +5,7 @@ debug = True
|
|||||||
#debug = not debug
|
#debug = not debug
|
||||||
# Dependencies are automatically detected, but it might need fine tuning.
|
# Dependencies are automatically detected, but it might need fine tuning.
|
||||||
# "packages": ["os"] is used as example only
|
# "packages": ["os"] is used as example only
|
||||||
build_exe_options = {"packages": ["os"], "excludes": ["tkinter"], "include_msvcr": True, "include_files": ["icon.png", "IPPigeon.lnk", "config.yml", "keyfile-admin.pem"], "optimize": 2}
|
build_exe_options = {"packages": ["os"], "excludes": ["tkinter"], "include_msvcr": True, "include_files": ["icon.png", "config.yml", "keyfile-admin.pem"], "optimize": 2}
|
||||||
|
|
||||||
# base="Win32GUI" should be used only for Windows GUI app
|
# base="Win32GUI" should be used only for Windows GUI app
|
||||||
base = None
|
base = None
|
||||||
@ -17,5 +17,5 @@ setup(
|
|||||||
version="0.2.4",
|
version="0.2.4",
|
||||||
description="IP Pigeon client application",
|
description="IP Pigeon client application",
|
||||||
options={"build_exe": build_exe_options},
|
options={"build_exe": build_exe_options},
|
||||||
executables=[Executable("ippigeon.py", base=base)],
|
executables=[Executable("ippigeon.py", base=base, icon="icon.ico", uac_admin=True, target_name="IPPigeon.exe")],
|
||||||
)
|
)
|
Reference in New Issue
Block a user