mirror of
https://github.com/Steve-Tech/YAFI.git
synced 2026-04-19 16:50:36 +00:00
Add LpcCrOSEC.bin
This commit is contained in:
6
.github/workflows/pyinstaller-windows.yml
vendored
6
.github/workflows/pyinstaller-windows.yml
vendored
@@ -30,12 +30,12 @@ jobs:
|
|||||||
if: steps.cache-gtk4.outputs.cache-hit != 'true'
|
if: steps.cache-gtk4.outputs.cache-hit != 'true'
|
||||||
run: Expand-Archive -Path Gvsbuild.zip -DestinationPath C:\gtk -Force
|
run: Expand-Archive -Path Gvsbuild.zip -DestinationPath C:\gtk -Force
|
||||||
|
|
||||||
- name: Install PyGObject wheel
|
|
||||||
run: pip install --force-reinstall (Resolve-Path C:\gtk\wheels\PyGObject*.whl) (Resolve-Path C:\gtk\wheels\pycairo*.whl)
|
|
||||||
|
|
||||||
- name: Add GTK bin to PATH
|
- name: Add GTK bin to PATH
|
||||||
run: echo "C:\gtk\bin" | Out-File -Append -Encoding ascii $env:GITHUB_PATH
|
run: echo "C:\gtk\bin" | Out-File -Append -Encoding ascii $env:GITHUB_PATH
|
||||||
|
|
||||||
|
- name: Install PyGObject wheel
|
||||||
|
run: pip install --force-reinstall (Resolve-Path C:\gtk\wheels\PyGObject*.whl) (Resolve-Path C:\gtk\wheels\pycairo*.whl)
|
||||||
|
|
||||||
- name: Install PyInstaller
|
- name: Install PyInstaller
|
||||||
run: pip install pyinstaller
|
run: pip install pyinstaller
|
||||||
|
|
||||||
|
|||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -178,3 +178,4 @@ cython_debug/
|
|||||||
|
|
||||||
# Binary files
|
# Binary files
|
||||||
*.bin
|
*.bin
|
||||||
|
!pyinstaller/LpcCrOSEC.bin
|
||||||
|
|||||||
BIN
pyinstaller/LpcCrOSEC.bin
Normal file
BIN
pyinstaller/LpcCrOSEC.bin
Normal file
Binary file not shown.
@@ -2,7 +2,7 @@
|
|||||||
from PyInstaller.utils.hooks import collect_data_files
|
from PyInstaller.utils.hooks import collect_data_files
|
||||||
import os
|
import os
|
||||||
|
|
||||||
datas = [('LpcCrOSEC.bin', '.')] if os.path.exists('LpcCrOSEC.bin') else []
|
datas = [('LpcCrOSEC.bin', '.')] if os.name == 'nt' and os.path.exists('LpcCrOSEC.bin') else []
|
||||||
datas += collect_data_files('yafi')
|
datas += collect_data_files('yafi')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user