mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-10-02 08:06:17 +00:00
Update AppImage
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
"build": "next build",
|
"build": "next build",
|
||||||
"start": "next start",
|
"start": "next start",
|
||||||
"lint": "next lint",
|
"lint": "next lint",
|
||||||
"export": "next build"
|
"export": "next export"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@hookform/resolvers": "^3.10.0",
|
"@hookform/resolvers": "^3.10.0",
|
||||||
|
@@ -51,14 +51,27 @@ fi
|
|||||||
echo "🏗️ Building Next.js static export..."
|
echo "🏗️ Building Next.js static export..."
|
||||||
npm run export
|
npm run export
|
||||||
|
|
||||||
# Verify export was successful
|
echo "🔍 Checking export results..."
|
||||||
if [ ! -d "out" ]; then
|
if [ -d "out" ]; then
|
||||||
|
echo "✅ Export directory found"
|
||||||
|
echo "📁 Contents of out directory:"
|
||||||
|
ls -la out/
|
||||||
|
if [ -f "out/index.html" ]; then
|
||||||
|
echo "✅ index.html found in out directory"
|
||||||
|
else
|
||||||
|
echo "❌ index.html NOT found in out directory"
|
||||||
|
echo "📁 Looking for HTML files:"
|
||||||
|
find out/ -name "*.html" -type f || echo "No HTML files found"
|
||||||
|
fi
|
||||||
|
else
|
||||||
echo "❌ Error: Next.js export failed - out directory not found"
|
echo "❌ Error: Next.js export failed - out directory not found"
|
||||||
|
echo "📁 Current directory contents:"
|
||||||
|
ls -la
|
||||||
|
echo "📁 Looking for any build outputs:"
|
||||||
|
find . -name "*.html" -type f 2>/dev/null || echo "No HTML files found anywhere"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "✅ Next.js static export completed successfully"
|
|
||||||
|
|
||||||
# Return to script directory
|
# Return to script directory
|
||||||
cd "$SCRIPT_DIR"
|
cd "$SCRIPT_DIR"
|
||||||
|
|
||||||
@@ -194,7 +207,17 @@ chmod +x "$APP_DIR/usr/bin/translate_cli.py"
|
|||||||
echo "📋 Copying web dashboard..."
|
echo "📋 Copying web dashboard..."
|
||||||
if [ -d "$APPIMAGE_ROOT/out" ]; then
|
if [ -d "$APPIMAGE_ROOT/out" ]; then
|
||||||
mkdir -p "$APP_DIR/web"
|
mkdir -p "$APP_DIR/web"
|
||||||
|
echo "📁 Copying from $APPIMAGE_ROOT/out to $APP_DIR/web"
|
||||||
cp -r "$APPIMAGE_ROOT/out"/* "$APP_DIR/web/"
|
cp -r "$APPIMAGE_ROOT/out"/* "$APP_DIR/web/"
|
||||||
|
|
||||||
|
if [ -f "$APP_DIR/web/index.html" ]; then
|
||||||
|
echo "✅ index.html copied successfully to $APP_DIR/web/"
|
||||||
|
else
|
||||||
|
echo "❌ index.html NOT found after copying"
|
||||||
|
echo "📁 Contents of $APP_DIR/web:"
|
||||||
|
ls -la "$APP_DIR/web/" || echo "Directory is empty or doesn't exist"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -d "$APPIMAGE_ROOT/public" ]; then
|
if [ -d "$APPIMAGE_ROOT/public" ]; then
|
||||||
cp -r "$APPIMAGE_ROOT/public"/* "$APP_DIR/web/" 2>/dev/null || true
|
cp -r "$APPIMAGE_ROOT/public"/* "$APP_DIR/web/" 2>/dev/null || true
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user