Updated build
This commit is contained in:
Родитель
c95cb906a0
Коммит
a114348cf8
|
@ -53,13 +53,23 @@ jobs:
|
|||
dotnet-version: 3.1.102
|
||||
- name: Publish
|
||||
if: github.event_name != 'pull_request'
|
||||
run: dotnet publish -c Release -f netcoreapp3.1 -r win7-x64 -o ./artifacts/TypefaceUtil-netcoreapp3.1-win7-x64 ./src/TypefaceUtil/TypefaceUtil.csproj
|
||||
run: |
|
||||
dotnet publish -c Release /p:PublishTrimmed=True /p:PublishReadyToRun=True -f netcoreapp3.1 -r win7-x64 -o ./artifacts/TypefaceUtil-netcoreapp3.1-win7-x64 ./src/TypefaceUtil/TypefaceUtil.csproj
|
||||
dotnet publish -c Release /p:PublishTrimmed=False /p:PublishReadyToRun=False -f netcoreapp3.1 -r win-x64 -o ./artifacts/TypefaceUtil-win-x64 ./src/TypefaceUtil/TypefaceUtil.csproj
|
||||
del artifacts\TypefaceUtil-win-x64\*.pdb
|
||||
del artifacts\TypefaceUtil-win-x64\*.json
|
||||
- name: Artifacts
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: TypefaceUtil-netcoreapp3.1-win7-x64
|
||||
path: ./artifacts/TypefaceUtil-netcoreapp3.1-win7-x64
|
||||
- name: Artifacts
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: TypefaceUtil-win-x64
|
||||
path: ./artifacts/TypefaceUtil-win-x64
|
||||
|
||||
publish-ubuntu:
|
||||
name: Publish ubuntu-latest
|
||||
|
@ -75,8 +85,13 @@ jobs:
|
|||
- name: Publish
|
||||
if: github.event_name != 'pull_request'
|
||||
run: |
|
||||
dotnet publish -c Release -f netcoreapp3.1 -r debian.8-x64 -o ./artifacts/TypefaceUtil-netcoreapp3.1-debian.8-x64 ./src/TypefaceUtil/TypefaceUtil.csproj
|
||||
dotnet publish -c Release -f netcoreapp3.1 -r ubuntu.14.04-x64 -o ./artifacts/TypefaceUtil-netcoreapp3.1-ubuntu.14.04-x64 ./src/TypefaceUtil/TypefaceUtil.csproj
|
||||
dotnet publish -c Release /p:PublishTrimmed=True /p:PublishReadyToRun=True -f netcoreapp3.1 -r debian.8-x64 -o ./artifacts/TypefaceUtil-netcoreapp3.1-debian.8-x64 ./src/TypefaceUtil/TypefaceUtil.csproj
|
||||
dotnet publish -c Release /p:PublishTrimmed=True /p:PublishReadyToRun=True -f netcoreapp3.1 -r ubuntu.14.04-x64 -o ./artifacts/TypefaceUtil-netcoreapp3.1-ubuntu.14.04-x64 ./src/TypefaceUtil/TypefaceUtil.csproj
|
||||
sudo apt-get install clang zlib1g-dev libkrb5-dev libtinfo5
|
||||
dotnet publish -c Release /p:PublishTrimmed=False /p:PublishReadyToRun=False -f netcoreapp3.1 -r linux-x64 -o ./artifacts/TypefaceUtil-linux-x64 ./src/TypefaceUtil/TypefaceUtil.csproj
|
||||
strip ./artifacts/TypefaceUtil-linux-x64/TypefaceUtil
|
||||
rm ./artifacts/TypefaceUtil-linux-x64/*.pdb
|
||||
rm ./artifacts/TypefaceUtil-linux-x64/*.json
|
||||
- name: Artifacts
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: actions/upload-artifact@master
|
||||
|
@ -89,6 +104,12 @@ jobs:
|
|||
with:
|
||||
name: TypefaceUtil-netcoreapp3.1-ubuntu.14.04-x64
|
||||
path: ./artifacts/TypefaceUtil-netcoreapp3.1-ubuntu.14.04-x64
|
||||
- name: Artifacts
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: TypefaceUtil-linux-x64
|
||||
path: ./artifacts/TypefaceUtil-linux-x64
|
||||
|
||||
publish-macOS:
|
||||
name: Publish macOS-latest
|
||||
|
@ -103,7 +124,18 @@ jobs:
|
|||
dotnet-version: 3.1.102
|
||||
- name: Publish
|
||||
if: github.event_name != 'pull_request'
|
||||
run: dotnet publish -c Release -f netcoreapp3.1 -r osx.10.12-x64 -o ./artifacts/TypefaceUtil-netcoreapp3.1-osx.10.12-x64 ./src/TypefaceUtil/TypefaceUtil.csproj
|
||||
run: |
|
||||
dotnet publish -c Release /p:PublishTrimmed=True /p:PublishReadyToRun=True -f netcoreapp3.1 -r osx.10.12-x64 -o ./artifacts/TypefaceUtil-netcoreapp3.1-osx.10.12-x64 ./src/TypefaceUtil/TypefaceUtil.csproj
|
||||
dotnet publish -c Release /p:PublishTrimmed=False /p:PublishReadyToRun=False -f netcoreapp3.1 -r osx-x64 -o ./artifacts/TypefaceUtil-osx-x64 ./src/TypefaceUtil/TypefaceUtil.csproj
|
||||
strip ./artifacts/TypefaceUtil-osx-x64/TypefaceUtil
|
||||
rm ./artifacts/TypefaceUtil-osx-x64/*.pdb
|
||||
rm ./artifacts/TypefaceUtil-osx-x64/*.json
|
||||
- name: Artifacts
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: TypefaceUtil-netcoreapp3.1-osx.10.12-x64
|
||||
path: ./artifacts/TypefaceUtil-netcoreapp3.1-osx.10.12-x64
|
||||
- name: Artifacts
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: actions/upload-artifact@master
|
||||
|
|
45
README.md
45
README.md
|
@ -73,6 +73,51 @@ TypefaceUtil -d C:\Windows\Fonts --png --svg --xaml -o export
|
|||
TypefaceUtil -d C:\Windows\Fonts --png --svg --xaml --zip --zipFile "Windows-Fonts-IconPack.zip"
|
||||
```
|
||||
|
||||
## Build
|
||||
|
||||
```
|
||||
dotnet build
|
||||
```
|
||||
|
||||
## Publish
|
||||
|
||||
```
|
||||
dotnet publish -c Release /p:PublishTrimmed=True /p:PublishReadyToRun=True -f netcoreapp3.1 -r win7-x64 -o ./artifacts/TypefaceUtil-netcoreapp3.1-win7-x64 ./src/TypefaceUtil/TypefaceUtil.csproj
|
||||
```
|
||||
|
||||
```
|
||||
dotnet publish -c Release /p:PublishTrimmed=True /p:PublishReadyToRun=True -f netcoreapp3.1 -r debian.8-x64 -o ./artifacts/TypefaceUtil-netcoreapp3.1-debian.8-x64 ./src/TypefaceUtil/TypefaceUtil.csproj
|
||||
```
|
||||
|
||||
```
|
||||
dotnet publish -c Release /p:PublishTrimmed=True /p:PublishReadyToRun=True -f netcoreapp3.1 -r ubuntu.14.04-x64 -o ./artifacts/TypefaceUtil-netcoreapp3.1-ubuntu.14.04-x64 ./src/TypefaceUtil/TypefaceUtil.csproj
|
||||
```
|
||||
|
||||
```
|
||||
dotnet publish -c Release /p:PublishTrimmed=True /p:PublishReadyToRun=True -f netcoreapp3.1 -r osx.10.12-x64 -o ./artifacts/TypefaceUtil-netcoreapp3.1-osx.10.12-x64 ./src/TypefaceUtil/TypefaceUtil.csproj
|
||||
```
|
||||
|
||||
```
|
||||
dotnet publish -c Release /p:PublishTrimmed=False /p:PublishReadyToRun=False -f netcoreapp3.1 -r win-x64 -o ./artifacts/TypefaceUtil-win-x64 ./src/TypefaceUtil/TypefaceUtil.csproj
|
||||
del artifacts\TypefaceUtil-win-x64\*.pdb
|
||||
del artifacts\TypefaceUtil-win-x64\*.json
|
||||
```
|
||||
|
||||
```
|
||||
sudo apt-get install clang zlib1g-dev libkrb5-dev libtinfo5
|
||||
dotnet publish -c Release /p:PublishTrimmed=False /p:PublishReadyToRun=False -f netcoreapp3.1 -r linux-x64 -o ./artifacts/TypefaceUtil-linux-x64 ./src/TypefaceUtil/TypefaceUtil.csproj
|
||||
strip ./artifacts/TypefaceUtil-linux-x64/TypefaceUtil
|
||||
rm ./artifacts/TypefaceUtil-linux-x64/*.pdb
|
||||
rm ./artifacts/TypefaceUtil-linux-x64/*.json
|
||||
```
|
||||
|
||||
```
|
||||
dotnet publish -c Release /p:PublishTrimmed=False /p:PublishReadyToRun=False -f netcoreapp3.1 -r osx-x64 -o ./artifacts/TypefaceUtil-osx-x64 ./src/TypefaceUtil/TypefaceUtil.csproj
|
||||
strip ./artifacts/TypefaceUtil-osx-x64/TypefaceUtil
|
||||
rm ./artifacts/TypefaceUtil-osx-x64/*.pdb
|
||||
rm ./artifacts/TypefaceUtil-osx-x64/*.json
|
||||
```
|
||||
|
||||
## Testing
|
||||
|
||||
```
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<packageSources>
|
||||
<clear />
|
||||
<add key="dotnet-core" value="https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json" />
|
||||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
|
||||
</packageSources>
|
||||
</configuration>
|
|
@ -24,13 +24,30 @@
|
|||
<PackageTags>opentype;ttf;fonts;cmap;unicode;skiasharp;text;converter;png;svg;xaml;avaloniaui;avalonia;typeface;codepoint</PackageTags>
|
||||
</PropertyGroup>
|
||||
|
||||
<!--
|
||||
<PropertyGroup>
|
||||
<PublishTrimmed>True</PublishTrimmed>
|
||||
<PublishSingleFile>False</PublishSingleFile>
|
||||
<PublishReadyToRun>True</PublishReadyToRun>
|
||||
</PropertyGroup>
|
||||
-->
|
||||
|
||||
<PropertyGroup>
|
||||
<IlcInvariantGlobalization>true</IlcInvariantGlobalization>
|
||||
<!--
|
||||
<RootAllApplicationAssemblies>false</RootAllApplicationAssemblies>
|
||||
<IlcGenerateCompleteTypeMetadata>false</IlcGenerateCompleteTypeMetadata>
|
||||
<IlcGenerateStackTraceData>false</IlcGenerateStackTraceData>
|
||||
<IlcDisableReflection>true</IlcDisableReflection>
|
||||
<IlcOptimizationPreference>Speed</IlcOptimizationPreference>
|
||||
<IlcFoldIdenticalMethodBodies>true</IlcFoldIdenticalMethodBodies>
|
||||
<IlcDisableUnhandledExceptionExperience>true</IlcDisableUnhandledExceptionExperience>
|
||||
-->
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.DotNet.ILCompiler" Version="1.0.0-alpha-*" />
|
||||
<PackageReference Include="System.CommandLine" Version="2.0.0-beta1.20303.1" />
|
||||
<PackageReference Include="SkiaSharp" Version="1.68.3" />
|
||||
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="1.68.3" />
|
||||
|
|
Загрузка…
Ссылка в новой задаче