mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-07-15 15:19:57 +00:00
Native linux support (#1378) (Closes #1375 Closes #1376 Closes #1377 Closes #1374 Closes #1373 Closes #1372 Closes #1371)
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
# Publishes the main Daybreak Linux x64 build and the Linux x64 installer.
|
||||
|
||||
Param(
|
||||
[string]$Configuration = "Release"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
$RepoRoot = Resolve-Path "$PSScriptRoot/.."
|
||||
|
||||
$DaybreakOutput = Join-Path $RepoRoot "Publish"
|
||||
$InstallerOutput = Join-Path $RepoRoot "Publish/Installer"
|
||||
|
||||
Write-Host "=== Publishing Daybreak.Linux (linux-x64) ===" -ForegroundColor Cyan
|
||||
dotnet publish "$RepoRoot/Daybreak.Linux/Daybreak.Linux.csproj" -c $Configuration -r linux-x64 -o $DaybreakOutput
|
||||
if ($LASTEXITCODE -ne 0) { throw "Daybreak.Linux publish failed" }
|
||||
|
||||
Write-Host "=== Publishing Daybreak.Installer (linux-x64) ===" -ForegroundColor Cyan
|
||||
dotnet publish "$RepoRoot/Daybreak.Installer/Daybreak.Installer.csproj" -c $Configuration -r linux-x64 -o $InstallerOutput
|
||||
if ($LASTEXITCODE -ne 0) { throw "Daybreak.Installer publish failed" }
|
||||
|
||||
Write-Host "=== Linux x64 publish complete ===" -ForegroundColor Green
|
||||
Write-Host "Daybreak: $DaybreakOutput"
|
||||
Write-Host "Installer: $InstallerOutput"
|
||||
@@ -0,0 +1,23 @@
|
||||
# Publishes the main Daybreak Windows x64 build and the Windows x64 installer.
|
||||
|
||||
Param(
|
||||
[string]$Configuration = "Release"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
$RepoRoot = Resolve-Path "$PSScriptRoot/.."
|
||||
|
||||
$DaybreakOutput = Join-Path $RepoRoot "Publish"
|
||||
$InstallerOutput = Join-Path $RepoRoot "Publish/Installer"
|
||||
|
||||
Write-Host "=== Publishing Daybreak.Windows (win-x64) ===" -ForegroundColor Cyan
|
||||
dotnet publish "$RepoRoot/Daybreak.Windows/Daybreak.Windows.csproj" -c $Configuration -r win-x64 -o $DaybreakOutput
|
||||
if ($LASTEXITCODE -ne 0) { throw "Daybreak.Windows publish failed" }
|
||||
|
||||
Write-Host "=== Publishing Daybreak.Installer (win-x64) ===" -ForegroundColor Cyan
|
||||
dotnet publish "$RepoRoot/Daybreak.Installer/Daybreak.Installer.csproj" -c $Configuration -r win-x64 -o $InstallerOutput
|
||||
if ($LASTEXITCODE -ne 0) { throw "Daybreak.Installer publish failed" }
|
||||
|
||||
Write-Host "=== Windows x64 publish complete ===" -ForegroundColor Green
|
||||
Write-Host "Daybreak: $DaybreakOutput"
|
||||
Write-Host "Installer: $InstallerOutput"
|
||||
@@ -0,0 +1,24 @@
|
||||
# Publishes the Daybreak.Injector (x86) and Daybreak.API (x86) for Windows.
|
||||
# These are x86 components that can only be built on Windows.
|
||||
|
||||
Param(
|
||||
[string]$Configuration = "Release"
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
$RepoRoot = Resolve-Path "$PSScriptRoot/.."
|
||||
|
||||
$InjectorOutput = Join-Path $RepoRoot "Publish/Injector"
|
||||
$ApiOutput = Join-Path $RepoRoot "Publish/Api"
|
||||
|
||||
Write-Host "=== Publishing Daybreak.Injector (win-x86) ===" -ForegroundColor Cyan
|
||||
dotnet publish "$RepoRoot/Daybreak.Injector/Daybreak.Injector.csproj" -c $Configuration -r win-x86 -o $InjectorOutput
|
||||
if ($LASTEXITCODE -ne 0) { throw "Daybreak.Injector publish failed" }
|
||||
|
||||
Write-Host "=== Publishing Daybreak.API (win-x86) ===" -ForegroundColor Cyan
|
||||
dotnet publish "$RepoRoot/Daybreak.API/Daybreak.API.csproj" -c $Configuration -r win-x86 -o $ApiOutput
|
||||
if ($LASTEXITCODE -ne 0) { throw "Daybreak.API publish failed" }
|
||||
|
||||
Write-Host "=== Windows x86 publish complete ===" -ForegroundColor Green
|
||||
Write-Host "Injector: $InjectorOutput"
|
||||
Write-Host "API: $ApiOutput"
|
||||
Reference in New Issue
Block a user