Skip to content
Merged
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
10 changes: 6 additions & 4 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
# Step 1: Check out the repository
- name: Checkout code
uses: actions/checkout@v4
with:
ref: win

# Step 2: Set up Python
- name: Set up Python
Expand All @@ -28,12 +30,12 @@ jobs:
# Step 4: Install dependencies using Pipenv
- name: Install dependencies with Pipenv
run: |
pipenv install --dev
pipenv install

# Step 5: Build the application using PyInstaller
- name: Build with PyInstaller
run: |
pipenv run pyinstaller --noconsole --windowed --onefile main.py
pipenv run pyinstaller --noconsole --onefile --windowed --name "Task Note Manager" --paths=. src/main.py

# Step 6: Upload executable to release assets
- name: Upload Release Asset
Expand Down Expand Up @@ -71,12 +73,12 @@ jobs:
# Step 4: Install dependencies using Pipenv
- name: Install dependencies with Pipenv
run: |
pipenv install --dev
pipenv install

# Step 5: Build the application using PyInstaller
- name: Build with PyInstaller
run: |
pipenv run pyinstaller --noconsole --windowed --onefile main.py
pipenv run pyinstaller --noconsole --onefile --windowed --name "Task Note Manager" --paths=. src/main.py

# Step 6: Upload executable to release assets
- name: Upload Release Asset
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11.4'
python-version: '3.11.7'

- name: Install dependencies with apt get
run: sudo apt-get install -y libdbus-1-dev libdbus-glib-1-dev
Expand Down
4 changes: 2 additions & 2 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ pyexcel-ods3 = "*"
typing-extensions = "*"
customtkinter = "*"
dbus-python = "*"
pyinstaller = "*"

[dev-packages]
pyinstaller = "*"
coverage = "*"
pyvirtualdisplay = "*"
mypy = "*"

[requires]
python_version = "3.11.4"
python_version = "3.11.7"
104 changes: 48 additions & 56 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,12 @@ Make sure you have Python 3.11.7 or higher installed. You would also need pipenv

When building this application locally, note that antivirus may flag it as potentially malicious executable. This is normal, you should add an exception for the file in your antivirus program. The application may also need admin permissions to run in order to create and update the output file.

1. `pipenv install --dev`
2. Run `pipenv run pyinstaller --noconsole --onefile --windowed --name "Task Note Manager" main.py`.
1. `pipenv install`
2. Run `pipenv run pyinstaller --noconsole --onefile --windowed --name "Task Note Manager" --paths=. src/main.py`.
- `--noconsole`: Hides the console window when running the executable.
- `--onefile`: Bundles all files into a single executable.
- `--windowed`: Ensures the app runs as a GUI application.
- `--paths`: Looks at specific path when resolving "import x" statements

# Tests and coverage

Expand Down