38 lines
957 B
Python
38 lines
957 B
Python
# -*- mode: python ; coding: utf-8 -*-
|
|
|
|
block_cipher = None
|
|
|
|
a = Analysis(
|
|
['backuptools/__main__.py'], # Main script of the project being built
|
|
pathex=['.'], # Current directory, where the .spec file is, and project_name_lower is a subfolder
|
|
binaries=[],
|
|
datas=[('default_icon.ico', '.')], # Icon file relative to project root
|
|
hiddenimports=[],
|
|
hookspath=[],
|
|
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='BackupTools',
|
|
debug=False,
|
|
bootloader_ignore_signals=False,
|
|
strip=False,
|
|
upx=True,
|
|
upx_exclude=[],
|
|
runtime_tmpdir=None,
|
|
console=True, # Set to False for GUI-only applications
|
|
icon='default_icon.ico' # Icon relative to project root
|
|
)
|