mirror of
https://github.com/TommyFang2077/dsh-desktop.git
synced 2026-08-17 09:06:36 +08:00
Ship screenshots and third-party notices for the desktop shell, and package Windows, macOS, deb, rpm, and Flatpak from GitHub Releases. Co-authored-by: Cursor <cursoragent@cursor.com>
14 lines
370 B
Bash
Executable File
14 lines
370 B
Bash
Executable File
#!/bin/sh
|
|
# Run a built binary from the checkout, or fall back to cargo.
|
|
set -e
|
|
ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
for candidate in \
|
|
"$ROOT/target/release/dsh-desktop" \
|
|
"$ROOT/target/debug/dsh-desktop"
|
|
do
|
|
if [ -x "$candidate" ]; then
|
|
exec "$candidate" "$@"
|
|
fi
|
|
done
|
|
exec cargo run --manifest-path "$ROOT/Cargo.toml" -p dsh-desktop -- "$@"
|