diff --git a/.vscode/tasks.json b/.vscode/tasks.json index ca64895..ae53133 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -6,7 +6,23 @@ { "label": "Clean up", "type": "shell", - "command": ".\\.vscode\\tasks\\cleanup.bat", + "command": "./.vscode/tasks/cleanup.bat", + "problemMatcher": [] + }, + { + "label": "Build", + "type": "shell", + "command": "./.vscode/tasks/build.bat", + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "Test EXE", + "type": "shell", + "command": "./.vscode/tasks/test_exe.bat", "problemMatcher": [] } ] diff --git a/.vscode/tasks/build.bat b/.vscode/tasks/build.bat new file mode 100644 index 0000000..85dca3c --- /dev/null +++ b/.vscode/tasks/build.bat @@ -0,0 +1 @@ +.\buildenv\scripts\activate && pyinstaller main.py --noconfirm --add-data assets;assets --add-data sv_ttk;sv_ttk \ No newline at end of file diff --git a/.vscode/tasks/test_exe.bat b/.vscode/tasks/test_exe.bat new file mode 100644 index 0000000..2a1ad9c --- /dev/null +++ b/.vscode/tasks/test_exe.bat @@ -0,0 +1 @@ +cd .\dist\main && .\main.exe \ No newline at end of file