Files
InstanceBrick--nightcap/packaging/AppRun
T
2026-08-26 02:29:01 +03:00

17 lines
512 B
Bash
Executable File

#!/bin/sh
# Copyright 2026 Mocktail Project Authors
# SPDX-License-Identifier: Apache-2.0
set -eu
APPDIR="${APPDIR:-$(CDPATH= cd -P "$(dirname -- "$0")" && pwd)}"
if [ -n "${SHARUN_DIR:-}" ] && [ -x "${APPDIR}/bin/bash" ]; then
export MOCKTAIL_ANYLINUX_BIN_DIR="${APPDIR}/bin"
export MOCKTAIL_BUNDLE_ROOT="${APPDIR}/usr/share/mocktail-bundle"
exec "${APPDIR}/bin/bash" \
"${MOCKTAIL_BUNDLE_ROOT}/mocktail/scripts/portable_launcher.sh" "$@"
fi
exec "${APPDIR}/usr/share/mocktail-bundle/run.sh" "$@"