mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 08:50:25 +01:00
Using scripts to build release for NativeAot and SelfContained.
This commit is contained in:
8
.github/workflows/dotnet-core.yml
vendored
8
.github/workflows/dotnet-core.yml
vendored
@@ -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
1
.gitignore
vendored
@@ -61,3 +61,4 @@ demo.*
|
||||
*.tui/
|
||||
|
||||
*.dotCover
|
||||
/local_packages/
|
||||
|
||||
8
NativeAot/PackTerminalGui.ps1
Normal file
8
NativeAot/PackTerminalGui.ps1
Normal 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
|
||||
10
NativeAot/PackTerminalGui.sh
Normal file
10
NativeAot/PackTerminalGui.sh
Normal 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
|
||||
8
SelfContained/PackTerminalGui.ps1
Normal file
8
SelfContained/PackTerminalGui.ps1
Normal 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
|
||||
10
SelfContained/PackTerminalGui.sh
Normal file
10
SelfContained/PackTerminalGui.sh
Normal 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
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user