Upload files to "/"

This commit is contained in:
aidan committed 2026-11-11 01:20:27 +02:00
1 parent 06269f1f65
commit 6d94493e58
4 files changed
+339 -220

No files matched your search

+17 -12
View File
@@ -1,12 +1,17 @@
# Build OpenPrestige and collect the host binaries in dist/.
$ErrorActionPreference = 'Continue'
Set-Location $PSScriptRoot
if (Test-Path 'C:\Program Files\Eclipse Adoptium\jdk-21.0.12.101-hotspot') { $env:JAVA_HOME = 'C:\Program Files\Eclipse Adoptium\jdk-21.0.12.101-hotspot' }
& .\gradlew.bat remapJar --console=plain
if ($LASTEXITCODE -ne 0) { throw 'gradle remapJar failed' }
cargo build --release --manifest-path injector\Cargo.toml
if ($LASTEXITCODE -ne 0) { throw 'cargo build failed' }
New-Item -ItemType Directory -Force dist | Out-Null
Copy-Item injector\target\release\OpenPrestigeInjector.exe, injector\target\release\prestige_native.dll dist\ -Force
Get-ChildItem build\libs\prestige-*.jar | Where-Object { $_.Name -notmatch '-(dev|sources)\.jar$' } | Copy-Item -Destination dist\ -Force
Write-Host 'Done: dist\OpenPrestigeInjector.exe + native library + Fabric mod JAR'
# Build OpenPrestige and collect the host binaries in dist/.
param([string]$Python = 'python')
$ErrorActionPreference = 'Stop'
Set-Location $PSScriptRoot
if (Test-Path 'C:\Program Files\Eclipse Adoptium\jdk-21.0.12.101-hotspot') { $env:JAVA_HOME = 'C:\Program Files\Eclipse Adoptium\jdk-21.0.12.101-hotspot' }
& .\gradlew.bat bundlePayloads "-PpythonExecutable=$Python" --console=plain
if ($LASTEXITCODE -ne 0) { throw 'gradle bundlePayloads failed' }
$env:PRESTIGE_PAYLOAD = $null
$env:PRESTIGE_BUNDLE = Join-Path $PSScriptRoot 'build/bundle'
cargo build --release --manifest-path injector\Cargo.toml
if ($LASTEXITCODE -ne 0) { throw 'cargo build failed' }
New-Item -ItemType Directory -Force dist | Out-Null
Copy-Item injector\target\release\OpenPrestigeInjector.exe, injector\target\release\prestige_native.dll dist\ -Force
$version = (Get-Content gradle.properties | Where-Object { $_ -like 'mod_version=*' }) -replace '^mod_version=', ''
& $Python scripts/package_release.py offline dist $version windows-x86_64 dist/OpenPrestigeInjector.exe dist/prestige_native.dll build/bundle/common.jar
if ($LASTEXITCODE -ne 0) { throw 'release packaging failed' }
Write-Host 'Done: dist contains the offline multi-version Windows bundle'