mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-05-26 15:13:32 +00:00
Implement automatic zip dist creation
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -5,6 +5,9 @@ __pycache__
|
||||
/build
|
||||
/*.spec
|
||||
/Twitch Drops Miner
|
||||
# Dist files
|
||||
/7z.exe
|
||||
/Twitch Drops Miner.zip
|
||||
# Dev files
|
||||
/cookies.jar
|
||||
/settings.json
|
||||
|
||||
9
.vscode/tasks.json
vendored
9
.vscode/tasks.json
vendored
@@ -15,6 +15,15 @@
|
||||
"presentation": {
|
||||
"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 ^
|
||||
--add-data pickaxe.ico;. --distpath "./Twitch Drops Miner" main.py
|
||||
call pack.bat
|
||||
|
||||
13
pack.bat
Normal file
13
pack.bat
Normal file
@@ -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