Merge branch 'v2_3784_selfcontained_nativeaot-local-release-package' into v2_2798_add-true-color-to-cursesdriver

This commit is contained in:
BDisp
2024-10-11 00:41:36 +01:00
10 changed files with 55 additions and 4 deletions

View File

@@ -90,7 +90,13 @@ jobs:
dotnet-version: 8.x
dotnet-quality: 'ga'
- name: Build Release
- name: Build Release Terminal.Gui
run: dotnet build Terminal.Gui/Terminal.Gui.csproj --configuration Release
- name: Pack Release Terminal.Gui
run: dotnet pack Terminal.Gui/Terminal.Gui.csproj --configuration Release --output ./local_packages
- name: Build Release Solution
run: dotnet build --configuration Release

1
.gitignore vendored
View File

@@ -61,3 +61,4 @@ demo.*
*.tui/
*.dotCover
/local_packages/

View File

@@ -15,7 +15,7 @@
</ItemGroup>
<ItemGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<PackageReference Include="Terminal.Gui" Version="[2.0.0-v2-develop.2189,3)" />
<PackageReference Include="Terminal.Gui" Version="2.0.0" />
<TrimmerRootAssembly Include="Terminal.Gui" />
</ItemGroup>

View File

@@ -0,0 +1,9 @@
# Step 1: Build and pack Terminal.Gui
dotnet build ../Terminal.Gui/Terminal.Gui.csproj --configuration Release
dotnet pack ../Terminal.Gui/Terminal.Gui.csproj --configuration Release --output ../local_packages
# Step 2: Restore NativeAot with the new package
dotnet restore ./NativeAot.csproj --source ./local_packages
# Step 3: Build NativeAot
dotnet build ./NativeAot.csproj --configuration Release

View File

@@ -0,0 +1,11 @@
#!/bin/bash
# Step 1: Build and pack Terminal.Gui
dotnet build ../Terminal.Gui/Terminal.Gui.csproj --configuration Release
dotnet pack ../Terminal.Gui/Terminal.Gui.csproj --configuration Release --output ../local_packages
# Step 2: Restore NativeAot with the new package
dotnet restore ./NativeAot.csproj --source ./local_packages
# Step 3: Build NativeAot
dotnet build ./NativeAot.csproj --configuration Release

View File

@@ -0,0 +1,9 @@
# Step 1: Build and pack Terminal.Gui
dotnet build ../Terminal.Gui/Terminal.Gui.csproj --configuration Release
dotnet pack ../Terminal.Gui/Terminal.Gui.csproj --configuration Release --output ../local_packages
# Step 2: Restore SelfContained with the new package
dotnet restore ./SelfContained.csproj --source ./local_packages
# Step 3: Build SelfContained
dotnet build ./SelfContained.csproj --configuration Release

View File

@@ -0,0 +1,11 @@
#!/bin/bash
# Step 1: Build and pack Terminal.Gui
dotnet build ../Terminal.Gui/Terminal.Gui.csproj --configuration Release
dotnet pack ../Terminal.Gui/Terminal.Gui.csproj --configuration Release --output ../local_packages
# Step 2: Restore SelfContained with the new package
dotnet restore ./SelfContained.csproj --source ./local_packages
# Step 3: Build SelfContained
dotnet build ./SelfContained.csproj --configuration Release

View File

@@ -18,7 +18,7 @@
</ItemGroup>
<ItemGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<PackageReference Include="Terminal.Gui" Version="[2.0.0-pre.1788,3)" />
<PackageReference Include="Terminal.Gui" Version="2.0.0" />
<TrimmerRootAssembly Include="Terminal.Gui" />
</ItemGroup>

View File

@@ -60,7 +60,7 @@
<!-- Enable Nuget Source Link for github -->
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="[8,9)" PrivateAssets="all" />
<PackageReference Include="System.IO.Abstractions" Version="[21.0.22,22)" />
<PackageReference Include="System.Text.Json" Version="[8.0.4,9)" />
<PackageReference Include="System.Text.Json" Version="[8.0.5,9)" />
<PackageReference Include="Wcwidth" Version="[2,3)" />
</ItemGroup>
<!-- =================================================================== -->

View File

@@ -9,10 +9,14 @@
<!--To inherit the global NuGet package sources remove the <clear/> line below -->
<clear />
<add key="nuget" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
<add key="LocalPackages" value="./local_packages" />
</packageSources>
<packageSourceMapping>
<packageSource key="nuget">
<package pattern="*" />
</packageSource>
<packageSource key="LocalPackages">
<package pattern="Terminal.Gui*" />
</packageSource>
</packageSourceMapping>
</configuration>