T25: release builds: scripts/windows-zip.ps1 zips elyterminal.exe, the icon inside as resource 1 (build.rs, embed-resource), a GUI program carrying its C runtime, git started without a console; scripts/linux-tar.sh builds on Debian 12, glibc 2.35 for this build, with a desktop entry and the icon; every window names itself com.zacharyzhang.elyterminal; rust-toolchain.toml pins 1.95.0, and CI installs it without rustup default
This commit is contained in:
21 files changed
+211
-39
No files matched your search
@@ -0,0 +1,13 @@
|
||||
# windows-zip.ps1: the release build, its icon inside, in a zip.
|
||||
Set-Location (Join-Path $PSScriptRoot '..') -ErrorAction Stop
|
||||
cargo build --release --locked
|
||||
if ($LASTEXITCODE -ne 0) { throw "windows-zip: cargo build failed" }
|
||||
$version = ((cargo pkgid) -split '[#@]')[-1]
|
||||
if ($version -notmatch '^[0-9]') { throw "windows-zip: cargo pkgid names no version" }
|
||||
$arch = @{ AMD64 = 'x86_64'; ARM64 = 'aarch64' }[$env:PROCESSOR_ARCHITECTURE]
|
||||
if (-not $arch) { throw "windows-zip: no name for $env:PROCESSOR_ARCHITECTURE" }
|
||||
$target = if ($env:CARGO_TARGET_DIR) { $env:CARGO_TARGET_DIR } else { 'target' }
|
||||
$out = Join-Path $target 'release'
|
||||
$zip = Join-Path $out "ELYTerminal-$version-windows-$arch.zip"
|
||||
Compress-Archive -Force -Path (Join-Path $out 'elyterminal.exe') -DestinationPath $zip -ErrorAction Stop
|
||||
Write-Output "windows-zip: $zip"
|
||||
Reference in new issue
Block a user