From df25a47ec2169f69c57d8285b469353e517a51da Mon Sep 17 00:00:00 2001 From: TheTank20 <57580668+thepwrtank18@users.noreply.github.com> Date: Wed, 23 Jul 2025 09:31:30 -0500 Subject: [PATCH] Update windows-x86-x64.yml --- .github/workflows/windows-x86-x64.yml | 67 +++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/.github/workflows/windows-x86-x64.yml b/.github/workflows/windows-x86-x64.yml index cc35122..f992437 100644 --- a/.github/workflows/windows-x86-x64.yml +++ b/.github/workflows/windows-x86-x64.yml @@ -158,3 +158,70 @@ jobs: with: name: UMSKT-WinNT-${{ matrix.arch }} path: umskt.exe + + compress: + needs: build + if: success() + runs-on: windows-latest + strategy: + fail-fast: false + matrix: + include: + - arch: x86 + - arch: x64 + steps: + - name: Setup TDM-GCC + run: | + Write-Host Downloading TDM-GCC v10.3.0... + Invoke-WebRequest -Uri 'https://github.com/jmeubank/tdm-gcc/releases/download/v10.3.0-tdm64-2/tdm64-gcc-10.3.0-2.exe' -OutFile 'C:\Windows\temp\TDM-GCC-64.exe' + Write-Host Creating directory... + New-Item -ItemType Directory -Path 'C:\TDM-GCC-64' + Write-Host Copying files [Set 1/3]... + Start-Process '7z' -ArgumentList 'e C:\Windows\temp\TDM-GCC-64.exe -oC:\TDM-GCC-64 -y' -Wait + Write-Host Copying files [Set 2/3]... + Start-Process '7z' -ArgumentList 'e C:\TDM-GCC-64\*.tar.xz -oC:\TDM-GCC-64 -y' -Wait + Write-Host Copying files [Set 3/3]... + Start-Process '7z' -ArgumentList 'x C:\TDM-GCC-64\*.tar -oC:\TDM-GCC-64 -y' -Wait + Write-Host Adding environment variables... + $env:PATH = 'C:\TDM-GCC-64\bin;' + $env:PATH + [Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine) + + - name: Download Resource Hacker + run: | + Invoke-WebRequest -Uri 'https://www.angusj.com/resourcehacker/resource_hacker.zip' -OutFile 'C:\Windows\temp\resource_hacker.zip' + Write-Host Creating directory... + New-Item -ItemType Directory -Path 'C:\ResourceHacker' + Write-Host Copying files... + Start-Process '7z' -ArgumentList 'x C:\Windows\temp\resource_hacker.zip -oC:\ResourceHacker -y' -Wait + Write-Host Adding environment variables... + $env:PATH = 'C:\ResourceHacker;' + $env:PATH + [Environment]::SetEnvironmentVariable('PATH', $env:PATH, [EnvironmentVariableTarget]::Machine) + + - name: Download ${{matrix.arch}} artifact + uses: actions/download-artifact@v4 + with: + name: UMSKT-WinNT-${{ matrix.arch }} + path: . + - name: Compress binaries + shell: pwsh + run: | + strip .\umskt.exe + where .\umskt.exe + $resourceHackerScript = @" + [FILENAMES] + Exe= + SaveAs= $outputPath + + [DELETE] + Icon=* + IconGroup=* + "@ + + + - name: Run tests + shell: pwsh + run: | + Write-Host Test 1 - generating key + .\umskt.exe -b 2C -c 365 -s 069420 -v + Write-Host Test 2 - generatng confid + .\umskt.exe -i 253286028742154311079061239762245184619981623171292574