Implement automatic zip dist creation
This commit is contained in:
1 parent
61a3d6560c
commit
be4c443836
4 files changed
+28
No files matched your search
@@ -5,6 +5,9 @@ __pycache__
|
|||||||
/build
|
/build
|
||||||
/*.spec
|
/*.spec
|
||||||
/Twitch Drops Miner
|
/Twitch Drops Miner
|
||||||
|
# Dist files
|
||||||
|
/7z.exe
|
||||||
|
/Twitch Drops Miner.zip
|
||||||
# Dev files
|
# Dev files
|
||||||
/cookies.jar
|
/cookies.jar
|
||||||
/settings.json
|
/settings.json
|
||||||
|
|||||||
Vendored
+9
@@ -15,6 +15,15 @@
|
|||||||
"presentation": {
|
"presentation": {
|
||||||
"showReuseMessage": false
|
"showReuseMessage": false
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"label": "Pack App",
|
||||||
|
"type": "shell",
|
||||||
|
"command": "pack.bat",
|
||||||
|
"problemMatcher": [],
|
||||||
|
"presentation": {
|
||||||
|
"showReuseMessage": false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -1,2 +1,5 @@
|
|||||||
|
@echo off
|
||||||
|
cls
|
||||||
pyinstaller --onefile --noconsole --name "Twitch Drops Miner (by DevilXD)" --icon pickaxe.ico ^
|
pyinstaller --onefile --noconsole --name "Twitch Drops Miner (by DevilXD)" --icon pickaxe.ico ^
|
||||||
--add-data pickaxe.ico;. --distpath "./Twitch Drops Miner" main.py
|
--add-data pickaxe.ico;. --distpath "./Twitch Drops Miner" main.py
|
||||||
|
call pack.bat
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
@echo off
|
||||||
|
IF NOT EXIST 7z.exe GOTO EXIT
|
||||||
|
IF NOT EXIST "Twitch Drops Miner.zip" GOTO NEW
|
||||||
|
7z u "Twitch Drops Miner.zip" "Twitch Drops Miner/" -r -x!"Twitch Drops Miner/cookies.*"
|
||||||
|
GOTO TEST
|
||||||
|
:NEW
|
||||||
|
7z a "Twitch Drops Miner.zip" "Twitch Drops Miner/" -r -x!"Twitch Drops Miner/cookies.*"
|
||||||
|
GOTO TEST
|
||||||
|
:TEST
|
||||||
|
7z t "Twitch Drops Miner.zip"
|
||||||
|
GOTO EXIT
|
||||||
|
:EXIT
|
||||||
|
exit %errorlevel%
|
||||||
Reference in new issue
Block a user