Save current progress of Quality Print Desktop project

This commit is contained in:
2025-09-27 00:23:35 +03:00
parent c5d1449ede
commit 1582e9363f
3 changed files with 44 additions and 4 deletions

View File

@@ -2130,6 +2130,30 @@ def download_desktop_app():
print(f"DEBUG: Error downloading desktop app: {e}")
return jsonify({'error': 'Failed to download desktop app'}), 500
@bp.route('/download/portable-app')
def download_portable_app():
"""Download the Quality Print Desktop Portable Windows version"""
try:
# Path to the portable app file
downloads_path = os.path.join(current_app.root_path, 'static', 'downloads')
filename = 'Quality_Print_Desktop_Portable_v1.0.0_Windows.zip'
# Check if the zip file exists
full_path = os.path.join(downloads_path, filename)
if not os.path.exists(full_path):
return jsonify({
'error': 'Portable app package not found',
'message': 'Quality Print Desktop Portable v1.0.0 Windows is not available',
'suggestion': 'Please contact the administrator'
}), 404
return send_from_directory(downloads_path, filename, as_attachment=True)
except Exception as e:
print(f"DEBUG: Error downloading portable app: {e}")
return jsonify({'error': 'Failed to download portable app'}), 500
@bp.route('/get_order_data/<int:order_id>', methods=['GET'])
def get_order_data(order_id):
"""Get specific order data for preview"""