Skip to content

Commit da7fa52

Browse files
committed
fix: pass version directly to click_extra
1 parent 3fb2e11 commit da7fa52

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,9 @@ jobs:
169169
- name: Build binary
170170
shell: bash
171171
run: |
172-
uv run pyinstaller src/lumos/__main__.py
173-
if [[ "${{ matrix.platform }}" == "windows" ]]; then
174-
mv ./dist/__main__/__main__.exe ./dist/__main__/lumos.exe
175-
else
176-
mv ./dist/__main__/__main__ ./dist/__main__/lumos
177-
fi
172+
uv run pyinstaller src/lumos/__main__.py --name lumos
178173
VERSION="${{ inputs.version || 'dev' }}"
179-
tar -czf lumos-${{ matrix.platform }}-v${VERSION}.tar.gz -C ./dist/__main__ .
174+
tar -czf lumos-${{ matrix.platform }}-v${VERSION}.tar.gz -C ./dist/lumos .
180175
181176
- name: Upload artifacts to workflow
182177
uses: actions/upload-artifact@v4

src/lumos/cli.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from click_extra import Context, echo, group, option, pass_context
44

5+
from lumos import __version__
56
from lumos.common.client import ApiClient
67
from lumos.common.helpers import authenticate
78
from lumos.common.helpers import login as _login
@@ -14,6 +15,7 @@
1415

1516
@group(
1617
context_settings={"help_option_names": ["-h", "--help"]},
18+
version=__version__,
1719
)
1820
@option("--debug", is_flag=True, help="Enable debug mode", hidden=True)
1921
@pass_context

0 commit comments

Comments
 (0)