Skip to content

Commit

Permalink
fix: ensure icon is properly copied to both project and publish direc…
Browse files Browse the repository at this point in the history
…tories
  • Loading branch information
BytexGrid committed Dec 26, 2024
1 parent 99f72d9 commit a5f9955
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
- name: Build Single-File
run: |
cd NeatShift
# Copy icon to project directory
Copy-Item "../icon.ico" -Destination "./NeatShift/icon.ico" -Force
dotnet restore NeatShift.sln
dotnet publish NeatShift.sln -c Release -r win-x64 --self-contained true `
/p:PublishSingleFile=true `
Expand All @@ -45,15 +47,18 @@ jobs:
- name: Build ZIP Package
run: |
cd NeatShift
# Copy icon to project directory
Copy-Item "../icon.ico" -Destination "./NeatShift/icon.ico" -Force
dotnet restore NeatShift.sln
dotnet publish NeatShift.sln -c Release -r win-x64 --self-contained true `
/p:DebugType=None `
/p:DebugSymbols=false `
/p:UseAppHost=true `
/p:IncludeNativeLibrariesForSelfExtract=true `
/p:ResourceHandlingMode=ResourceFile
Copy-Item "../icon.ico" -Destination "./NeatShift/bin/Release/net6.0-windows/win-x64/publish/"
# Copy any image resources if they exist
# Copy icon to publish directory
Copy-Item "./NeatShift/icon.ico" -Destination "./NeatShift/bin/Release/net6.0-windows/win-x64/publish/icon.ico" -Force
# Copy any XAML resources if they exist
$resourcePath = "./NeatShift/Views"
if (Test-Path $resourcePath) {
New-Item -ItemType Directory -Force -Path "./NeatShift/bin/Release/net6.0-windows/win-x64/publish/Views"
Expand Down

0 comments on commit a5f9955

Please sign in to comment.