From 6b58ecdb221268451de8caa913420d6c891b8698 Mon Sep 17 00:00:00 2001 From: illusion0001 <37698908+illusion0001@users.noreply.github.com> Date: Mon, 2 Jan 2023 14:31:30 -0600 Subject: [PATCH 1/2] Add CI Build --- .github/workflows/python-app.yml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/python-app.yml diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml new file mode 100644 index 0000000..ebfe58b --- /dev/null +++ b/.github/workflows/python-app.yml @@ -0,0 +1,33 @@ +name: Build Python application + +on: push + +permissions: + contents: read + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Setup Python + uses: actions/setup-python@main + with: + python-version: "3.x" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install pyqt5 pillow pyinstaller + + - name: Build app + run: pyinstaller --onefile launch.pyw + + - name: Upload bin + uses: actions/upload-artifact@v3 + with: + name: pyWinContext + path: dist/*.exe From e9bbf15032662ad0cd20efc89bd77f16fa93c4b5 Mon Sep 17 00:00:00 2001 From: illusion0001 <37698908+illusion0001@users.noreply.github.com> Date: Mon, 2 Jan 2023 15:05:23 -0600 Subject: [PATCH 2/2] Fix unknown command --- output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output.py b/output.py index 90d8fb2..d396fa3 100644 --- a/output.py +++ b/output.py @@ -123,7 +123,7 @@ def create_reg_add(data): result += filetype + "\\shell\\pyWin-" + command["regname"] result += "\\command]\r\n" result += "@=\"cmd /c " + configLoc.replace("\\", "\\\\") - result += "\\\\comStore\\\\" + str(command["id"]) + ".bat \"%1\"\"\r\n" + result += "\\\\comStore\\\\" + str(command["id"]) + ".bat \\\"%1\\\"\"\r\n" if "icon_path" in command and command["icon_path"] is not None: create_icon(command["icon_path"], command["id"]) result += "\"Icon\"=\"" + configLoc.replace("\\", "\\\\")