fix: validate library and data paths at the application boundary
This commit is contained in:
1 parent
47c2cfecc6
commit
6d2b6de027
10 files changed
+336
-36
No files matched your search
@@ -1,5 +1,6 @@
|
||||
from pathlib import Path
|
||||
import os
|
||||
from shutil import copyfile
|
||||
import struct
|
||||
project_root = Path(SPECPATH).parent
|
||||
assets_root = project_root / 'src' / 'cbb_refresh_verify' / 'assets'
|
||||
@@ -42,3 +43,4 @@ pyz = PYZ(a.pure)
|
||||
exe = EXE(pyz, a.scripts, [], exclude_binaries=True, name='CbbRefreshVerify', console=False,
|
||||
icon=str(assets_root / 'cbb_refresh_verify.ico'))
|
||||
coll = COLLECT(exe, a.binaries, a.zipfiles, a.datas, name='CbbRefreshVerify-Background')
|
||||
copyfile(project_root / 'packaging' / '使用说明.txt', Path(coll.name) / '使用说明.txt')
|
||||
Reference in new issue
Block a user