Skip to content

Commit 72487c5

Browse files
committed
ci: export BASE env var in installed wrapper so Flutter finds app/bin
1 parent 74966c7 commit 72487c5

2 files changed

Lines changed: 4 additions & 26 deletions

File tree

.github/workflows/linux_deb-release.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff 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"

.github/workflows/release_full.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)