Skip to content

Commit

Permalink
remove drone compatibility from the appimage build script
Browse files Browse the repository at this point in the history
Signed-off-by: Jyrki Gadinger <[email protected]>
  • Loading branch information
nilsding committed Jan 24, 2025
1 parent 90730bc commit e178bd5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions admin/linux/build-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export OPENSSL_ROOT_DIR=${OPENSSL_ROOT_DIR:-/usr/lib/x86_64-linux-gnu}
export VERSION_SUFFIX=${VERSION_SUFFIX:stable}

# Set defaults
export SUFFIX=${PR_ID:=${DRONE_PULL_REQUEST:=master}}
export SUFFIX=${PR_ID:=master}
if [ $SUFFIX != "master" ]; then
SUFFIX="PR-$SUFFIX"
fi
Expand Down Expand Up @@ -111,10 +111,9 @@ rm ./squashfs-root/usr/lib/libglib-2.0.so.0
LD_LIBRARY_PATH="$PWD/appimagetool-squashfs-root/usr/lib":$LD_LIBRARY_PATH PATH="$PWD/appimagetool-squashfs-root/usr/bin":$PATH appimagetool -n ./squashfs-root "${APPIMAGE}"

#move AppImage
export COMMIT=${GITHUB_SHA:=${DRONE_COMMIT}}
if [ ! -z "$COMMIT" ]
if [ ! -z "$GITHUB_SHA" ]
then
export APPIMAGE_NAME="${EXECUTABLE_NAME}-${SUFFIX}-${COMMIT}-x86_64.AppImage"
export APPIMAGE_NAME="${EXECUTABLE_NAME}-${SUFFIX}-${GITHUB_SHA}-x86_64.AppImage"
else
export APPIMAGE_NAME="${EXECUTABLE_NAME}-${SUFFIX}-x86_64.AppImage"
fi
Expand Down

0 comments on commit e178bd5

Please sign in to comment.