mirror of
https://github.com/InstanceBrick/nightcap.git
synced 2026-10-19 11:00:52 +02:00
17 lines
512 B
Bash
Executable File
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" "$@"
|