From 5eebf55cb907da3eb8041934128060b5c5e16937 Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Tue, 4 Jul 2023 11:44:05 +0800 Subject: Create main.spec --- main.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 main.spec (limited to 'main.spec') diff --git a/main.spec b/main.spec new file mode 100644 index 00000000..1520de0f --- /dev/null +++ b/main.spec @@ -0,0 +1,48 @@ +# -*- mode: python ; coding: utf-8 -*- + +block_cipher = None + + +a = Analysis(['main.py'], + pathex=['./'], + binaries=[], + datas=[], + hiddenimports=[ + 'websockets.legacy.auth', + 'websockets.legacy.client', + 'websockets.legacy.server' + ], + hookspath=['./hook'], + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher, + noarchive=False) +splash = Splash( + './resource/intro.jpg', + binaries=a.binaries, + datas=a.datas, + text_pos=None, + text_size=12, + minify_script=True, + always_on_top=True, +) +pyz = PYZ(a.pure, a.zipped_data, + cipher=block_cipher) +exe = EXE(pyz, + a.scripts, + a.binaries, + a.zipfiles, + a.datas, + splash, + splash.binaries, + [], + name='main', + debug=False, + bootloader_ignore_signals=False, + strip=False, + upx=True, + upx_exclude=[], + runtime_tmpdir=None, + console=False , icon='resource/favoricon.ico') -- cgit v1.2.3-70-g09d2