Skip to content

Commit

Permalink
add spec file to generate the exe
Browse files Browse the repository at this point in the history
  • Loading branch information
tledoux committed Aug 7, 2024
1 parent 4d138a5 commit 829bb2a
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ MANIFEST
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec
#*.spec

# Installer logs
pip-log.txt
Expand Down
54 changes: 54 additions & 0 deletions donatemail.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# -*- mode: python -*-

block_cipher = None


a = Analysis(['donate_gui.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)

a.datas += [('images/email_gui.ico','./images/email_gui.ico', "DATA")]
a.datas += [('images/Gartoon_actions_ark_addfile_32.png','./images/Gartoon_actions_ark_addfile_32.png', "DATA")]
a.datas += [('images/Gartoon_actions_editcopy_32.png','./images/Gartoon_actions_editcopy_32.png', "DATA")]
a.datas += [('images/Gartoon_actions_exit_32.png','./images/Gartoon_actions_exit_32.png', "DATA")]
a.datas += [('images/Gartoon_actions_mail_get_32.png','./images/Gartoon_actions_mail_get_32.png', "DATA")]
a.datas += [('images/Gartoon_actions_mail_post_to_32.png','./images/Gartoon_actions_mail_post_to_32.png', "DATA")]
a.datas += [('images/Gartoon_actions_messagebox_info_32.png','./images/Gartoon_actions_messagebox_info_32.png', "DATA")]
a.datas += [('images/Gartoon_apps_mail_32.png','./images/Gartoon_apps_mail_32.png', "DATA")]
a.datas += [('images/Gartoon_apps_package_editors_32.png','./images/Gartoon_apps_package_editors_32.png', "DATA")]
a.datas += [('images/Gartoon_filesystems_folder_tar_32.png','./images/Gartoon_filesystems_folder_tar_32.png', "DATA")]
a.datas += [('images/Gartoon_apps_mail.svg.png','./images/Gartoon_apps_mail.svg.png', "DATA")]
a.datas += [('images/OOjs_UI_icon_info_big_warning.svg.png','./images/OOjs_UI_icon_info_big_warning.svg.png', "DATA")]
a.datas += [('images/OOjs_UI_icon_eye.svg.png','./images/OOjs_UI_icon_eye.svg.png', "DATA")]
a.datas += [('images/OOjs_UI_icon_eyeClosed.svg.png','./images/OOjs_UI_icon_eyeClosed.svg.png', "DATA")]

a.datas += [('assets/about_fr.txt','./assets/about_fr.txt', "DATA")]
a.datas += [('assets/password_fr.txt','./assets/password_fr.txt', "DATA")]
a.datas += [('assets/servers.json','./assets/servers.json', "DATA")]

pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)

exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='DONATEMAIL',
debug=False,
strip=False,
upx=True,
console=False,
icon=['./images/email_gui.ico'],
version='file_version_info.py',
)

0 comments on commit 829bb2a

Please sign in to comment.