From 022df2bd2770cd9e3d7d4e81bd78e530f346562b Mon Sep 17 00:00:00 2001 From: Steffen Hirtle Date: Sun, 29 Oct 2023 21:14:10 +0100 Subject: [PATCH] Renaming in pyinstaller bootloader to avoid antivirus issues with Windows --- .github/workflows/build-release.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index eccb3f3..2bd8fda 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -56,6 +56,12 @@ jobs: python-version: '3.10' - name: checkout repository uses: actions/checkout@v3 + - name: checkout pyinstaller + uses: actions/checkout@v3 + with: + repository: pyinstaller/pyinstaller + path: ./pyinstaller + ref: v6.1.0 - name: configure ai s3 secrets run: | $PSDefaultParameterValues['Out-File:Encoding']='UTF8' ; ` @@ -65,7 +71,17 @@ jobs: "bucket_name = `"$env:ai_s3_bucket_name`"" | Out-File -Append .\graxpert\s3_secrets.py - name: install dependencies run: | - pip install setuptools wheel pyinstaller && ` + pip install setuptools wheel && ` + cd .\pyinstaller\bootloader && ` + (Get-Content .\wscript) -Replace "'run'", "'graxpert'" | Set-Content .\wscript && ` + (Get-Content .\src\main.c) -Replace 'pyi_main\(', 'my_pyi_main(' | Set-Content .\src\main.c && ` + (Get-Content .\src\pyi_main.h) -Replace 'pyi_main\(', 'my_pyi_main(' | Set-Content .\src\pyi_main.h && ` + (Get-Content .\src\pyi_main.c) -Replace 'pyi_main\(', 'my_pyi_main(' | Set-Content .\src\pyi_main.c && ` + python ./waf all && ` + cd .. && ` + (Get-Content .\setup.py) -Replace 'run.exe', 'graxpert.exe' | Set-Content .\setup.py && ` + cd .. && ` + pip install pyinstaller --no-index --find-links D:\a\GraXpert\GraXpert\pyinstaller\PyInstaller && ` pip install -r requirements.txt - name: patch version run: ./releng/patch_version.ps1