mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-10-02 16:16:19 +00:00
Update AppImage
This commit is contained in:
@@ -194,8 +194,10 @@ 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"
|
||||||
cp -r "$APPIMAGE_ROOT/out" "$APP_DIR/web/"
|
cp -r "$APPIMAGE_ROOT/out"/* "$APP_DIR/web/"
|
||||||
cp -r "$APPIMAGE_ROOT/public" "$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/"
|
cp "$APPIMAGE_ROOT/package.json" "$APP_DIR/web/"
|
||||||
|
|
||||||
echo "✅ Next.js static export copied successfully"
|
echo "✅ Next.js static export copied successfully"
|
||||||
|
@@ -24,7 +24,8 @@ def serve_dashboard():
|
|||||||
"""Serve the main dashboard page from Next.js build"""
|
"""Serve the main dashboard page from Next.js build"""
|
||||||
try:
|
try:
|
||||||
index_paths = [
|
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', 'app', 'page.html'),
|
||||||
os.path.join(os.path.dirname(__file__), '..', 'web', '.next', 'server', 'pages', 'index.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')
|
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"""
|
"""Serve Next.js static files"""
|
||||||
try:
|
try:
|
||||||
static_paths = [
|
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')
|
os.path.join(os.path.dirname(__file__), '..', 'web', '.next', 'static')
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -146,7 +148,8 @@ def serve_static_files(filename):
|
|||||||
"""Serve static files (icons, etc.)"""
|
"""Serve static files (icons, etc.)"""
|
||||||
try:
|
try:
|
||||||
public_paths = [
|
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__), '..', 'web', 'public'),
|
||||||
os.path.join(os.path.dirname(__file__), '..', 'public'),
|
os.path.join(os.path.dirname(__file__), '..', 'public'),
|
||||||
os.path.join(os.path.dirname(__file__), '..', 'web', '.next', 'static')
|
os.path.join(os.path.dirname(__file__), '..', 'web', '.next', 'static')
|
||||||
|
Reference in New Issue
Block a user