ajout du fichier main.spec pour créer executable avec pyinstaller
This commit is contained in:
parent
fc5e834350
commit
4304761155
35
main.spec
Normal file
35
main.spec
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
# -*- mode: python -*-
|
||||||
|
|
||||||
|
block_cipher = None
|
||||||
|
|
||||||
|
|
||||||
|
a = Analysis(['main.py'],
|
||||||
|
pathex=['C:\\Users\\Vincent\\Desktop\\Gestt\\Menu'],
|
||||||
|
binaries=[],
|
||||||
|
datas=[],
|
||||||
|
hiddenimports=[],
|
||||||
|
hookspath=[],
|
||||||
|
runtime_hooks=[],
|
||||||
|
excludes=[],
|
||||||
|
win_no_prefer_redirects=False,
|
||||||
|
win_private_assemblies=False,
|
||||||
|
cipher=block_cipher)
|
||||||
|
a.datas += [('fleche.png','C:\\Users\\Vincent\\Desktop\\Gestt\\Menu\\fleche.png','DATA'),
|
||||||
|
('plus4.png','C:\\Users\\Vincent\\Desktop\\Gestt\\Menu\\plus4.png','DATA'),
|
||||||
|
('loupe.jpg','C:\\Users\\Vincent\\Desktop\\Gestt\\Menu\\loupe.jpg','DATA'),
|
||||||
|
('deco.jpg','C:\\Users\\Vincent\\Desktop\\Gestt\\Menu\\deco.jpg','DATA'),
|
||||||
|
('graphe.png','C:\\Users\\Vincent\\Desktop\\Gestt\\Menu\\graphe.png','DATA'),
|
||||||
|
('logo1.ico','C:\\Users\\Vincent\\Desktop\\Gestt\\logo1.ico','DATA')]
|
||||||
|
pyz = PYZ(a.pure, a.zipped_data,
|
||||||
|
cipher=block_cipher)
|
||||||
|
exe = EXE(pyz,
|
||||||
|
a.scripts,
|
||||||
|
a.binaries,
|
||||||
|
a.zipfiles,
|
||||||
|
a.datas,
|
||||||
|
name='main',
|
||||||
|
debug=False,
|
||||||
|
strip=False,
|
||||||
|
upx=True,
|
||||||
|
console=False, icon="icon.ico"
|
||||||
|
)
|
Loading…
Reference in a new issue