Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CI build #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion output.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("\\", "\\\\")
Expand Down