优化AOT文件体积
This commit is contained in:
parent
4ba8f48835
commit
e5fbc8aa94
|
@ -55,7 +55,6 @@ jobs:
|
|||
include-prerelease: true
|
||||
- run: apt-get install -y libicu-dev libcurl4-openssl-dev zlib1g-dev libkrb5-dev
|
||||
- run: dotnet publish src/N_m3u8DL-RE -r linux-x64 -c Release -o artifact
|
||||
- run: strip artifact/N_m3u8DL-RE
|
||||
|
||||
- name: Upload Artifact[linux-x64]
|
||||
uses: actions/upload-artifact@v1.0.0
|
||||
|
@ -77,7 +76,6 @@ jobs:
|
|||
dotnet-version: ${{ env.DOTNET_SDK_VERSION }}
|
||||
include-prerelease: true
|
||||
- run: dotnet publish src/N_m3u8DL-RE -r linux-arm64 -c Release -p:CppCompilerAndLinker=clang-9 -p:SysRoot=/crossrootfs/arm64 -o artifact
|
||||
- run: aarch64-linux-gnu-strip artifact/N_m3u8DL-RE
|
||||
|
||||
- name: Upload Artifact[linux-arm64]
|
||||
uses: actions/upload-artifact@v1.0.0
|
||||
|
|
|
@ -10,8 +10,14 @@
|
|||
<IlcGenerateStackTraceData>true</IlcGenerateStackTraceData>
|
||||
<SatelliteResourceLanguages>zh-CN;zh-TW;en-US</SatelliteResourceLanguages>
|
||||
<PublishAot>true</PublishAot>
|
||||
<StripSymbols>true</StripSymbols>
|
||||
<ObjCopyName Condition="'$(RuntimeIdentifier)' == 'linux-arm64'">aarch64-linux-gnu-objcopy</ObjCopyName>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup Condition="'$(PublishAot)' == 'true' and '$(RuntimeIdentifier)' != 'win-arm64'">
|
||||
<PackageReference Include="PublishAotCompressed" Version="0.0.3" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<RdXmlFile Include="rd.xml" />
|
||||
</ItemGroup>
|
||||
|
|
Loading…
Reference in New Issue