Skip to content

Commit 0a1a05c

Browse files
committed
fix: Adding graceful tauri launch for linux
1 parent de81a5f commit 0a1a05c

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
#!/bin/bash
2-
rootdir=`dirname $0`
3-
rootdir=`cd $rootdir && pwd`
2+
basedir=$(cd "$(dirname "$0")/../lib" && pwd)
43

5-
$rootdir/server/server $@
4+
if [ -d "$basedir/quickview" ]; then
5+
rootdir="$basedir/quickview"
6+
elif [ -d "$basedir/quick-view" ]; then
7+
rootdir="$basedir/quick-view"
8+
else
9+
echo "Error: Could not find quickview or quick-view directory in $basedir" >&2
10+
exit 1
11+
fi
12+
13+
"$rootdir/server/server" "$@"

0 commit comments

Comments
 (0)