Unstripped build
This commit is contained in:
parent
8bcbcd2787
commit
0297bf8305
|
|
@ -33,11 +33,36 @@ jobs:
|
||||||
- name: Build EXE with PyInstaller
|
- name: Build EXE with PyInstaller
|
||||||
run: pyinstaller packaging/windows.spec --noconfirm
|
run: pyinstaller packaging/windows.spec --noconfirm
|
||||||
|
|
||||||
|
- name: Save UPX build copy
|
||||||
|
run: Copy-Item dist/TgWsProxy.exe dist/TgWsProxy-upx.exe -Force
|
||||||
|
|
||||||
|
- name: Build EXE without UPX
|
||||||
|
shell: pwsh
|
||||||
|
run: |
|
||||||
|
$specIn = "packaging/windows.spec"
|
||||||
|
$specOut = "packaging/windows.no-upx.spec"
|
||||||
|
$content = Get-Content $specIn -Raw
|
||||||
|
if ($content -notmatch "upx=True") {
|
||||||
|
throw "Expected 'upx=True' in $specIn, cannot generate no-UPX spec"
|
||||||
|
}
|
||||||
|
$content = $content -replace "upx=True", "upx=False"
|
||||||
|
Set-Content -Path $specOut -Value $content -Encoding UTF8
|
||||||
|
pyinstaller $specOut --noconfirm --clean
|
||||||
|
Remove-Item $specOut -Force
|
||||||
|
|
||||||
|
- name: Rename non-UPX artifact
|
||||||
|
run: Rename-Item -Path dist/TgWsProxy.exe -NewName TgWsProxy-no-upx.exe
|
||||||
|
|
||||||
|
- name: Restore default artifact name
|
||||||
|
run: Copy-Item dist/TgWsProxy-upx.exe dist/TgWsProxy.exe -Force
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: TgWsProxy
|
name: TgWsProxy
|
||||||
path: dist/TgWsProxy.exe
|
path: |
|
||||||
|
dist/TgWsProxy.exe
|
||||||
|
dist/TgWsProxy-no-upx.exe
|
||||||
|
|
||||||
build-win7:
|
build-win7:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
@ -94,6 +119,7 @@ jobs:
|
||||||
## TG WS Proxy ${{ github.event.inputs.version }}
|
## TG WS Proxy ${{ github.event.inputs.version }}
|
||||||
files: |
|
files: |
|
||||||
dist/TgWsProxy.exe
|
dist/TgWsProxy.exe
|
||||||
|
dist/TgWsProxy-unstripped.exe
|
||||||
dist/TgWsProxy-win7.exe
|
dist/TgWsProxy-win7.exe
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue