diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 07cf8aa..ce685c2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 ` @@ -45,6 +47,8 @@ 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 ` @@ -52,8 +56,9 @@ jobs: /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"