Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6d63ac2

Browse files
run_desktop.sh: simplify
1 parent862314d commit6d63ac2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

‎scripts/run_desktop.sh‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,13 @@ echo "$0 appname # starts the app by appname, for example: com.example.helloworl
3838
export HEAPSIZE=32M# for 1280x720 images in the image viewer
3939
export HEAPSIZE=128M# for 1280x720 images in the image viewer
4040

41+
binary=../lvgl_micropython/build/lvgl_micropy_unix
42+
binary=$(readlink -f"$binary")
43+
chmod +x"$binary"
44+
4145
pushd internal_filesystem/
4246
if [-f"$script" ];then
43-
../../lvgl_micropython/build/lvgl_micropy_unix -v -i"$script"
47+
"$binary" -v -i"$script"
4448
elif [!-z"$script" ];then# it's an app name
4549
scriptdir="apps/$script"
4650
if [!-d"$scriptdir" ];then
@@ -51,9 +55,9 @@ pushd internal_filesystem/
5155
exit 1
5256
fi
5357
echo"Running app from$scriptdir"
54-
../../lvgl_micropython/build/lvgl_micropy_unix -X heapsize=$HEAPSIZE -v -i -c"$(cat boot_unix.py main.py) ; import mpos.apps; mpos.apps.start_app('$scriptdir')"
58+
"$binary" -X heapsize=$HEAPSIZE -v -i -c"$(cat boot_unix.py main.py) ; import mpos.apps; mpos.apps.start_app('$scriptdir')"
5559
else
56-
../../lvgl_micropython/build/lvgl_micropy_unix -X heapsize=$HEAPSIZE -v -i -c"$(cat boot_unix.py main.py)"
60+
"$binary" -X heapsize=$HEAPSIZE -v -i -c"$(cat boot_unix.py main.py)"
5761
fi
5862

5963

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp