build: update PyInstaller command and add build artifacts

- Use absolute path to pyinstaller executable to avoid PATH issues
- Add --clean flag to prevent permission problems with cache
- Fix Windows registry path escaping in persistence mechanism
- Include generated build artifacts (spec, config, warnings, PYZ toc)
- Add base_library.zip for standalone executable distribution
This commit is contained in:
Aryma
2026-04-14 12:31:41 +07:00
parent 224a0013d7
commit f673320936
11 changed files with 13441 additions and 2 deletions

38
build/AresAgent.spec Normal file
View File

@@ -0,0 +1,38 @@
# -*- mode: python ; coding: utf-8 -*-
a = Analysis(
['hammer_agent.py'],
pathex=[],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
hooksconfig={},
runtime_hooks=[],
excludes=[],
noarchive=False,
optimize=0,
)
pyz = PYZ(a.pure)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.datas,
[],
name='AresAgent',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=True,
disable_windowed_traceback=False,
argv_emulation=False,
target_arch=None,
codesign_identity=None,
entitlements_file=None,
)