Packages carry their ONNX Runtime; a DEB per Ubuntu LTS
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>
This commit is contained in:
1 parent
2807b77e8c
commit
2d219dd115
12 files changed
+98
-37
No files matched your search
@@ -21,5 +21,4 @@ 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 -)
|
||||
# pacman asks which ONNX Runtime build provides onnxruntime.
|
||||
sudo pacman -U "$work/$package"
|
||||
@@ -1,14 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
# Installs OmaPhoto's latest DEB on Ubuntu 24.04 and derivatives.
|
||||
# Installs OmaPhoto's latest DEB on Ubuntu LTS and derivatives.
|
||||
set -euo pipefail
|
||||
base=https://github.com/ZacharyZhang-NY/OmaPhoto/releases/latest/download
|
||||
package=omaphoto_amd64.deb
|
||||
. /etc/os-release
|
||||
# The DEB names Ubuntu 24.04's libraries; derivatives name their base.
|
||||
if [ "${UBUNTU_CODENAME:-}" != noble ]; then
|
||||
echo "This script is for Ubuntu 24.04 and systems built on it; this system is ${PRETTY_NAME:-unknown}." >&2
|
||||
# Each DEB names its LTS's libraries; derivatives name their base.
|
||||
case "${UBUNTU_CODENAME:-}" in
|
||||
noble | resolute) ;;
|
||||
*)
|
||||
echo "This script is for Ubuntu 24.04 or 26.04 and systems built on them; this system is ${PRETTY_NAME:-unknown}." >&2
|
||||
exit 1
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
package=omaphoto-${UBUNTU_CODENAME}_amd64.deb
|
||||
if [ "$(uname -m)" != x86_64 ]; then
|
||||
echo "OmaPhoto's packages are built for x86_64 alone." >&2
|
||||
exit 1
|
||||
|
||||
Reference in new issue
Block a user