mirror of
https://github.com/Cheviiot/Nivora.git
synced 2026-08-03 15:51:12 +00:00
Maintain a validated cross-distribution package catalog. Automate upstream updates, isolated builds, diagnostics, and direct publication. Build the official GitHub Desktop sources for Linux with working OAuth.
26 lines
516 B
Bash
Executable File
26 lines
516 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
install_dir="${VENTOY_INSTALL_DIR:-/opt/ventoy}"
|
|
|
|
case "$(uname -m)" in
|
|
x86_64 | amd64)
|
|
gui='VentoyGUI.x86_64'
|
|
;;
|
|
aarch64 | arm64)
|
|
gui='VentoyGUI.aarch64'
|
|
;;
|
|
*)
|
|
echo "Ventoy: неподдерживаемая архитектура $(uname -m)" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
if [[ ! -x "${install_dir}/${gui}" ]]; then
|
|
echo "Ventoy: не найден исполняемый файл ${install_dir}/${gui}" >&2
|
|
exit 1
|
|
fi
|
|
|
|
cd "$install_dir"
|
|
exec "./${gui}" "$@"
|