From cfae0cf9ff681fcb91661fa9e6d2e369c44d7d5f Mon Sep 17 00:00:00 2001 From: MrWhiff Date: Sun, 30 Aug 2026 20:08:41 +0200 Subject: [PATCH] AstraOS Ver. 1.54.0 - Serve installer via Flask route to fix Nginx 404 and remove sidebar from installer page --- AstraOS/Frontend/HTML/installer.html | 147 ++++++++++++++------------- AstraOS/astra_os.py | 5 + 2 files changed, 82 insertions(+), 70 deletions(-) diff --git a/AstraOS/Frontend/HTML/installer.html b/AstraOS/Frontend/HTML/installer.html index f1ca841..2e0e309 100644 --- a/AstraOS/Frontend/HTML/installer.html +++ b/AstraOS/Frontend/HTML/installer.html @@ -1,76 +1,83 @@ -{% extends "sidebar.html" %} + + + + + + AstraOS — Desktop App + + + + + + +
+
+

AstraOS Desktop App

+

Lade den offiziellen AstraOS Client für dein Betriebssystem herunter.

+
-{% block title %}AstraOS — Desktop App{% endblock %} +
+ +
+
+ + + +
+
+

Windows (64-bit)

+

Optimiert für Windows 10 & 11. Bietet natives Fenstermanagement, reibungslose Performance und nahtlose Integration.

+ + + Jetzt herunterladen + +

Version 1.54

+
+
-{% block head %} - - -{% endblock %} - -{% block content %} -
-
-

Desktop App

-

Lade den offiziellen AstraOS Client für dein Betriebssystem herunter.

-
-
- -
- -
-
- - - + +
+

+ + macOS & Linux Clients befinden sich derzeit in Entwicklung. +

+
-
-

Windows (64-bit)

-

Optimiert für Windows 10 & 11. Bietet natives Fenstermanagement, reibungslose Performance und nahtlose Integration.

- - - Jetzt herunterladen - -

Version 1.54

+ +
- -
-

- - macOS & Linux Clients befinden sich derzeit in Entwicklung. -

-
-
- - -{% endblock %} + + + diff --git a/AstraOS/astra_os.py b/AstraOS/astra_os.py index a78ea23..c920ded 100644 --- a/AstraOS/astra_os.py +++ b/AstraOS/astra_os.py @@ -683,6 +683,11 @@ def home(): def installer(): user = accounts_collection.find_one({"_id": ObjectId(session['user_id'])}) if 'user_id' in session else None return render_template('installer.html', user=user, active_page='installer') + +@app.route('/download-installer') +def download_installer(): + file_path = os.path.join(app.root_path, 'Frontend', 'downloads', 'AstraOS_Setup_1.54.exe') + return send_file(file_path, as_attachment=True) @app.route('/login', methods=['GET', 'POST']) def login(): if 'user_id' in session: