]>
Commit | Line | Data |
---|---|---|
d8ab67c7 | 1 | # -*- mode: python -*- |
cc008de4 | 2 | import os |
d8046b94 | 3 | from kivy.tools.packaging.pyinstaller_hooks import get_deps_minimal, hookspath, runtime_hooks |
d8ab67c7 | 4 | |
d8046b94 IB |
5 | excluded_and_hidden_modules = get_deps_minimal(video=None, camera=None, audio=None, clipboard=None, spelling=None) |
6 | excluded_and_hidden_modules['hiddenimports'] += [ 'six', 'packaging', 'packaging.version', 'packaging.specifiers', 'packaging.requirements'] | |
d8ab67c7 | 7 | |
cc008de4 IB |
8 | commit_message = os.popen('git log -1 --format="%h %ci"').read() |
9 | pyinstaller_file = open(".pyinstaller_commit", "w") | |
10 | pyinstaller_file.write(commit_message) | |
11 | pyinstaller_file.close() | |
12 | ||
532454eb | 13 | a = Analysis(['music_sampler.py'], |
d8ab67c7 | 14 | binaries=None, |
9de92b6d | 15 | datas=[ |
bb69f62e | 16 | ('fonts/*', 'fonts'), |
cc008de4 IB |
17 | ('music_sampler.kv', '.'), |
18 | ('.pyinstaller_commit', '.') | |
9de92b6d | 19 | ], |
d8046b94 IB |
20 | hookspath=hookspath(), |
21 | runtime_hooks=runtime_hooks(), | |
22 | **excluded_and_hidden_modules) | |
23 | pyz = PYZ(a.pure, a.zipped_data) | |
24 | exe = EXE(pyz, a.scripts, a.binaries, a.zipfiles, a.datas, name='music_sampler') |