diff --git a/ArchiSteamFarm.Tests/ASF.ico b/ArchiSteamFarm.Tests/ASF.ico index e961ba0f3..6eaa7aa92 100644 Binary files a/ArchiSteamFarm.Tests/ASF.ico and b/ArchiSteamFarm.Tests/ASF.ico differ diff --git a/ArchiSteamFarm/ASF.ico b/ArchiSteamFarm/ASF.ico index e961ba0f3..6eaa7aa92 100644 Binary files a/ArchiSteamFarm/ASF.ico and b/ArchiSteamFarm/ASF.ico differ diff --git a/appveyor.yml b/appveyor.yml index 508571c2a..f362c0596 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -64,12 +64,21 @@ after_test: dotnet publish ArchiSteamFarm -c "$env:CONFIGURATION" -o "out\$RUNTIME" -r "$RUNTIME" --no-restore /nologo } + # Update ArchiSteamFarm.version from "source" variant into the one we've just built Set-Content -Path "ArchiSteamFarm\out\$RUNTIME\ArchiSteamFarm.version" -Value "$RUNTIME" + # If we include any helper scripts for this variant, copy them to output directory if (Test-Path -Path "ArchiSteamFarm\scripts\$RUNTIME" -PathType Container) { Copy-Item "ArchiSteamFarm\scripts\$RUNTIME\*" -Destination "ArchiSteamFarm\out\$RUNTIME" } + # Until https://github.com/dotnet/cli/issues/3267 happens, we'll hack dotnet binary icon on Windows and include .ico file on other platforms + if (Test-Path -Path "ArchiSteamFarm\out\$RUNTIME\ArchiSteamFarm.exe" -PathType Leaf) { + tools\rcedit\rcedit-x64.exe "ArchiSteamFarm\out\$RUNTIME\ArchiSteamFarm.exe" --set-icon 'resources\ASF.ico' + } elseif (Test-Path -Path "ArchiSteamFarm\out\$RUNTIME\ArchiSteamFarm" -PathType Leaf) { + Copy-Item 'resources\ASF.ico' -Destination "ArchiSteamFarm\out\$RUNTIME\ArchiSteamFarm.ico" + } + if ($env:APPVEYOR_REPO_TAG -eq 'true') { $ZIP_ARGS = '-mx=9', '-mfb=257', '-mpass=15' } else { diff --git a/resources/ASF.ico b/resources/ASF.ico index e961ba0f3..6eaa7aa92 100644 Binary files a/resources/ASF.ico and b/resources/ASF.ico differ diff --git a/tools/rcedit/README.md b/tools/rcedit/README.md new file mode 100644 index 000000000..e186520a8 --- /dev/null +++ b/tools/rcedit/README.md @@ -0,0 +1,10 @@ +rcedit +=================== + +**[Latest release](https://github.com/electron/rcedit/releases/latest)** + +**[Source](https://github.com/electron/rcedit)** + +--- + +This tool is being used by our CI for injecting ASF icon into Windows dotnet binary, until https://github.com/dotnet/cli/issues/3267 is eventually dealt with. diff --git a/tools/rcedit/rcedit-x64.exe b/tools/rcedit/rcedit-x64.exe new file mode 100644 index 000000000..6f01b03da Binary files /dev/null and b/tools/rcedit/rcedit-x64.exe differ