mirror of
https://github.com/mandiant/capa.git
synced 2026-01-01 23:40:08 -08:00
pyinstaller: embed capa version in exe
This commit is contained in:
@@ -1,7 +1,14 @@
|
||||
# -*- mode: python -*-
|
||||
import os.path
|
||||
import subprocess
|
||||
|
||||
import wcwidth
|
||||
|
||||
|
||||
with open('./capa/version.py', 'wb') as f:
|
||||
f.write("__version__ = '%s'"
|
||||
% subprocess.check_output(["git", "describe", "--always"]).strip())
|
||||
|
||||
a = Analysis(
|
||||
['../capa/main.py'],
|
||||
pathex=['capa'],
|
||||
|
||||
Reference in New Issue
Block a user