diff --git a/.gitignore b/.gitignore index 0ad13aa..30283e6 100644 --- a/.gitignore +++ b/.gitignore @@ -175,3 +175,6 @@ cython_debug/ # Flatpak builder .flatpak-builder/ + +# Binary files +*.bin diff --git a/pyinstaller/winyafi.spec b/pyinstaller/winyafi.spec old mode 100644 new mode 100755 index 6dd9f56..a3f6335 --- a/pyinstaller/winyafi.spec +++ b/pyinstaller/winyafi.spec @@ -1,14 +1,14 @@ # -*- mode: python ; coding: utf-8 -*- from PyInstaller.utils.hooks import collect_data_files -datas = [] +datas = [('LpcCrOSEC.bin', '.')] datas += collect_data_files('yafi') a = Analysis( ['winyafi.py'], pathex=[], - binaries=[('WinRing0x64.dll', '.')], + binaries=[], datas=datas, hiddenimports=['cros_ec_python'], hookspath=[], @@ -16,7 +16,7 @@ a = Analysis( runtime_hooks=[], excludes=[], noarchive=False, - optimize=0, + optimize=2, ) pyz = PYZ(a.pure) @@ -39,5 +39,6 @@ exe = EXE( target_arch=None, codesign_identity=None, entitlements_file=None, + icon=['yafi.ico'], uac_admin=True, ) diff --git a/pyinstaller/yafi.ico b/pyinstaller/yafi.ico new file mode 100755 index 0000000..4c0731b Binary files /dev/null and b/pyinstaller/yafi.ico differ