From d0a34df60aab79fc58b3aecd749e8e8312a3f489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20D=C3=B6rfelt?= Date: Sat, 27 Apr 2024 12:41:57 +0200 Subject: [PATCH] include the OS in the app name --- .github/workflows/build.yml | 4 ++-- jimmy.spec | 7 ++++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a34e9bf..74db318 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/jimmy.spec b/jimmy.spec index 77a7d28..2d3442a 100644 --- a/jimmy.spec +++ b/jimmy.spec @@ -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=[], @@ -42,7 +47,7 @@ exe = EXE( a.binaries, a.datas, [], - name='jimmy', + name=executable_name, debug=False, bootloader_ignore_signals=False, strip=False,