mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 12:21:35 +00:00
[no ci] comment on what add_lib.py does
This commit is contained in:
@@ -1,6 +1,12 @@
|
|||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
'''
|
||||||
|
for onedir, add_lib.py allows moving many
|
||||||
|
library files into a lib/ directory to make
|
||||||
|
onedir cleaner. Thanks to:
|
||||||
|
https://medium.com/@philipp.h/reduce-clutter-when-using-pyinstaller-in -one-directory-mode-b631b9f7f89b
|
||||||
|
'''
|
||||||
|
|
||||||
sys.path.append(os.path.join(os.getcwd(), 'lib'))
|
sys.path.append(os.path.join(os.getcwd(), 'lib'))
|
||||||
sys._MEIPASS=os.path.join(sys._MEIPASS, 'lib')
|
sys._MEIPASS=os.path.join(sys._MEIPASS, 'lib')
|
||||||
|
|||||||
@@ -23,6 +23,10 @@ hiddenimports = [
|
|||||||
|
|
||||||
runtime_hooks = []
|
runtime_hooks = []
|
||||||
if getenv('PYINSTALLER_BUILD_ONEDIR') == 'yes':
|
if getenv('PYINSTALLER_BUILD_ONEDIR') == 'yes':
|
||||||
|
# for onedir, add_lib.py allows moving many
|
||||||
|
# library files into a lib/ directory to make
|
||||||
|
# onedir cleaner. Thanks to:
|
||||||
|
# https://medium.com/@philipp.h/reduce-clutter-when-using-pyinstaller-in-one-directory-mode-b631b9f7f89b
|
||||||
runtime_hooks.append('add_lib.py')
|
runtime_hooks.append('add_lib.py')
|
||||||
a = Analysis(
|
a = Analysis(
|
||||||
['gam/__main__.py'],
|
['gam/__main__.py'],
|
||||||
@@ -57,6 +61,7 @@ match platform:
|
|||||||
case "darwin":
|
case "darwin":
|
||||||
if getenv('arch') == 'universal2':
|
if getenv('arch') == 'universal2':
|
||||||
target_arch = "universal2"
|
target_arch = "universal2"
|
||||||
|
|
||||||
codesign_identity = getenv('codesign_identity')
|
codesign_identity = getenv('codesign_identity')
|
||||||
if codesign_identity:
|
if codesign_identity:
|
||||||
entitlements_file = '../.github/actions/entitlements.plist'
|
entitlements_file = '../.github/actions/entitlements.plist'
|
||||||
|
|||||||
Reference in New Issue
Block a user