add commit,tag,branch to gui title
This commit is contained in:
parent
c215604251
commit
b8abc7447a
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
||||
_dist/
|
||||
_build/
|
||||
__pycache__/
|
||||
_version.py
|
||||
@ -1,63 +1,45 @@
|
||||
# -*- mode: python ; coding: utf-8 -*-
|
||||
|
||||
# This spec file is for building the PyInstaller GUI Wrapper tool itself.
|
||||
|
||||
block_cipher = None
|
||||
|
||||
a = Analysis(
|
||||
# MODIFIED: Point to the new entry point within the subpackage
|
||||
scripts=['pyinstallerguiwrapper/__main__.py'],
|
||||
# MODIFIED: Include the root directory '.' so PyInstaller finds the subpackage 'pyinstallerguiwrapper'
|
||||
pathex=['.'],
|
||||
import os
|
||||
a = Analysis(scripts=['pyinstallerguiwrapper\\__main__.py'],
|
||||
pathex=['pyinstallerguiwrapper'],
|
||||
binaries=[],
|
||||
datas=[], # No data files needed for the tool itself currently
|
||||
hiddenimports=[], # Add any modules PyInstaller might miss (e.g., sometimes needed for pkg_resources)
|
||||
datas=[],
|
||||
hiddenimports=[],
|
||||
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)
|
||||
cipher=None,
|
||||
noarchive=False)
|
||||
|
||||
exe = EXE(
|
||||
pyz,
|
||||
pyz = PYZ(a.pure, a.zipped_data, cipher=None)
|
||||
|
||||
exe = EXE(pyz,
|
||||
a.scripts,
|
||||
[],
|
||||
exclude_binaries=True,
|
||||
# MODIFIED: Set the application name
|
||||
[], # Binaries/Datas usually handled by Analysis/COLLECT
|
||||
exclude_binaries=True, # Let COLLECT handle binaries in one-dir
|
||||
name='PyInstallerGUIWrapper',
|
||||
debug=False,
|
||||
bootloader_ignore_signals=False,
|
||||
strip=False,
|
||||
upx=True, # Use UPX if available (optional)
|
||||
upx=True, # Use UPX based on config
|
||||
runtime_tmpdir=None,
|
||||
# MODIFIED: Set console=False for a GUI application
|
||||
console=False,
|
||||
console=False, # Set console based on GUI checkbox
|
||||
disable_windowed_traceback=False,
|
||||
target_arch=None,
|
||||
codesign_identity=None,
|
||||
entitlements_file=None,
|
||||
# MODIFIED: Add icon if pyinstallerguiwrapper.ico exists in the root
|
||||
icon='pyinstallerguiwrapper.ico' # Assumes the icon file is in the same directory as the spec file
|
||||
)
|
||||
entitlements_file=None)
|
||||
|
||||
# Use COLLECT for one-dir builds (recommended for GUI stability)
|
||||
coll = COLLECT(
|
||||
exe,
|
||||
coll = COLLECT(exe,
|
||||
a.binaries,
|
||||
a.zipfiles,
|
||||
a.datas,
|
||||
strip=False,
|
||||
upx=True, # Match UPX setting
|
||||
upx_exclude=[],
|
||||
# MODIFIED: Set the output directory name
|
||||
name='PyInstallerGUIWrapper' # Name of the folder in _dist/
|
||||
)
|
||||
|
||||
# If you wanted a one-file build instead (can sometimes be less stable for Tkinter):
|
||||
# Remove the 'coll = COLLECT(...)' block above
|
||||
# And potentially adjust EXE options (though Analysis usually handles datas/binaries correctly now)
|
||||
name='PyInstallerGUIWrapper')
|
||||
|
||||
@ -13,7 +13,7 @@ import traceback # Import traceback for better error reporting
|
||||
# --- Import the necessary modules ---
|
||||
try:
|
||||
# MODIFIED: Use relative import to get the GUI class from within the same package
|
||||
from .gui import PyInstallerGUI
|
||||
from pyinstallerguiwrapper.gui import PyInstallerGUI
|
||||
except ImportError as e:
|
||||
# Provide more context in case of import errors
|
||||
package_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user