File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -80,22 +80,11 @@ jobs:
8080 'else' \
8181 ' DIR="$BASE"' \
8282 'fi' \
83- "# Prefer the fetched core in app/bin if present (avoid launcher script)" \
84- 'if [ -x "$DIR/app/bin/picoclaw" ]; then' \
85- ' EXEC="$DIR/app/bin/picoclaw"' \
86- 'elif [ -x "$DIR/app/bin/picoclaw-launcher" ]; then' \
87- ' EXEC="$DIR/app/bin/picoclaw-launcher"' \
88- 'else' \
89- ' EXEC=$(find "$DIR" -maxdepth 1 -type f -executable -print -quit)' \
90- 'fi' \
91- 'if [ -z "$EXEC" ]; then' \
92- ' echo "Executable not found in $DIR" >&2' \
93- ' exit 1' \
94- 'fi' \
9583 '# Ensure plugin/shared libs in the bundle are discoverable' \
9684 'cd "$DIR" || true' \
85+ 'export BASE="$DIR"' \
9786 'export LD_LIBRARY_PATH="$DIR/lib:$DIR/plugins:$LD_LIBRARY_PATH"' \
98- 'exec "$EXEC " "$@"' > "$PKGROOT/usr/bin/${PKG_NAME}"
87+ 'exec "$DIR/picoclaw_flutter_ui " "$@"' > "$PKGROOT/usr/bin/${PKG_NAME}"
9988 chmod 0755 "$PKGROOT/usr/bin/${PKG_NAME}"
10089 mkdir -p "$PKGROOT/DEBIAN"
10190 mkdir -p "$PKGROOT/usr/share/icons/hicolor/128x128/apps"
Original file line number Diff line number Diff line change @@ -337,22 +337,11 @@ jobs:
337337 'else' \
338338 ' DIR="$BASE"' \
339339 'fi' \
340- "# Prefer the fetched core in app/bin if present (avoid launcher script)" \
341- 'if [ -x "$DIR/app/bin/picoclaw" ]; then' \
342- ' EXEC="$DIR/app/bin/picoclaw"' \
343- 'elif [ -x "$DIR/app/bin/picoclaw-launcher" ]; then' \
344- ' EXEC="$DIR/app/bin/picoclaw-launcher"' \
345- 'else' \
346- ' EXEC=$(find "$DIR" -maxdepth 1 -type f -executable -print -quit)' \
347- 'fi' \
348- 'if [ -z "$EXEC" ]; then' \
349- ' echo "Executable not found in $DIR" >&2' \
350- ' exit 1' \
351- 'fi' \
352340 '# Ensure plugin/shared libs in the bundle are discoverable' \
353341 'cd "$DIR" || true' \
342+ 'export BASE="$DIR"' \
354343 'export LD_LIBRARY_PATH="$DIR/lib:$DIR/plugins:$LD_LIBRARY_PATH"' \
355- 'exec "$EXEC " "$@"' > "$PKGROOT/usr/bin/${PKG_NAME}"
344+ 'exec "$DIR/picoclaw_flutter_ui " "$@"' > "$PKGROOT/usr/bin/${PKG_NAME}"
356345 chmod 0755 "$PKGROOT/usr/bin/${PKG_NAME}"
357346 mkdir -p "$PKGROOT/DEBIAN"
358347 # Install icon and desktop entry
You can’t perform that action at this time.
0 commit comments