Skip to content

Commit

Permalink
add orion.spec for test
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian committed Jul 9, 2024
1 parent 63420d1 commit f562751
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,6 @@ jobs:
auto-activate-base: true
activate-environment: ""

- name: Check conda installation path
shell: bash
run: |
which conda
conda info
- name: Create and activate conda environment
shell: bash
run: |
Expand Down Expand Up @@ -136,7 +130,7 @@ jobs:
run: |
source $(conda info --base)/etc/profile.d/conda.sh
conda activate cq
poetry run pyinstaller --name orion --onedir --add-data "orion_cli/services/*.py:orion_cli/services" orion_cli/cli.py
poetry run pyinstaller orion.spec
- name: Rename output directory
shell: bash
Expand All @@ -155,6 +149,7 @@ jobs:
path: dist/orion_arm.zip



build-windows:
runs-on: windows-latest

Expand Down
43 changes: 43 additions & 0 deletions orion.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# orion.spec
# -*- mode: python ; coding: utf-8 -*-

block_cipher = None

a = Analysis(
['orion_cli/cli.py'],
pathex=[],
binaries=[],
datas=[
('orion_cli/services/*.py', 'orion_cli/services'),
],
hiddenimports=['OCP'],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name='orion',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=True,
)
coll = COLLECT(
exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='orion',
)

0 comments on commit f562751

Please sign in to comment.