mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
single spec for one file/folder
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -102,7 +102,7 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
bin.tar.xz
|
bin.tar.xz
|
||||||
src/cpython
|
src/cpython
|
||||||
key: gam-${{ matrix.jid }}-20221101
|
key: gam-${{ matrix.jid }}-20221201
|
||||||
|
|
||||||
- name: Untar Cache archive
|
- name: Untar Cache archive
|
||||||
if: matrix.goal == 'build' && steps.cache-python-ssl.outputs.cache-hit == 'true'
|
if: matrix.goal == 'build' && steps.cache-python-ssl.outputs.cache-hit == 'true'
|
||||||
|
|||||||
56
src/gam.spec
56
src/gam.spec
@@ -1,5 +1,7 @@
|
|||||||
# -*- mode: python ; coding: utf-8 -*-
|
# -*- mode: python ; coding: utf-8 -*-
|
||||||
|
from os import getenv
|
||||||
from sys import platform
|
from sys import platform
|
||||||
|
|
||||||
from PyInstaller.utils.hooks import copy_metadata
|
from PyInstaller.utils.hooks import copy_metadata
|
||||||
|
|
||||||
|
|
||||||
@@ -46,22 +48,54 @@ match platform:
|
|||||||
case _:
|
case _:
|
||||||
target_arch = None
|
target_arch = None
|
||||||
strip = True
|
strip = True
|
||||||
|
name = 'gam'
|
||||||
|
debug = False
|
||||||
|
bootloader_ignore_signals = False
|
||||||
|
upx = False
|
||||||
|
console = True
|
||||||
|
disable_windowed_traceback = False
|
||||||
|
argv_emulation = False
|
||||||
|
codesign_identity = None
|
||||||
|
entitlements_file = None
|
||||||
|
if getenv('PYINSTALLER_BUILD_ONEFILE') == 'yes':
|
||||||
|
# Build one file
|
||||||
|
exe = EXE(
|
||||||
|
pyz,
|
||||||
|
a.scripts,
|
||||||
|
a.binaries,
|
||||||
|
a.zipfiles,
|
||||||
|
a.datas,
|
||||||
|
[],
|
||||||
|
name=name,
|
||||||
|
debug=debug,
|
||||||
|
bootloader_ignore_signals=bootloader_ignore_signals,
|
||||||
|
strip=strip,
|
||||||
|
upx=upx,
|
||||||
|
console=console,
|
||||||
|
disable_windowed_traceback=disable_windowed_traceback,
|
||||||
|
argv_emulation=argv_emulation,
|
||||||
|
target_arch=target_arch,
|
||||||
|
codesign_identity=codesign_identity,
|
||||||
|
entitlements_file=entitlements_file,
|
||||||
|
)
|
||||||
|
else:
|
||||||
|
# Build one folder
|
||||||
exe = EXE(
|
exe = EXE(
|
||||||
pyz,
|
pyz,
|
||||||
a.scripts,
|
a.scripts,
|
||||||
[],
|
[],
|
||||||
exclude_binaries=True,
|
exclude_binaries=True,
|
||||||
name='gam',
|
name=name,
|
||||||
debug=False,
|
debug=debug,
|
||||||
bootloader_ignore_signals=False,
|
bootloader_ignore_signals=bootloader_ignore_signals,
|
||||||
strip=strip,
|
strip=strip,
|
||||||
upx=False,
|
upx=upx,
|
||||||
console=True,
|
console=console,
|
||||||
disable_windowed_traceback=False,
|
disable_windowed_traceback=disable_windowed_traceback,
|
||||||
argv_emulation=False,
|
argv_emulation=argv_emulation,
|
||||||
target_arch=target_arch,
|
target_arch=target_arch,
|
||||||
codesign_identity=None,
|
codesign_identity=codesign_identity,
|
||||||
entitlements_file=None,
|
entitlements_file=entitlements_file,
|
||||||
)
|
)
|
||||||
coll = COLLECT(
|
coll = COLLECT(
|
||||||
exe,
|
exe,
|
||||||
@@ -69,8 +103,8 @@ coll = COLLECT(
|
|||||||
a.zipfiles,
|
a.zipfiles,
|
||||||
a.datas,
|
a.datas,
|
||||||
strip=strip,
|
strip=strip,
|
||||||
upx=False,
|
upx=upx,
|
||||||
upx_exclude=[],
|
upx_exclude=[],
|
||||||
name='gam',
|
name=name,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user