Skip to content

Commit

Permalink
Update project_exporter.spec
Browse files Browse the repository at this point in the history
  • Loading branch information
CookSleep authored Jul 18, 2024
1 parent 8eac2ae commit cdf1cc5
Showing 1 changed file with 53 additions and 42 deletions.
95 changes: 53 additions & 42 deletions project_exporter.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,60 @@

block_cipher = None

a = Analysis(['main.py'],
pathex=[],
binaries=[],
datas=[('HarmonyOS_Sans_SC_Regular.ttf', '.'), ('icon-3种尺寸.ico', '.')],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
a = Analysis(
['main.py'],
pathex=[],
binaries=[],
datas=[('HarmonyOS_Sans_SC_Regular.ttf', '.'), ('icon-3种尺寸.ico', '.'), ('README.md', '.'), ('LICENSE', '.')],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False,
)

pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)

exe = EXE(pyz,
a.scripts,
[],
exclude_binaries=True,
name='项目文件导出工具',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
disable_windowed_traceback=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='icon-3种尺寸.ico')
exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name='项目文件导出工具',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
console=False,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
icon='icon-3种尺寸.ico'
)

coll = COLLECT(exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='项目文件导出工具')
coll = COLLECT(
exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=True,
upx_exclude=[],
name='项目文件导出工具',
)

app = BUNDLE(coll,
name='项目文件导出工具.app',
icon='icon-3种尺寸.ico',
bundle_identifier=None)
# 仅在 macOS 上添加 BUNDLE
import sys
if sys.platform == 'darwin':
app = BUNDLE(
coll,
name='项目文件导出工具.app',
icon='icon-3种尺寸.ico',
bundle_identifier=None,
)

0 comments on commit cdf1cc5

Please sign in to comment.