mirror of
https://github.com/neovim/neovim.git
synced 2026-01-04 18:37:02 +10:00
build(lint): add more shell scripts to lintsh
This commit is contained in:
@@ -8,7 +8,8 @@
|
||||
|
||||
# App arch, used by generate_appimage.
|
||||
if [ -z "$ARCH" ]; then
|
||||
export ARCH="$(arch)"
|
||||
ARCH="$(arch)"
|
||||
export ARCH
|
||||
fi
|
||||
|
||||
TAG=$1
|
||||
@@ -34,8 +35,9 @@ make install
|
||||
|
||||
# App version, used by generate_appimage.
|
||||
VERSION=$("$ROOT_DIR"/build/bin/nvim --version | head -n 1 | grep -o 'v.*')
|
||||
export VERSION
|
||||
|
||||
cd "$APP_BUILD_DIR"
|
||||
cd "$APP_BUILD_DIR" || exit
|
||||
|
||||
# Only downloads linuxdeploy if the remote file is different from local
|
||||
if [ -e "$APP_BUILD_DIR"/linuxdeploy-x86_64.AppImage ]; then
|
||||
@@ -53,7 +55,7 @@ chmod +x "$APP_BUILD_DIR"/linuxdeploy-x86_64.AppImage
|
||||
mkdir "$APP_DIR/usr/share/metainfo/"
|
||||
cp "$ROOT_DIR/runtime/nvim.appdata.xml" "$APP_DIR/usr/share/metainfo/"
|
||||
|
||||
cd "$APP_DIR"
|
||||
cd "$APP_DIR" || exit
|
||||
|
||||
########################################################################
|
||||
# AppDir complete. Now package it as an AppImage.
|
||||
@@ -71,7 +73,7 @@ exec "$(dirname "$(readlink -f "${0}")")/usr/bin/nvim" ${@+"$@"}
|
||||
EOF
|
||||
chmod 755 AppRun
|
||||
|
||||
cd "$APP_BUILD_DIR" # Get out of AppImage directory.
|
||||
cd "$APP_BUILD_DIR" || exit # Get out of AppImage directory.
|
||||
|
||||
# Set the name of the file generated by appimage
|
||||
export OUTPUT=nvim.appimage
|
||||
@@ -85,7 +87,7 @@ fi
|
||||
# - Expects: $ARCH, $APP, $VERSION env vars
|
||||
# - Expects: ./$APP.AppDir/ directory
|
||||
# - Produces: ./nvim.appimage
|
||||
./linuxdeploy-x86_64.AppImage --appdir $APP.AppDir -d $ROOT_DIR/runtime/nvim.desktop -i \
|
||||
./linuxdeploy-x86_64.AppImage --appdir $APP.AppDir -d "$ROOT_DIR"/runtime/nvim.desktop -i \
|
||||
"$ROOT_DIR/runtime/nvim.png" --output appimage
|
||||
|
||||
# Moving the final executable to a different folder so it isn't in the
|
||||
|
||||
Reference in New Issue
Block a user