diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 94e1810cfd..bcb9e15ebd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -180,7 +180,7 @@ jobs: - name: Fix AppImage target - Linux if: ${{ runner.os == 'Linux' }} - run: ./script/fix-linux-appimage.sh x86_64 + run: ./script/fix-linux-appimage.sh x86_64 pulsar-next - name: Cache Pulsar Binaries - Linux if: ${{ runner.os == 'Linux' }} diff --git a/script/fix-linux-appimage.sh b/script/fix-linux-appimage.sh index bcf665884b..d7a1ab827b 100755 --- a/script/fix-linux-appimage.sh +++ b/script/fix-linux-appimage.sh @@ -57,6 +57,8 @@ else APPIMAGETOOL_ARCH="arm_aarch64" fi +SCRIPT_NAME="${2:pulsar}" + echo "Architecture is: ${APPIMAGE_ARCH}" cd binaries @@ -85,7 +87,11 @@ rm -f AppRun # Next we'll use `awk` to replace the reference to BIN in `AppRun` so that it # points to `pulsar.sh` rather than the `pulsar` executable. echo "Making new AppRun…" -awk '{sub(/BIN=(.*?)/,"BIN=\"$APPDIR/resources/pulsar.sh\""); print}' AppRun.old > AppRun +if [ $SCRIPT_NAME == "pulsar-next" ]; then + awk '{sub(/BIN=(.*?)/,"BIN=\"$APPDIR/resources/pulsar-next.sh\""); print}' AppRun.old > AppRun +else + awk '{sub(/BIN=(.*?)/,"BIN=\"$APPDIR/resources/pulsar.sh\""); print}' AppRun.old > AppRun +fi chmod a+x AppRun # For sanity's sake, show the new line so we know that this was done properly