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 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("\\", "\\\\")