I do a single directory build using Pyinstaller. I have never done a successful one file executable.
On Windows I then use the Inno Setup compiler to build a Windows Installer: https://jrsoftware.org/isinfo.php
Here is an example of my spec file for Windows. I create a directory under my project directory call my_project_dist and put the spec file in that directory. All of the directories that Pyinstaller creates are created under that directory. This has an impact on the paths I use in my spec file.
# -*- mode: python -*-
import os
from kivy_deps import sdl2, glew
spec_root = os.path.abspath(SPECPATH)
block_cipher = None
app_name = 'My App Name'
win_icon = '../Images/app_design_icon.ico'
a = Analysis(['../main.py'],
pathex=[spec_root],
datas=[('../*.kv', '.'), # These will need to be customized for your app
('../Images/*.png', './Images')],
hiddenimports=['win32timezone'], # this is a dependency for filechooser
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,
[],
exclude_binaries=True,
name=app_name,
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=False,
console=False,
icon=win_icon)
coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
*[Tree(p) for p in (sdl2.dep_bins + glew.dep_bins)],
strip=False,
upx=False,
name=app_name)
--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/6ae52c33-a250-42ac-af55-5293e16a70a8n%40googlegroups.com.