diff --git a/.gitignore b/.gitignore index 9c8385f..5c3dcce 100644 --- a/.gitignore +++ b/.gitignore @@ -30,7 +30,7 @@ MANIFEST # PyInstaller # Usually these files are written by a CI server in a temp folder. # Then everything is copied to shipping folder during release. -*.spec +#*.spec # Installer logs pip-log.txt diff --git a/backuptools.spec b/backuptools.spec new file mode 100644 index 0000000..a6bb5bb --- /dev/null +++ b/backuptools.spec @@ -0,0 +1,37 @@ +# -*- 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 +)