VSCode tasks optimized for Windows and Linux
This commit is contained in:
parent
c4813d62c8
commit
76defcea2f
29
.vscode/tasks.json
vendored
29
.vscode/tasks.json
vendored
@ -6,13 +6,23 @@
|
||||
{
|
||||
"label": "Clean up",
|
||||
"type": "shell",
|
||||
"command": "./.vscode/tasks/cleanup.bat",
|
||||
"windows": {
|
||||
"command": "./.vscode/tasks/windows/cleanup.bat"
|
||||
},
|
||||
"linux": {
|
||||
"command": "./.vscode/tasks/linux/cleanup.sh"
|
||||
},
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Build",
|
||||
"type": "shell",
|
||||
"command": "./.vscode/tasks/build.bat",
|
||||
"windows": {
|
||||
"command": "./.vscode/tasks/windows/build.bat"
|
||||
},
|
||||
"linux": {
|
||||
"command": "./.vscode/tasks/linux/build.sh"
|
||||
},
|
||||
"problemMatcher": [],
|
||||
"group": {
|
||||
"kind": "build",
|
||||
@ -20,15 +30,22 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Test EXE",
|
||||
"label": "Test",
|
||||
"type": "shell",
|
||||
"command": "./.vscode/tasks/test_exe.bat",
|
||||
"windows": {
|
||||
"command": "./.vscode/tasks/windows/test.bat"
|
||||
},
|
||||
"linux": {
|
||||
"command": "./.vscode/tasks/linux/test.sh"
|
||||
},
|
||||
"problemMatcher": []
|
||||
},
|
||||
{
|
||||
"label": "Configure Setup.exe",
|
||||
"label": "Configure Setup",
|
||||
"type": "shell",
|
||||
"command": "./.vscode/tasks/configure_setup.bat",
|
||||
"windows": {
|
||||
"command": "./.vscode/tasks/windows/configure_setup.bat"
|
||||
},
|
||||
"problemMatcher": []
|
||||
},
|
||||
]
|
||||
|
1
.vscode/tasks/build.bat
vendored
1
.vscode/tasks/build.bat
vendored
@ -1 +0,0 @@
|
||||
rmdir /S /Q dist\app && .\buildenv\scripts\activate && pyinstaller app.spec --noconfirm
|
1
.vscode/tasks/configure_setup.bat
vendored
1
.vscode/tasks/configure_setup.bat
vendored
@ -1 +0,0 @@
|
||||
.\dist\InstallForge\install_forge.ifp
|
6
.vscode/tasks/linux/build.sh
vendored
Normal file
6
.vscode/tasks/linux/build.sh
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
#/bin/bash
|
||||
|
||||
rm -rf dist/linux/app
|
||||
|
||||
buildenv/bin/activate
|
||||
pyinstaller app.spec --noconfirm
|
4
.vscode/tasks/linux/cleanup.sh
vendored
Normal file
4
.vscode/tasks/linux/cleanup.sh
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
#/bin/bash
|
||||
|
||||
python -Bc "import pathlib; [p.unlink() for p in pathlib.Path('.').rglob('*.py[co]')]"
|
||||
python -Bc "import pathlib; [p.rmdir() for p in pathlib.Path('.').rglob('__pycache__')]"
|
3
.vscode/tasks/linux/configure_setup.sh
vendored
Normal file
3
.vscode/tasks/linux/configure_setup.sh
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
#/bin/bash
|
||||
|
||||
# .\dist\InstallForge\install_forge.ifp
|
4
.vscode/tasks/linux/test.sh
vendored
Normal file
4
.vscode/tasks/linux/test.sh
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
#/bin/bash
|
||||
|
||||
cd dist/linux/app
|
||||
./StardewSync
|
1
.vscode/tasks/test_exe.bat
vendored
1
.vscode/tasks/test_exe.bat
vendored
@ -1 +0,0 @@
|
||||
cd .\dist\app && .\StardewSync.exe
|
4
.vscode/tasks/windows/build.bat
vendored
Normal file
4
.vscode/tasks/windows/build.bat
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
rmdir /S /Q dist\windows\app
|
||||
|
||||
.\buildenv\scripts\activate
|
||||
pyinstaller app.spec --noconfirm
|
1
.vscode/tasks/windows/configure_setup.bat
vendored
Normal file
1
.vscode/tasks/windows/configure_setup.bat
vendored
Normal file
@ -0,0 +1 @@
|
||||
.\dist\windows\install_forge.ifp
|
2
.vscode/tasks/windows/test.bat
vendored
Normal file
2
.vscode/tasks/windows/test.bat
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
cd dist\windows\app
|
||||
.\StardewSync.exe
|
BIN
assets/InstallForge/Header.bmp
Normal file
BIN
assets/InstallForge/Header.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.1 KiB |
BIN
assets/InstallForge/Wizard.bmp
Normal file
BIN
assets/InstallForge/Wizard.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 201 KiB |
Loading…
Reference in New Issue
Block a user