File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
build/sbc_packager/assets Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,17 @@ jobs:
110110 env :
111111 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
112112
113+ - name : Validate Linux launcher wrapper
114+ if : matrix.platform == 'linux'
115+ run : |
116+ launcher_path=build/dist/linux-unpacked/SpringBoard
117+ test -f "$launcher_path"
118+ sh -n "$launcher_path"
119+ if grep -q '\\\\"' "$launcher_path"; then
120+ echo "Invalid escaped quotes found in launcher wrapper: $launcher_path"
121+ exit 1
122+ fi
123+
113124 - name : Upload build artifacts
114125 uses : actions/upload-artifact@v6
115126 with :
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ module.exports = async function sbcAfterPack(context) {
2121
2222 const wrapper = `#!/bin/sh
2323set -eu
24- APPDIR="$(CDPATH= cd -- \\ "$(dirname -- \\ "$0\\")\\ " && pwd)"
24+ APPDIR="$(CDPATH= cd -- "$(dirname -- "$0") " && pwd)"
2525exec "$APPDIR/${ executableName } -bin" --no-sandbox --disable-setuid-sandbox "$@"
2626` ;
2727
You can’t perform that action at this time.
0 commit comments