X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=music_sampler.spec;h=7a885fd5ac837da5b90142debaf6531057214610;hb=0deb82a57ae3abefd44509dc88c546f6e5a94d1b;hp=a56c2dd0f051076f11b63c9a8e64b68a6594aa58;hpb=d8046b94a52262d1453104de2df138a952cb4548;p=perso%2FImmae%2FProjets%2FPython%2FMusicSampler.git diff --git a/music_sampler.spec b/music_sampler.spec index a56c2dd..7a885fd 100644 --- a/music_sampler.spec +++ b/music_sampler.spec @@ -1,14 +1,21 @@ # -*- mode: python -*- +import os from kivy.tools.packaging.pyinstaller_hooks import get_deps_minimal, hookspath, runtime_hooks excluded_and_hidden_modules = get_deps_minimal(video=None, camera=None, audio=None, clipboard=None, spelling=None) excluded_and_hidden_modules['hiddenimports'] += [ 'six', 'packaging', 'packaging.version', 'packaging.specifiers', 'packaging.requirements'] +commit_message = os.popen('git log -1 --format="%h %ci"').read() +pyinstaller_file = open(".pyinstaller_commit", "w") +pyinstaller_file.write(commit_message) +pyinstaller_file.close() + a = Analysis(['music_sampler.py'], binaries=None, datas=[ ('fonts/*', 'fonts'), - ('musicsampler.kv', '.') + ('music_sampler.kv', '.'), + ('.pyinstaller_commit', '.') ], hookspath=hookspath(), runtime_hooks=runtime_hooks(),