mirror of
https://github.com/Steve-Tech/YAFI.git
synced 2026-04-19 16:50:36 +00:00
Add pyinstaller linux CI build
This commit is contained in:
2
.github/workflows/flatpak.yml
vendored
2
.github/workflows/flatpak.yml
vendored
@@ -9,7 +9,7 @@ jobs:
|
|||||||
flatpak:
|
flatpak:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: bilelmoussaoui/flatpak-github-actions:gnome-47
|
image: ghcr.io/flathub-infra/flatpak-github-actions:gnome-48
|
||||||
options: --privileged
|
options: --privileged
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|||||||
25
.github/workflows/pyinstaller-linux.yml
vendored
Normal file
25
.github/workflows/pyinstaller-linux.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
name: PyInstaller Build Linux
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [main]
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
pyinstaller-linux:
|
||||||
|
runs-on: ubuntu-24.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: awalsh128/cache-apt-pkgs-action@latest
|
||||||
|
with:
|
||||||
|
packages: python3-gi gir1.2-gtk-4.0 gir1.2-adw-1
|
||||||
|
version: 0
|
||||||
|
- run: pip install pyinstaller
|
||||||
|
- run: pip install .
|
||||||
|
- run: pyinstaller yafi.spec
|
||||||
|
working-directory: pyinstaller
|
||||||
|
- name: Upload PyInstaller Artifact
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
path: pyinstaller/dist/YAFI
|
||||||
|
name: yafi-linux-${{ github.sha }}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import os
|
import os
|
||||||
os.environ["GDK_SCALE"] = "2"
|
os.environ["GDK_SCALE"] = "2"
|
||||||
|
|
||||||
from yafi import main
|
from yafi import main
|
||||||
main()
|
main()
|
||||||
@@ -1,44 +1,44 @@
|
|||||||
# -*- mode: python ; coding: utf-8 -*-
|
# -*- mode: python ; coding: utf-8 -*-
|
||||||
from PyInstaller.utils.hooks import collect_data_files
|
from PyInstaller.utils.hooks import collect_data_files
|
||||||
|
import os
|
||||||
datas = [('LpcCrOSEC.bin', '.')]
|
|
||||||
datas += collect_data_files('yafi')
|
datas = [('LpcCrOSEC.bin', '.')] if os.path.exists('LpcCrOSEC.bin') else []
|
||||||
|
datas += collect_data_files('yafi')
|
||||||
|
|
||||||
a = Analysis(
|
|
||||||
['winyafi.py'],
|
a = Analysis(
|
||||||
pathex=[],
|
['entrypoint.py'],
|
||||||
binaries=[],
|
pathex=[],
|
||||||
datas=datas,
|
binaries=[],
|
||||||
hiddenimports=['cros_ec_python'],
|
datas=datas,
|
||||||
hookspath=[],
|
hiddenimports=['cros_ec_python'],
|
||||||
hooksconfig={"gi":{"module-versions": {"Gtk": "4.0"}}},
|
hookspath=[],
|
||||||
runtime_hooks=[],
|
hooksconfig={"gi":{"module-versions": {"Gtk": "4.0"}}},
|
||||||
excludes=[],
|
runtime_hooks=[],
|
||||||
noarchive=False,
|
excludes=[],
|
||||||
optimize=2,
|
noarchive=False,
|
||||||
)
|
optimize=2,
|
||||||
pyz = PYZ(a.pure)
|
)
|
||||||
|
pyz = PYZ(a.pure)
|
||||||
exe = EXE(
|
|
||||||
pyz,
|
exe = EXE(
|
||||||
a.scripts,
|
pyz,
|
||||||
a.binaries,
|
a.scripts,
|
||||||
a.datas,
|
a.binaries,
|
||||||
[],
|
a.datas,
|
||||||
name='winyafi',
|
[],
|
||||||
debug=False,
|
name='YAFI',
|
||||||
bootloader_ignore_signals=False,
|
debug=False,
|
||||||
strip=False,
|
bootloader_ignore_signals=False,
|
||||||
upx=True,
|
strip=False,
|
||||||
upx_exclude=[],
|
upx=True,
|
||||||
runtime_tmpdir=None,
|
upx_exclude=[],
|
||||||
console=False,
|
runtime_tmpdir=None,
|
||||||
disable_windowed_traceback=False,
|
console=False,
|
||||||
argv_emulation=False,
|
disable_windowed_traceback=False,
|
||||||
target_arch=None,
|
argv_emulation=False,
|
||||||
codesign_identity=None,
|
target_arch=None,
|
||||||
entitlements_file=None,
|
codesign_identity=None,
|
||||||
icon=['yafi.ico'],
|
entitlements_file=None,
|
||||||
uac_admin=True,
|
icon=['yafi.ico'],
|
||||||
)
|
)
|
||||||
Reference in New Issue
Block a user