diff --git a/.vscode/tasks.json b/.vscode/tasks.json index 5416571..fecc364 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -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": [] }, ] diff --git a/.vscode/tasks/build.bat b/.vscode/tasks/build.bat deleted file mode 100644 index bf41dce..0000000 --- a/.vscode/tasks/build.bat +++ /dev/null @@ -1 +0,0 @@ -rmdir /S /Q dist\app && .\buildenv\scripts\activate && pyinstaller app.spec --noconfirm \ No newline at end of file diff --git a/.vscode/tasks/configure_setup.bat b/.vscode/tasks/configure_setup.bat deleted file mode 100644 index 00e21a2..0000000 --- a/.vscode/tasks/configure_setup.bat +++ /dev/null @@ -1 +0,0 @@ -.\dist\InstallForge\install_forge.ifp \ No newline at end of file diff --git a/.vscode/tasks/linux/build.sh b/.vscode/tasks/linux/build.sh new file mode 100644 index 0000000..fc8a37c --- /dev/null +++ b/.vscode/tasks/linux/build.sh @@ -0,0 +1,6 @@ +#/bin/bash + +rm -rf dist/linux/app + +buildenv/bin/activate +pyinstaller app.spec --noconfirm \ No newline at end of file diff --git a/.vscode/tasks/linux/cleanup.sh b/.vscode/tasks/linux/cleanup.sh new file mode 100644 index 0000000..4b17dbb --- /dev/null +++ b/.vscode/tasks/linux/cleanup.sh @@ -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__')]" \ No newline at end of file diff --git a/.vscode/tasks/linux/configure_setup.sh b/.vscode/tasks/linux/configure_setup.sh new file mode 100644 index 0000000..ee90c2a --- /dev/null +++ b/.vscode/tasks/linux/configure_setup.sh @@ -0,0 +1,3 @@ +#/bin/bash + +# .\dist\InstallForge\install_forge.ifp \ No newline at end of file diff --git a/.vscode/tasks/linux/test.sh b/.vscode/tasks/linux/test.sh new file mode 100644 index 0000000..00e5838 --- /dev/null +++ b/.vscode/tasks/linux/test.sh @@ -0,0 +1,4 @@ +#/bin/bash + +cd dist/linux/app +./StardewSync \ No newline at end of file diff --git a/.vscode/tasks/test_exe.bat b/.vscode/tasks/test_exe.bat deleted file mode 100644 index 4e5554b..0000000 --- a/.vscode/tasks/test_exe.bat +++ /dev/null @@ -1 +0,0 @@ -cd .\dist\app && .\StardewSync.exe \ No newline at end of file diff --git a/.vscode/tasks/windows/build.bat b/.vscode/tasks/windows/build.bat new file mode 100644 index 0000000..da5500d --- /dev/null +++ b/.vscode/tasks/windows/build.bat @@ -0,0 +1,4 @@ +rmdir /S /Q dist\windows\app + +.\buildenv\scripts\activate +pyinstaller app.spec --noconfirm \ No newline at end of file diff --git a/.vscode/tasks/cleanup.bat b/.vscode/tasks/windows/cleanup.bat similarity index 100% rename from .vscode/tasks/cleanup.bat rename to .vscode/tasks/windows/cleanup.bat diff --git a/.vscode/tasks/windows/configure_setup.bat b/.vscode/tasks/windows/configure_setup.bat new file mode 100644 index 0000000..228befd --- /dev/null +++ b/.vscode/tasks/windows/configure_setup.bat @@ -0,0 +1 @@ +.\dist\windows\install_forge.ifp \ No newline at end of file diff --git a/.vscode/tasks/windows/test.bat b/.vscode/tasks/windows/test.bat new file mode 100644 index 0000000..3c6aaae --- /dev/null +++ b/.vscode/tasks/windows/test.bat @@ -0,0 +1,2 @@ +cd dist\windows\app +.\StardewSync.exe \ No newline at end of file diff --git a/assets/InstallForge/Header.bmp b/assets/InstallForge/Header.bmp new file mode 100644 index 0000000..c72e136 Binary files /dev/null and b/assets/InstallForge/Header.bmp differ diff --git a/assets/InstallForge/Wizard.bmp b/assets/InstallForge/Wizard.bmp new file mode 100644 index 0000000..be5afb4 Binary files /dev/null and b/assets/InstallForge/Wizard.bmp differ