Update AppImage

This commit is contained in:
MacRimi
2025-09-29 18:37:32 +02:00
parent 3d3c224b3a
commit 54256826fe
2 changed files with 10 additions and 5 deletions

View File

@@ -194,8 +194,10 @@ chmod +x "$APP_DIR/usr/bin/translate_cli.py"
echo "📋 Copying web dashboard..."
if [ -d "$APPIMAGE_ROOT/out" ]; then
mkdir -p "$APP_DIR/web"
cp -r "$APPIMAGE_ROOT/out" "$APP_DIR/web/"
cp -r "$APPIMAGE_ROOT/public" "$APP_DIR/web/"
cp -r "$APPIMAGE_ROOT/out"/* "$APP_DIR/web/"
if [ -d "$APPIMAGE_ROOT/public" ]; then
cp -r "$APPIMAGE_ROOT/public"/* "$APP_DIR/web/" 2>/dev/null || true
fi
cp "$APPIMAGE_ROOT/package.json" "$APP_DIR/web/"
echo "✅ Next.js static export copied successfully"

View File

@@ -24,7 +24,8 @@ def serve_dashboard():
"""Serve the main dashboard page from Next.js build"""
try:
index_paths = [
os.path.join(os.path.dirname(__file__), '..', 'web', 'out', 'index.html'),
os.path.join(os.path.dirname(__file__), '..', 'web', 'index.html'), # Exportación estática
os.path.join(os.path.dirname(__file__), '..', 'web', 'out', 'index.html'), # Fallback
os.path.join(os.path.dirname(__file__), '..', 'web', '.next', 'server', 'app', 'page.html'),
os.path.join(os.path.dirname(__file__), '..', 'web', '.next', 'server', 'pages', 'index.html'),
os.path.join(os.path.dirname(__file__), '..', 'web', 'dist', 'index.html')
@@ -128,7 +129,8 @@ def serve_next_static(filename):
"""Serve Next.js static files"""
try:
static_paths = [
os.path.join(os.path.dirname(__file__), '..', 'web', 'out', '_next'),
os.path.join(os.path.dirname(__file__), '..', 'web', '_next'), # Exportación estática
os.path.join(os.path.dirname(__file__), '..', 'web', 'out', '_next'), # Fallback
os.path.join(os.path.dirname(__file__), '..', 'web', '.next', 'static')
]
@@ -146,7 +148,8 @@ def serve_static_files(filename):
"""Serve static files (icons, etc.)"""
try:
public_paths = [
os.path.join(os.path.dirname(__file__), '..', 'web', 'out'),
os.path.join(os.path.dirname(__file__), '..', 'web'), # Raíz web para exportación estática
os.path.join(os.path.dirname(__file__), '..', 'web', 'out'), # Fallback
os.path.join(os.path.dirname(__file__), '..', 'web', 'public'),
os.path.join(os.path.dirname(__file__), '..', 'public'),
os.path.join(os.path.dirname(__file__), '..', 'web', '.next', 'static')