Using scripts to build release for NativeAot and SelfContained.

This commit is contained in:
BDisp
2024-10-10 22:32:37 +01:00
parent ad69b9db4d
commit 5b108a9261
7 changed files with 40 additions and 13 deletions

View File

@@ -90,14 +90,8 @@ jobs:
dotnet-version: 8.x
dotnet-quality: 'ga'
- name: Create local_packages Directory
run: mkdir -p local_packages
- name: Pack Release
run: dotnet pack --configuration Release --output ./local_packages
- name: Restore dependencies
run: dotnet restore --source ./local_packages
run: dotnet pack ./Terminal.Gui/Terminal.Gui.csproj --configuration Release --output ./local_packages
- name: Build Release
run: dotnet build --configuration Release

1
.gitignore vendored
View File

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

View File

@@ -0,0 +1,8 @@
# Step 1: Build and pack Terminal.Gui
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,10 @@
#!/bin/bash
# Step 1: Build and pack Terminal.Gui
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,8 @@
# Step 1: Build and pack Terminal.Gui
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,10 @@
#!/bin/bash
# Step 1: Build and pack Terminal.Gui
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

@@ -9,18 +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="Terminal.Gui/bin/Release" />
<add key="local_packages" value="./local_packages" />
<add key="LocalPackages" value="./local_packages" />
</packageSources>
<packageSourceMapping>
<packageSource key="nuget">
<package pattern="*" />
</packageSource>
<packageSource key="LocalPackages">
<package pattern="Terminal.Gui" />
</packageSource>
<packageSource key="local_packages">
<package pattern="Terminal.Gui" />
<package pattern="Terminal.Gui*" />
</packageSource>
</packageSourceMapping>
</configuration>