mirror of
https://github.com/Picocrypt/Picocrypt.git
synced 2025-05-13 14:08:31 +02:00
Update build-windows.yml
This commit is contained in:
parent
20b0402d4a
commit
ad99e84f57
1 changed files with 9 additions and 7 deletions
16
.github/workflows/build-windows.yml
vendored
16
.github/workflows/build-windows.yml
vendored
|
@ -32,21 +32,22 @@ jobs:
|
||||||
go build -v -ldflags="-s -w -H=windowsgui -extldflags=-static" -o 1.exe Picocrypt.go
|
go build -v -ldflags="-s -w -H=windowsgui -extldflags=-static" -o 1.exe Picocrypt.go
|
||||||
env:
|
env:
|
||||||
CGO_ENABLED: 1
|
CGO_ENABLED: 1
|
||||||
|
GOAMD64: v2
|
||||||
|
|
||||||
- name: Add icon and manifest
|
- name: Add icon, manifest, and version info
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: |
|
run: |
|
||||||
Invoke-WebRequest -OutFile reshacker_setup.zip https://github.com/user-attachments/files/15893917/reshacker_setup.zip
|
Invoke-WebRequest -OutFile reshacker_setup.zip https://github.com/user-attachments/files/15893917/reshacker_setup.zip
|
||||||
Expand-Archive -DestinationPath reshacker_setup reshacker_setup.zip
|
Expand-Archive -DestinationPath reshacker_setup reshacker_setup.zip
|
||||||
reshacker_setup/reshacker_setup.exe /SILENT
|
reshacker_setup/reshacker_setup.exe /SILENT
|
||||||
Start-Sleep -Seconds 20
|
Start-Sleep -Seconds 10
|
||||||
Invoke-Expression "& `"$Env:P`" -open src/1.exe -save src/2.exe -action add -res images/key.ico -mask `"ICONGROUP,MAINICON,`""
|
Invoke-Expression "& `"$Env:P`" -open src/1.exe -save src/2.exe -action addoverwrite -res images/key.ico -mask `"ICONGROUP,MAINICON,`""
|
||||||
Start-Sleep -Seconds 5
|
Start-Sleep -Seconds 5
|
||||||
Invoke-Expression "& `"$Env:P`" -open src/2.exe -save src/3.exe -action addoverwrite -res images/key.ico -mask `"ICONGROUP,GLFW_ICON,`""
|
Invoke-Expression "& `"$Env:P`" -open src/2.exe -save src/3.exe -action addoverwrite -res images/key.ico -mask `"ICONGROUP,GLFW_ICON,`""
|
||||||
Start-Sleep -Seconds 5
|
Start-Sleep -Seconds 5
|
||||||
Invoke-Expression "& `"$Env:P`" -open src/3.exe -save src/4.exe -action addoverwrite -res dist/windows/manifest.xml -mask `"MANIFEST,1,`""
|
# Invoke-Expression "& `"$Env:P`" -open src/3.exe -save src/4.exe -action addoverwrite -res dist/windows/manifest.xml -mask `"MANIFEST,1,`""
|
||||||
Start-Sleep -Seconds 5
|
# Start-Sleep -Seconds 5
|
||||||
Invoke-Expression "& `"$Env:P`" -open src/4.exe -save src/5.exe -action addoverwrite -res dist/windows/versioninfo.rc -mask `"VERSIONINFO,1,`""
|
# Invoke-Expression "& `"$Env:P`" -open src/4.exe -save src/5.exe -action addoverwrite -res dist/windows/versioninfo.rc -mask `"VERSIONINFO,1,`""
|
||||||
env:
|
env:
|
||||||
P: "C:\\Program Files (x86)\\Resource Hacker\\ResourceHacker.exe"
|
P: "C:\\Program Files (x86)\\Resource Hacker\\ResourceHacker.exe"
|
||||||
|
|
||||||
|
@ -55,7 +56,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
Invoke-WebRequest -OutFile upx.zip https://github.com/user-attachments/files/15894908/upx-4.2.4-win64.zip
|
Invoke-WebRequest -OutFile upx.zip https://github.com/user-attachments/files/15894908/upx-4.2.4-win64.zip
|
||||||
Expand-Archive upx.zip -DestinationPath upx
|
Expand-Archive upx.zip -DestinationPath upx
|
||||||
upx/upx-4.2.4-win64/upx.exe --lzma --brute -o src/Picocrypt.exe src/5.exe
|
ls src
|
||||||
|
upx/upx-4.2.4-win64/upx.exe --lzma --brute -o src/Picocrypt.exe src/3.exe
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
|
Loading…
Add table
Reference in a new issue