Skip to content

Commit f1e5861

Browse files
committed
update: 把非托管库也打包到单文件
1 parent a4a0333 commit f1e5861

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
DOTNETARCH: ${{ matrix.dotnetarch }}
4545
run: |
4646
cd Image2Display/Image2Display
47-
dotnet publish -r $DOTNETOS-$DOTNETARCH --configuration Release --self-contained true -p:PublishTrimmed=true -p:TrimMode=link -p:PublishSingleFile=true
47+
dotnet publish -r $DOTNETOS-$DOTNETARCH --configuration Release --self-contained true -p:PublishTrimmed=true -p:TrimMode=link -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true
4848
rm bin/Release/net9.0/$DOTNETOS-$DOTNETARCH/publish/*.pdb
4949
mkdir pkg
5050
mv bin/Release/net9.0/$DOTNETOS-$DOTNETARCH/publish/* pkg/

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
DOTNETARCH: ${{ matrix.dotnetarch }}
4444
run: |
4545
cd Image2Display/Image2Display
46-
dotnet publish -r $DOTNETOS-$DOTNETARCH --configuration Release --self-contained true -p:PublishTrimmed=true -p:TrimMode=link -p:PublishSingleFile=true
46+
dotnet publish -r $DOTNETOS-$DOTNETARCH --configuration Release --self-contained true -p:PublishTrimmed=true -p:TrimMode=link -p:PublishSingleFile=true -p:IncludeNativeLibrariesForSelfExtract=true
4747
rm bin/Release/net9.0/$DOTNETOS-$DOTNETARCH/publish/*.pdb
4848
mkdir pkg
4949
mv bin/Release/net9.0/$DOTNETOS-$DOTNETARCH/publish/* pkg/

0 commit comments

Comments
 (0)