Add spec files #5

Merged
JMR-dev merged 8 commits from add-spec-files into main 2025-08-26 23:37:09 +00:00
3 changed files with 61 additions and 16 deletions
Showing only changes of commit 65fb5af983 - Show all commits
@@ -0,0 +1,47 @@
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(
['src/main.py'],
pathex=['src'],
binaries=[],
datas=[('src/gui', 'gui')],
hiddenimports=[
'gui',
'gui.file_browser',
'gui.license_agreement',
'gui.main_window',
'gui.progress_handler',
'adb_manager'
],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='android-file-handler',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='icon_media/robot_files_256.png',
)
@@ -1,15 +1,18 @@
# -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(
['src/main.py'],
pathex=[],
pathex=['src'],
binaries=[],
datas=[],
hiddenimports=[],
datas=[('src/gui', 'gui')],
hiddenimports=[
'gui',
'gui.file_browser',
'gui.license_agreement',
'gui.main_window',
'gui.progress_handler'
'adb_manager'
],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
@@ -20,7 +23,6 @@ a = Analysis(
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
exe = EXE(
pyz,
a.scripts,
@@ -35,10 +37,11 @@ exe = EXE(
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)
icon='icon_media/robot_files_256.ico',
)
+1 -6
View File
@@ -4,12 +4,7 @@ Android File Handler - Main Entry Point
Simple entry point to launch the Android file transfer application.
"""
try:
# Try relative import first (when used as module)
from .gui.main_window import main
except ImportError:
# Fall back to direct import (when run directly)
from gui.main_window import main
from gui.main_window import main
if __name__ == "__main__":