Skip to content

Commit

Permalink
Add PyInstaller hook for hidden imports
Browse files Browse the repository at this point in the history
  • Loading branch information
RainbowUnicorn7297 committed Mar 9, 2024
1 parent a5956d4 commit ff866a5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 140 deletions.
37 changes: 2 additions & 35 deletions standalone/console_arm64.spec → standalone/console_termux.spec
Original file line number Diff line number Diff line change
Expand Up @@ -9,41 +9,8 @@ a = Analysis(
pathex=['../env/python3.11/site-packages'],
binaries=[],
datas=[],
hiddenimports=[
'mltd.services.asset',
'mltd.services.auth',
'mltd.services.banner',
'mltd.services.birthday',
'mltd.services.campaign',
'mltd.services.card',
'mltd.services.event',
'mltd.services.friend',
'mltd.services.game',
'mltd.services.game_corner',
'mltd.services.game_setting',
'mltd.services.gasha',
'mltd.services.gasha_medal',
'mltd.services.greco',
'mltd.services.guest_character',
'mltd.services.idol',
'mltd.services.inspect',
'mltd.services.item',
'mltd.services.jewel',
'mltd.services.job',
'mltd.services.last_update_date',
'mltd.services.live',
'mltd.services.login_bonus',
'mltd.services.mission',
'mltd.services.offer',
'mltd.services.present',
'mltd.services.song',
'mltd.services.song_ranking',
'mltd.services.story',
'mltd.services.theater',
'mltd.services.unit',
'mltd.services.user'
],
hookspath=[],
hiddenimports=[],
hookspath=['.'],
hooksconfig={},
runtime_hooks=[],
excludes=[],
Expand Down
37 changes: 2 additions & 35 deletions standalone/gui_macos.spec
Original file line number Diff line number Diff line change
Expand Up @@ -9,41 +9,8 @@ a = Analysis(
pathex=['../env/python3.11/site-packages'],
binaries=[],
datas=[],
hiddenimports=[
'mltd.services.asset',
'mltd.services.auth',
'mltd.services.banner',
'mltd.services.birthday',
'mltd.services.campaign',
'mltd.services.card',
'mltd.services.event',
'mltd.services.friend',
'mltd.services.game',
'mltd.services.game_corner',
'mltd.services.game_setting',
'mltd.services.gasha',
'mltd.services.gasha_medal',
'mltd.services.greco',
'mltd.services.guest_character',
'mltd.services.idol',
'mltd.services.inspect',
'mltd.services.item',
'mltd.services.jewel',
'mltd.services.job',
'mltd.services.last_update_date',
'mltd.services.live',
'mltd.services.login_bonus',
'mltd.services.mission',
'mltd.services.offer',
'mltd.services.present',
'mltd.services.song',
'mltd.services.song_ranking',
'mltd.services.story',
'mltd.services.theater',
'mltd.services.unit',
'mltd.services.user'
],
hookspath=[],
hiddenimports=[],
hookspath=['.'],
hooksconfig={},
runtime_hooks=[],
excludes=[],
Expand Down
37 changes: 2 additions & 35 deletions standalone/gui_ubuntu.spec
Original file line number Diff line number Diff line change
Expand Up @@ -9,41 +9,8 @@ a = Analysis(
pathex=['../env/python3.11/site-packages'],
binaries=[],
datas=[],
hiddenimports=[
'mltd.services.asset',
'mltd.services.auth',
'mltd.services.banner',
'mltd.services.birthday',
'mltd.services.campaign',
'mltd.services.card',
'mltd.services.event',
'mltd.services.friend',
'mltd.services.game',
'mltd.services.game_corner',
'mltd.services.game_setting',
'mltd.services.gasha',
'mltd.services.gasha_medal',
'mltd.services.greco',
'mltd.services.guest_character',
'mltd.services.idol',
'mltd.services.inspect',
'mltd.services.item',
'mltd.services.jewel',
'mltd.services.job',
'mltd.services.last_update_date',
'mltd.services.live',
'mltd.services.login_bonus',
'mltd.services.mission',
'mltd.services.offer',
'mltd.services.present',
'mltd.services.song',
'mltd.services.song_ranking',
'mltd.services.story',
'mltd.services.theater',
'mltd.services.unit',
'mltd.services.user'
],
hookspath=[],
hiddenimports=[],
hookspath=['.'],
hooksconfig={},
runtime_hooks=[],
excludes=[],
Expand Down
37 changes: 2 additions & 35 deletions standalone/gui_windows.spec
Original file line number Diff line number Diff line change
Expand Up @@ -9,41 +9,8 @@ a = Analysis(
pathex=['..\\env\\Lib\\site-packages'],
binaries=[],
datas=[],
hiddenimports=[
'mltd.services.asset',
'mltd.services.auth',
'mltd.services.banner',
'mltd.services.birthday',
'mltd.services.campaign',
'mltd.services.card',
'mltd.services.event',
'mltd.services.friend',
'mltd.services.game',
'mltd.services.game_corner',
'mltd.services.game_setting',
'mltd.services.gasha',
'mltd.services.gasha_medal',
'mltd.services.greco',
'mltd.services.guest_character',
'mltd.services.idol',
'mltd.services.inspect',
'mltd.services.item',
'mltd.services.jewel',
'mltd.services.job',
'mltd.services.last_update_date',
'mltd.services.live',
'mltd.services.login_bonus',
'mltd.services.mission',
'mltd.services.offer',
'mltd.services.present',
'mltd.services.song',
'mltd.services.song_ranking',
'mltd.services.story',
'mltd.services.theater',
'mltd.services.unit',
'mltd.services.user'
],
hookspath=[],
hiddenimports=[],
hookspath=['.'],
hooksconfig={},
runtime_hooks=[],
excludes=[],
Expand Down
2 changes: 2 additions & 0 deletions standalone/hook-mltd.services.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from PyInstaller.utils.hooks import collect_submodules
hiddenimports = collect_submodules('mltd.services')

0 comments on commit ff866a5

Please sign in to comment.