aboutsummaryrefslogtreecommitdiff
path: root/scripts/run-local
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/run-local')
-rwxr-xr-xscripts/run-local10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/run-local b/scripts/run-local
index d5de23aa..8a32e7fa 100755
--- a/scripts/run-local
+++ b/scripts/run-local
@@ -47,10 +47,7 @@ if [[ "$OSTYPE" == "msys"* || "$OSTYPE" == "mingw"* ]]; then
fi
rundir=".run"
-if [[ "$OSTYPE" == "darwin"* ]]; then
- bindir="$rundir"
- datadir="$rundir"
-elif [ "$option_portable" == on ]; then
+if [ "$option_portable" == on ]; then
bindir="$rundir"
datadir="$rundir/data"
else
@@ -75,9 +72,14 @@ copy_lite_build () {
else
cp "$builddir/src/lite-xl" "$bindir"
fi
+ mkdir -p "$datadir/core"
for module_name in core plugins colors fonts; do
cp -r "data/$module_name" "$datadir"
done
+ # The start.lua file is generated by meson in $builddir but
+ # there is already a start.lua file in data/core so the command below
+ # should be executed after we copy the data/core directory.
+ cp "$builddir/start.lua" "$datadir/core"
}
run_lite () {