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
local REPO_URL="$1"
local APP_NAME="$2"
local APPIMAGE_OUTPUT="$3"
local CMAKE_ARGS="${4:-}"
REPO_URL="$1"
APP_NAME="$2"
APPIMAGE_OUTPUT="$3"
CMAKE_ARGS="${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:
local CLONE_DIR="$APP_NAME"
local BUILD_DIR="build"
local APPDIR="${APP_NAME}.AppDir"
CLONE_DIR="$APP_NAME"
BUILD_DIR="build"
APPDIR="${APP_NAME}.AppDir"
# Save current directory
local CURRENT_DIR
CURRENT_DIR
CURRENT_DIR="$(pwd)"
echo "--- AppImage Maker initiated ---"