Refactor variable declarations in appimage_maker.sh for consistency

This commit is contained in:
XargonWan 2025-03-31 08:56:46 +09:00
parent 57b0902591
commit e3ac8dcead

View file

@ -10,20 +10,20 @@ set -e
# $5...: (Optional) One or more patch file paths to be applied before building # $5...: (Optional) One or more patch file paths to be applied before building
local REPO_URL="$1" REPO_URL="$1"
local APP_NAME="$2" APP_NAME="$2"
local APPIMAGE_OUTPUT="$3" APPIMAGE_OUTPUT="$3"
local CMAKE_ARGS="${4:-}" CMAKE_ARGS="${4:-}"
shift 4 shift 4
local PATCH_FILES=("$@") # Remaining arguments are patch files PATCH_FILES=("$@") # Remaining arguments are patch files
# Static/temporary names based on the app name: # Static/temporary names based on the app name:
local CLONE_DIR="$APP_NAME" CLONE_DIR="$APP_NAME"
local BUILD_DIR="build" BUILD_DIR="build"
local APPDIR="${APP_NAME}.AppDir" APPDIR="${APP_NAME}.AppDir"
# Save current directory # Save current directory
local CURRENT_DIR CURRENT_DIR
CURRENT_DIR="$(pwd)" CURRENT_DIR="$(pwd)"
echo "--- AppImage Maker initiated ---" echo "--- AppImage Maker initiated ---"