Skip to content

Commit

Permalink
test5
Browse files Browse the repository at this point in the history
  • Loading branch information
amrahm committed Jan 12, 2024
1 parent db93ff2 commit 9977fb1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 18 deletions.
31 changes: 14 additions & 17 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
name: Package Application with Pyinstaller

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['windows-latest', 'ubuntu-latest, 'macos-latest']

steps:
- uses: actions/checkout@v2

- name: Package Application
uses: JackMcKew/pyinstaller-action-windows@python3-10-pyinstaller-5-3
with:
path: src
spec: MonitorBrightnessScheduler.spec
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.11

- uses: actions/upload-artifact@v2
with:
name: MonitorBrightnessScheduler
path: dist/windows
- run: pip install pyinstaller
- run: pyinstaller --clean --noconfirm --log-level=WARN src/MonitorBrightnessScheduler.spec
- uses: actions/upload-artifact@v2
with:
path: dist/*
2 changes: 1 addition & 1 deletion build.bat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pyinstaller --add-data "*.png;." --add-data "*.ico;." --clean --noconfirm --log-level=WARN --icon=favicon.ico --onefile --noconsole --name=MonitorBrightnessScheduler main.py
pyinstaller --clean --noconfirm --log-level=WARN src/MonitorBrightnessScheduler.spec

0 comments on commit 9977fb1

Please sign in to comment.