Last active
September 8, 2021 12:37
-
-
Save TheOrioli/b9355a5ed4159bfbd340de474e4fa455 to your computer and use it in GitHub Desktop.
PowerShell script that can be used in a GitHub Action to change the icon of an executable, useful in Godot Engine CI scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$exePath = $args[0] | |
$iconPath = $args[1] | |
Invoke-WebRequest -Uri "https://github.com/electron/rcedit/releases/download/v1.1.1/rcedit-x64.exe" -OutFile ".\rcedit-x64.exe" | |
.\rcedit-x64.exe $exePath --set-icon $iconPath | |
Remove-Item .\rcedit-x64.exe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example usage in GitHub Actions
place this job after your build job, or if you're building on windows, you can place the run step with id set_icon immediately there