Cf. koreader/kobase#2298. The `linux` update target now build an AppImage too. Other miscellaneous changes: - AppImage: * better icons * update filename to conform to spec (`ApplicationName-$VERSION-$ARCH.AppImage`) * running from extracted contents will behave like the Linux distribution (multi-user mode) - Debian package: * better icons * update version to include git commit * drop fakeroot requirement for building * fix dependencies (based on our targeted Ubuntu LTS: 22.04, AKA Jammy) - Linux distribution: * better icons * improved start-up script (can be symlinked to)
29 lines
530 B
Bash
Executable File
29 lines
530 B
Bash
Executable File
#!/bin/sh
|
|
|
|
export LC_ALL="en_US.UTF-8"
|
|
|
|
# Working directory.
|
|
KOREADER_DIR="$(dirname "$(realpath "$0")")"
|
|
|
|
# export @KOREADER_FLAVOR@
|
|
|
|
# FIXME: handle multiple arguments.
|
|
if [ $# -eq 1 ] && [ -e "$(pwd)/$1" ]; then
|
|
ARGS="$(pwd)/$1"
|
|
else
|
|
ARGS="$*"
|
|
fi
|
|
|
|
# We're always starting from our working directory.
|
|
cd "${KOREADER_DIR}" || exit
|
|
|
|
RETURN_VALUE=85
|
|
while [ ${RETURN_VALUE} -eq 85 ]; do
|
|
./reader.lua "${ARGS}"
|
|
RETURN_VALUE=$?
|
|
# Do not restart with saved arguments.
|
|
ARGS="${HOME}"
|
|
done
|
|
|
|
exit ${RETURN_VALUE}
|