mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-16 14:30:31 +00:00
Hack ASF icon
This commit is contained in:
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 |
@@ -64,12 +64,21 @@ after_test:
|
|||||||
dotnet publish ArchiSteamFarm -c "$env:CONFIGURATION" -o "out\$RUNTIME" -r "$RUNTIME" --no-restore /nologo
|
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"
|
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) {
|
if (Test-Path -Path "ArchiSteamFarm\scripts\$RUNTIME" -PathType Container) {
|
||||||
Copy-Item "ArchiSteamFarm\scripts\$RUNTIME\*" -Destination "ArchiSteamFarm\out\$RUNTIME"
|
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') {
|
if ($env:APPVEYOR_REPO_TAG -eq 'true') {
|
||||||
$ZIP_ARGS = '-mx=9', '-mfb=257', '-mpass=15'
|
$ZIP_ARGS = '-mx=9', '-mfb=257', '-mpass=15'
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 281 KiB After Width: | Height: | Size: 279 KiB |
10
tools/rcedit/README.md
Normal file
10
tools/rcedit/README.md
Normal 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
BIN
tools/rcedit/rcedit-x64.exe
Normal file
Binary file not shown.
Reference in New Issue
Block a user