Skip to content

Commit

Permalink
include the OS in the app name
Browse files Browse the repository at this point in the history
  • Loading branch information
marph91 committed Apr 27, 2024
1 parent 496055f commit d0a34df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ jobs:
run: python test/test_app.py
- name: Smoke test
run: |
./dist/jimmy .cache/arbitrary_folder/arbitrary_folder --dry-run
./dist/jimmy .cache/obsidian/obsidian_vault --app obsidian --dry-run
./dist/jimmy* .cache/arbitrary_folder/arbitrary_folder --dry-run
./dist/jimmy* .cache/obsidian/obsidian_vault --app obsidian --dry-run
- name: Release
uses: softprops/action-gh-release@v2
# release only if there is a release tag
Expand Down
7 changes: 6 additions & 1 deletion jimmy.spec
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ def list_python_files(folder):
hiddenimports = list_python_files(Path("src/apps"))


# Generate the executable name based on OS.
import platform
executable_name = f"jimmy-{platform.system().lower()}"


a = Analysis(
['src/jimmy.py'],
pathex=[],
Expand All @@ -42,7 +47,7 @@ exe = EXE(
a.binaries,
a.datas,
[],
name='jimmy',
name=executable_name,
debug=False,
bootloader_ignore_signals=False,
strip=False,
Expand Down

0 comments on commit d0a34df

Please sign in to comment.