#!/bin/sh
# Popcorn universal launcher: picks the bundle matching the running CPU architecture.
case "$(uname -m)" in
  x86_64|amd64)   arch=x86_64 ;;
  aarch64|arm64)  arch=aarch64 ;;
  *) echo "popcorn: unsupported architecture '$(uname -m)' (this package ships x86_64 and aarch64 builds)" >&2; exit 1 ;;
esac
exec "/opt/popcorn/$arch/popcorn" "$@"
