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
+3
-3
@@ -1,17 +1,17 @@
|
||||
#!/bin/sh
|
||||
# mac-app.sh: target/release/ELYTerminal.app, signed ad hoc, and its disk image.
|
||||
# mac-app.sh: ELYTerminal.app in target/release, signed ad hoc, and its disk image.
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
cargo build --release --locked
|
||||
version=$(cargo pkgid)
|
||||
version=${version##*[#@]}
|
||||
case $version in [0-9]*) ;; *) echo "mac-app: cargo pkgid names no version" >&2; exit 1 ;; esac
|
||||
out=target/release
|
||||
out=${CARGO_TARGET_DIR:-target}/release
|
||||
app=$out/ELYTerminal.app
|
||||
work=$(mktemp -d)
|
||||
trap 'rm -rf "$work"' EXIT
|
||||
cargo run --release --locked --quiet --example icons -- \
|
||||
assets/icons/elyterminal-macos.svg "$work/ELYTerminal.iconset"
|
||||
iconset assets/icons/elyterminal-macos.svg "$work/ELYTerminal.iconset"
|
||||
rm -rf "$app"
|
||||
mkdir -p "$app/Contents/MacOS" "$app/Contents/Resources"
|
||||
cp "$out/elyterminal" "$app/Contents/MacOS/"
|
||||
|
||||
Reference in new issue
Block a user