ONNX Runtime stamps its symbols with each release's version, so the 1.0.0 RPM demanded Fedora 42's exact runtime (issue #5) and the Arch package would break on the next update. The RPM and the Arch package now bundle Microsoft's 1.21.0 build, as the DEB does, and the images test against it. The RPM builds on Fedora 43. A DEB built on Ubuntu 26.04 joins 24.04's, and ubuntu.sh picks by codename. Co-Authored-By: Claude <noreply@anthropic.com>
25 lines
835 B
Bash
Executable File
25 lines
835 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Installs OmaPhoto's latest package on Arch and Omarchy.
|
|
set -euo pipefail
|
|
base=https://github.com/ZacharyZhang-NY/OmaPhoto/releases/latest/download
|
|
package=omaphoto-x86_64.pkg.tar.zst
|
|
. /etc/os-release
|
|
case " ${ID:-} ${ID_LIKE:-} " in
|
|
*" arch "*) ;;
|
|
*)
|
|
echo "This script is for Arch and Omarchy; this system is ${PRETTY_NAME:-unknown}." >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
if [ "$(uname -m)" != x86_64 ]; then
|
|
echo "OmaPhoto's packages are built for x86_64 alone." >&2
|
|
exit 1
|
|
fi
|
|
work=$(mktemp -d)
|
|
trap 'rm -rf "$work"' EXIT
|
|
curl -fL --proto '=https' -o "$work/$package" "$base/$package"
|
|
curl -fsSL --proto '=https' -o "$work/SHA256SUMS" "$base/SHA256SUMS"
|
|
# The package must match the checksum published beside it.
|
|
(cd "$work" && grep " $package\$" SHA256SUMS | sha256sum -c -)
|
|
sudo pacman -U "$work/$package"
|