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
|
||||
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
|
||||
if [ ! -d "$CLONE_DIR" ]; then
|
||||
echo "Cloning repository: $REPO_URL in $CLONE_DIR"
|
||||
git clone "$REPO_URL" "$CLONE_DIR"
|
||||
fi
|
||||
|
||||
|
|
@ -51,6 +60,7 @@ build_appimage() {
|
|||
# Create build directory and build the project
|
||||
mkdir -p "$BUILD_DIR"
|
||||
pushd "$BUILD_DIR" > /dev/null
|
||||
echo "Building $APP_NAME in $BUILD_DIR"
|
||||
cmake .. -DCMAKE_BUILD_TYPE=Release $CMAKE_ARGS
|
||||
make -j"$(nproc)"
|
||||
popd > /dev/null
|
||||
|
|
@ -66,15 +76,16 @@ build_appimage() {
|
|||
cp "${APP_NAME}.png" "$APPDIR/"
|
||||
|
||||
# Download appimagetool if not already present (placed one level above the clone directory)
|
||||
if [ ! -f "../appimagetool" ]; then
|
||||
echo "Downloading appimagetool..."
|
||||
wget -O ../appimagetool https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
|
||||
chmod +x ../appimagetool
|
||||
else
|
||||
echo "appimagetool already exists. Skipping download."
|
||||
fi
|
||||
if [ ! -f "../appimagetool" ]; then
|
||||
echo "Downloading appimagetool..."
|
||||
wget -O ../appimagetool https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
|
||||
chmod +x ../appimagetool
|
||||
else
|
||||
echo "appimagetool already exists. Skipping download."
|
||||
fi
|
||||
|
||||
# Create the AppImage using appimagetool
|
||||
echo "Creating AppImage..."
|
||||
../appimagetool "$APPDIR" "$APPIMAGE_OUTPUT"
|
||||
|
||||
echo "AppImage created: $APPIMAGE_OUTPUT"
|
||||
|
|
|
|||
Loading…
Reference in a new issue