mirror of
https://github.com/tauri-apps/linuxdeploy-plugin-gtk.git
synced 2026-01-31 00:45:20 +01:00
50 lines
795 B
Bash
Executable File
50 lines
795 B
Bash
Executable File
#! /bin/bash
|
|
|
|
# abort on all errors
|
|
set -e
|
|
|
|
if [ "$DEBUG" != "" ]; then
|
|
set -x
|
|
fi
|
|
|
|
script=$(readlink -f "$0")
|
|
|
|
show_usage() {
|
|
echo "Usage: $script --appdir <path to AppDir>"
|
|
echo
|
|
echo "Bundles resources for applications that use Gtk 2 or 3 into an AppDir"
|
|
}
|
|
|
|
APPDIR=
|
|
|
|
while [ "$1" != "" ]; do
|
|
case "$1" in
|
|
--plugin-api-version)
|
|
echo "0"
|
|
exit 0
|
|
;;
|
|
--appdir)
|
|
APPDIR="$2"
|
|
shift
|
|
shift
|
|
;;
|
|
--help)
|
|
show_usage
|
|
exit 0
|
|
;;
|
|
*)
|
|
echo "Invalid argument: $1"
|
|
echo
|
|
show_usage
|
|
exit 1
|
|
;;
|
|
esac
|
|
done
|
|
|
|
if [ "$APPDIR" == "" ]; then
|
|
show_usage
|
|
exit 1
|
|
fi
|
|
|
|
mkdir -p "$APPDIR"
|