fixed windows release build

This commit is contained in:
Agel committed 2026-03-18 15:45:01 +01:00
1 parent 5598224141
commit 29af1aa15e
7 files changed
+126 -39

No files matched your search

+5 -30
View File
@@ -21,32 +21,8 @@ cp "$BUILD_DIR/asteria-qt.exe" "$DIST_DIR/"
# windeployqt6 from the cross-compiled Qt may not work on Linux host,
# so we manually copy the required DLLs
# Qt DLLs
QT_DLLS=(
Qt6Core.dll
Qt6DBus.dll
Qt6Gui.dll
Qt6Qml.dll
Qt6Quick.dll
Qt6Widgets.dll
Qt6Concurrent.dll
Qt6Svg.dll
Qt6QuickControls2.dll
Qt6QuickControls2Impl.dll
Qt6QuickTemplates2.dll
Qt6QuickLayouts.dll
Qt6QmlModels.dll
Qt6QmlWorkerScript.dll
Qt6Network.dll
Qt6OpenGL.dll
Qt6QmlMeta.dll
)
for dll in "${QT_DLLS[@]}"; do
if [ -f "$QT_DIR/bin/$dll" ]; then
cp "$QT_DIR/bin/$dll" "$DIST_DIR/"
fi
done
# Qt DLLs — copy all Qt6*.dll to avoid missing transitive dependencies
cp "$QT_DIR/bin/"Qt6*.dll "$DIST_DIR/" 2>/dev/null || true
# Qt plugins
mkdir -p "$DIST_DIR/platforms"
@@ -97,7 +73,6 @@ Plugins = .
Qml2Imports = qml
EOF
# Create zip archive
mkdir -p "$OUTPUT_DIR"
cp -r "$DIST_DIR" "$OUTPUT_DIR/asteria-qt-windows"
cd "$OUTPUT_DIR" && zip -r "asteria-qt-windows.zip" asteria-qt-windows/ && rm -rf asteria-qt-windows/
# Output flat directory — GitLab zips the artifact directory on download
mkdir -p "$OUTPUT_DIR/asteria-qt-windows"
cp -r "$DIST_DIR/"* "$OUTPUT_DIR/asteria-qt-windows/"