mirror of
https://github.com/RetroDECK/AppImages.git
synced 2025-04-11 02:55:09 +00:00
Enhance appimage_maker.sh with detailed logging and repository cloning feedback
This commit is contained in:
parent
d6e7bffb7c
commit
d8434d3cf6
|
|
@ -26,8 +26,17 @@ build_appimage() {
|
||||||
local CURRENT_DIR
|
local CURRENT_DIR
|
||||||
CURRENT_DIR="$(pwd)"
|
CURRENT_DIR="$(pwd)"
|
||||||
|
|
||||||
|
echo "Building AppImage for $APP_NAME"
|
||||||
|
echo "Repository: $REPO_URL"
|
||||||
|
echo "AppImage output: $APPIMAGE_OUTPUT"
|
||||||
|
echo "CMake arguments: $CMAKE_ARGS"
|
||||||
|
if [ ${#PATCH_FILES[@]} -gt 0 ]; then
|
||||||
|
echo "Patch files: ${PATCH_FILES[*]}"
|
||||||
|
fi
|
||||||
|
|
||||||
# Clone the repository if not already cloned
|
# Clone the repository if not already cloned
|
||||||
if [ ! -d "$CLONE_DIR" ]; then
|
if [ ! -d "$CLONE_DIR" ]; then
|
||||||
|
echo "Cloning repository: $REPO_URL in $CLONE_DIR"
|
||||||
git clone "$REPO_URL" "$CLONE_DIR"
|
git clone "$REPO_URL" "$CLONE_DIR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
@ -51,6 +60,7 @@ build_appimage() {
|
||||||
# Create build directory and build the project
|
# Create build directory and build the project
|
||||||
mkdir -p "$BUILD_DIR"
|
mkdir -p "$BUILD_DIR"
|
||||||
pushd "$BUILD_DIR" > /dev/null
|
pushd "$BUILD_DIR" > /dev/null
|
||||||
|
echo "Building $APP_NAME in $BUILD_DIR"
|
||||||
cmake .. -DCMAKE_BUILD_TYPE=Release $CMAKE_ARGS
|
cmake .. -DCMAKE_BUILD_TYPE=Release $CMAKE_ARGS
|
||||||
make -j"$(nproc)"
|
make -j"$(nproc)"
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
@ -75,6 +85,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create the AppImage using appimagetool
|
# Create the AppImage using appimagetool
|
||||||
|
echo "Creating AppImage..."
|
||||||
../appimagetool "$APPDIR" "$APPIMAGE_OUTPUT"
|
../appimagetool "$APPDIR" "$APPIMAGE_OUTPUT"
|
||||||
|
|
||||||
echo "AppImage created: $APPIMAGE_OUTPUT"
|
echo "AppImage created: $APPIMAGE_OUTPUT"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue