fixed bugs, memory leaks, etc
This commit is contained in:
1 parent
aa4f6b6ddc
commit
c3f8f23c1d
124 files changed
+1060
-420
No files matched your search
+2
-4
@@ -1,15 +1,13 @@
|
||||
# Builds the Prestige payload jar (remapped for the production Fabric runtime), then the Rust injector and loader DLL,
|
||||
# and collects PrestigeInjector.exe + prestige_native.dll in dist\.
|
||||
$ErrorActionPreference = 'Stop'
|
||||
# native tools write progress/notes to stderr; failures are detected through $LASTEXITCODE instead
|
||||
$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 reports progress on stderr, which PowerShell would treat as an error under 'Stop'
|
||||
$ErrorActionPreference = 'Continue'
|
||||
cargo build --release --manifest-path injector\Cargo.toml
|
||||
if ($LASTEXITCODE -ne 0) { throw 'cargo build failed' }
|
||||
$ErrorActionPreference = 'Stop'
|
||||
New-Item -ItemType Directory -Force dist | Out-Null
|
||||
Copy-Item injector\target\release\PrestigeInjector.exe, injector\target\release\prestige_native.dll dist\ -Force
|
||||
Write-Host 'Done: dist\PrestigeInjector.exe + dist\prestige_native.dll'
|
||||
Reference in new issue
Block a user