build fix

This commit is contained in:
Flowseal 2026-03-15 05:19:15 +03:00
parent d5a3eb5157
commit f5d7797259
1 changed files with 0 additions and 19 deletions

View File

@ -33,30 +33,12 @@ 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-compressed.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: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
with: with:
name: TgWsProxy name: TgWsProxy
path: | path: |
dist/TgWsProxy.exe dist/TgWsProxy.exe
dist/TgWsProxy-compressed.exe
build-win7: build-win7:
runs-on: windows-latest runs-on: windows-latest
@ -112,7 +94,6 @@ jobs:
body: | body: |
## TG WS Proxy ${{ github.event.inputs.version }} ## TG WS Proxy ${{ github.event.inputs.version }}
files: | files: |
dist/TgWsProxy-compressed.exe
dist/TgWsProxy.exe dist/TgWsProxy.exe
dist/TgWsProxy-win7.exe dist/TgWsProxy-win7.exe
draft: false draft: false