From 43047611550065c75e13ed6f4f6a2dbf9e8ccb6a Mon Sep 17 00:00:00 2001 From: VincentLeduc Date: Sun, 6 Aug 2017 00:26:23 +0200 Subject: [PATCH] =?UTF-8?q?ajout=20du=20fichier=20main.spec=20pour=20cr?= =?UTF-8?q?=C3=A9er=20executable=20avec=20pyinstaller?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.spec | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 main.spec diff --git a/main.spec b/main.spec new file mode 100644 index 0000000..ac72741 --- /dev/null +++ b/main.spec @@ -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" + )