Skip to content

Commit c985535

Browse files
authored
fix: remove PublishTrimmed to fix runtime crash, add native lib extract (#30)
* fix: correct artifact paths and simplify zip packaging - Use shorter artifact names (win-x64, linux-x64) - Use working-directory + zip ../name.zip * for robust packaging - Add debug step to verify file structure * fix: remove PublishTrimmed, add native library self-extract - Avalonia relies on reflection, trimming breaks runtime - IncludeNativeLibrariesForSelfExtract bundles native deps - IncludeAllContentForSelfExtract ensures Avalonia resources work
1 parent c05d8ea commit c985535

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ jobs:
1818
run: >
1919
dotnet publish src/GeneralUpdate.Tools.csproj
2020
-c Release -r win-x64
21-
-p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained
21+
-p:PublishSingleFile=true --self-contained
22+
-p:IncludeNativeLibrariesForSelfExtract=true
23+
-p:IncludeAllContentForSelfExtract=true
2224
-o publish/win-x64
2325
2426
- name: Upload
@@ -41,7 +43,9 @@ jobs:
4143
run: >
4244
dotnet publish src/GeneralUpdate.Tools.csproj
4345
-c Release -r linux-x64
44-
-p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained
46+
-p:PublishSingleFile=true --self-contained
47+
-p:IncludeNativeLibrariesForSelfExtract=true
48+
-p:IncludeAllContentForSelfExtract=true
4549
-o publish/linux-x64
4650
4751
- name: Upload

0 commit comments

Comments
 (0)