Hack ASF icon

This commit is contained in:
JustArchi
2017-09-27 02:58:57 +02:00
parent c31ff08192
commit 04a5d59d52
6 changed files with 19 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 281 KiB

After

Width:  |  Height:  |  Size: 279 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 281 KiB

After

Width:  |  Height:  |  Size: 279 KiB

View File

@@ -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 {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 281 KiB

After

Width:  |  Height:  |  Size: 279 KiB

10
tools/rcedit/README.md Normal file
View File

@@ -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.

BIN
tools/rcedit/rcedit-x64.exe Normal file

Binary file not shown.