Here is the spec file I use on Windows. Something similar will work on Linux. I create a directory under the main project director called MyProjectNameDist, and put the spec files there. This is important when looking at the directories below. I switch to the directory that contains the spce file and then run pyinstaller.
# -*- mode: python -*-
import os
from kivy_deps import sdl2, glew
spec_root = os.path.abspath(SPECPATH)
block_cipher = None
app_name = 'Yout App Name'
win_icon = '../Images/your_design_icon.ico'
a = Analysis(['../main.py'],
pathex=[spec_root],
datas=[('../*.kv', '.'),
('../Images/*.png', './Images')],
hiddenimports=['win32timezone'],
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/cdbdcd19-9423-4e4a-8f46-f67091cf4d50n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/607f7946.1c69fb81.f584.2b76SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
I don’t know what the difference is between a Windows Spec file and a Liniux spec file. I’m sure the differences are minimal. I would look at the pyinstaller docs.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CALgom8qqEY9BQjGXg0QiofLgjd4nxEibQ3SJ25G-sfGC6Ng7Wg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/607f9730.1c69fb81.e7f39.5560SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
Start with a minimal kivy program. The look at the log that gets created in the .kivy directory. There are usually good hints on what is missing.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CALgom8pZ6Zxzz6_vWhrBfHR5iR%2Bc460_6E2CCZVo87qHdtf2HA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/60805999.1c69fb81.c4b94.916cSMTPIN_ADDED_MISSING%40gmr-mx.google.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/607f7946.1c69fb81.f584.2b76SMTPIN_ADDED_MISSING%40gmr-mx.google.com.
On Apr 21, 2021, at 1:29 PM, Elias Coutinho <coutinh...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CALgom8r%2BGEC178Yj97%2B-MZogs7xXyzyL7G9o3KpY1pAiD4GS4g%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/BFE33DDD-AFB7-4881-8E66-623C8E97DF55%40cox.net.
On Apr 21, 2021, at 2:00 PM, Elias Coutinho <coutinh...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/CALgom8o%3Dh_J4rvd%3DyuduL5T1fnWnJwNKc9bbGOibK-2gno7HLw%40mail.gmail.com.