diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index eccb3f3..d9eab20 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 && ` + python setup.py install --single-version-externally-managed --root=/ + cd .. && ` pip install -r requirements.txt - name: patch version run: ./releng/patch_version.ps1