46 lines
913 B
Python
46 lines
913 B
Python
# -*- mode: python ; coding: utf-8 -*-
|
|
import os
|
|
|
|
def get_version():
|
|
with open('version.txt', 'r', encoding='utf-8') as f:
|
|
version = f.read().strip()
|
|
return version
|
|
|
|
version = get_version()
|
|
|
|
a = Analysis(
|
|
['main.py'],
|
|
pathex=[],
|
|
binaries=[],
|
|
datas=[('icon', 'icon'), ('version.txt', '.')],
|
|
hiddenimports=[],
|
|
hookspath=[],
|
|
hooksconfig={},
|
|
runtime_hooks=[],
|
|
excludes=[],
|
|
noarchive=False,
|
|
optimize=0,
|
|
)
|
|
pyz = PYZ(a.pure)
|
|
|
|
exe = EXE(
|
|
pyz,
|
|
a.scripts,
|
|
a.binaries,
|
|
a.datas,
|
|
[],
|
|
name=f'听泉cursor助手{version}',
|
|
debug=False,
|
|
bootloader_ignore_signals=False,
|
|
strip=False,
|
|
upx=True,
|
|
upx_exclude=[],
|
|
runtime_tmpdir=None,
|
|
console=False,
|
|
disable_windowed_traceback=False,
|
|
argv_emulation=False,
|
|
target_arch=None,
|
|
codesign_identity=None,
|
|
entitlements_file=None,
|
|
icon=['icon\\two.ico'],
|
|
) |