Skip to content

Commit bce5c86

Browse files
committed
Windows: Add new image for Qt 6.9
1 parent d46efde commit bce5c86

File tree

6 files changed

+208
-1
lines changed

6 files changed

+208
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: Windows Server Core LTSC2025
1212
runs-on: windows-2025
1313
env:
14-
TAG: "windowsservercore-ltsc2025-qt6.6-64bit"
14+
TAG: "windowsservercore-ltsc2025-qt6.9-64bit"
1515
permissions:
1616
contents: read
1717
packages: write

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ and OpenCascade OCCT 7.7.2. This image was intended for deployment of official
5555
### `windowsservercore-ltsc2025-qt6.6-64bit`
5656

5757
Based on Windows Server Core LTSC2025 with Qt6.6.x, MinGW 11.2.0 64-bit
58+
and OpenCascade OCCT 7.9.1. This image was intended for deployment of official
59+
64-bit binary releases of LibrePCB for Windows.
60+
61+
### `windowsservercore-ltsc2025-qt6.9-64bit`
62+
63+
Based on Windows Server Core LTSC2025 with Qt6.9.x, MinGW 13.1.0 64-bit
5864
and OpenCascade OCCT 7.9.1. This image is intended for deployment of official
5965
64-bit binary releases of LibrePCB for Windows.
6066

Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
1+
# Image tag: ltsc2025
2+
# Referenced by digest to avoid broken caching on CI.
3+
FROM mcr.microsoft.com/windows/servercore@sha256:4c8150b6fe78cac412f24690d250c97c29a8cf2b0f241be7e9330e7d93292305
4+
5+
# Add OpenGL DLLs from a Windows desktop to allow running unit tests within the container
6+
ADD *.dll C:/Windows/System32/
7+
8+
# Add Arial font since Slint requires it, see
9+
# https://github.com/slint-ui/slint/issues/2556#issuecomment-2995413102
10+
ADD arial.ttf C:/Windows/Fonts/
11+
12+
# Install Microsoft Visual C++ Redistributable for Visual Studio 2015-2022
13+
ARG VCREDIST_URL="https://download.visualstudio.microsoft.com/download/pr/6ba404bb-6312-403e-83be-04b062914c98/1AD7988C17663CC742B01BEF1A6DF2ED1741173009579AD50A94434E54F56073/VC_redist.x64.exe"
14+
RUN curl -o "C:/tmp.exe" -L "%VCREDIST_URL%" \
15+
&& C:/tmp.exe /quiet /norestart \
16+
&& del C:\tmp.exe
17+
18+
# Install 7-Zip
19+
# Attention: I observed issues with version 2409, thus better keep the old version
20+
ARG 7ZIP_URL="https://7-zip.org/a/7z2301-x64.exe"
21+
RUN curl -o "C:/tmp.exe" -L "%7ZIP_URL%" \
22+
&& C:/tmp.exe /S /D="C:/7zip" \
23+
&& setx PATH "%PATH%;C:\7zip" \
24+
&& del C:\tmp.exe
25+
26+
# Install Git
27+
# Attention: Version 2.50 breaks our CI in a strange way!
28+
ARG GIT_VERSION="2.44.0"
29+
ARG GIT_URL="https://github.com/git-for-windows/git/releases/download/v$GIT_VERSION.windows.1/Git-$GIT_VERSION-64-bit.exe"
30+
RUN curl -o "C:/tmp.exe" -L "%GIT_URL%" \
31+
&& C:/tmp.exe /VERYSILENT /NORESTART /NOCANCEL /SP- /CLOSEAPPLICATIONS /RESTARTAPPLICATIONS \
32+
/COMPONENTS="gitlfs" /o:PathOption="CmdTools" /o:CRLFOption="LFOnly" /DIR:"C:/git" \
33+
&& del C:\tmp.exe
34+
35+
# Install UV
36+
ARG UV_URL="https://github.com/astral-sh/uv/releases/download/0.7.13/uv-x86_64-pc-windows-msvc.zip"
37+
RUN curl -o "C:/tmp.zip" -L "%UV_URL%" \
38+
&& 7z x C:/tmp.zip -oC:/uv -bsp1 \
39+
&& setx PYTHONIOENCODING "UTF-8" \
40+
&& setx PATH "%PATH%;C:\uv" \
41+
&& del C:\tmp.zip
42+
43+
# Install CMake
44+
ARG CMAKE_VERSION="4.0.3"
45+
ARG CMAKE_URL="https://github.com/Kitware/CMake/releases/download/v$CMAKE_VERSION/cmake-$CMAKE_VERSION-windows-x86_64.zip"
46+
RUN curl -o "C:/tmp.zip" -L "%CMAKE_URL%" \
47+
&& 7z x C:/tmp.zip -oC:/ -bsp1 \
48+
&& rename cmake-%CMAKE_VERSION%-windows-x86_64 cmake \
49+
&& setx PATH "%PATH%;C:\cmake\bin" \
50+
&& del C:\tmp.zip
51+
52+
# Install Ninja
53+
ARG NINJA_URL="https://github.com/ninja-build/ninja/releases/download/v1.12.1/ninja-win.zip"
54+
RUN curl -o "C:/tmp.zip" -L "%NINJA_URL%" \
55+
&& 7z x C:/tmp.zip -oC:/ninja -bsp1 \
56+
&& setx PATH "%PATH%;C:\ninja" \
57+
&& del C:\tmp.zip
58+
59+
# Install CCache
60+
ARG CCACHE_VERSION="4.11.3"
61+
ARG CCACHE_URL="https://github.com/ccache/ccache/releases/download/v$CCACHE_VERSION/ccache-$CCACHE_VERSION-windows-x86_64.zip"
62+
RUN curl -o "C:/tmp.zip" -L "%CCACHE_URL%" \
63+
&& 7z x C:/tmp.zip -oC:/ -bsp1 \
64+
&& rename ccache-%CCACHE_VERSION%-windows-x86_64 ccache \
65+
&& setx PATH "%PATH%;C:\ccache" \
66+
&& del C:\tmp.zip
67+
68+
# Install MinGW
69+
ARG MINGW_URL="https://download.qt.io/online/qtsdkrepository/windows_x86/desktop/tools_mingw1310/qt.tools.win64_mingw1310/13.1.0-202407240918mingw1310.7z"
70+
RUN curl -o "C:/tmp.7z" -L "%MINGW_URL%" \
71+
&& 7z x C:/tmp.7z -oC:/Qt -bsp1 \
72+
&& setx PATH "%PATH%;C:\Qt\Tools\mingw1310_64\bin" \
73+
&& del C:\tmp.7z
74+
75+
# Install Rust
76+
ARG RUST_VERSION="1.87.0"
77+
ENV RUSTUP_HOME="C:\rustup" \
78+
CARGO_HOME="C:\cargo"
79+
RUN curl -o "C:/rustup-init.exe" -L "https://win.rustup.rs/x86_64" \
80+
&& C:/rustup-init.exe -y -v \
81+
--profile minimal \
82+
--default-host x86_64-pc-windows-gnu \
83+
--default-toolchain none \
84+
&& C:\cargo\bin\rustup install %RUST_VERSION% \
85+
&& del C:\rustup-init.exe
86+
87+
# Install ZLib
88+
ARG ZLIB_VERSION="1.3.1"
89+
ARG ZLIB_URL="https://github.com/madler/zlib/releases/download/v$ZLIB_VERSION/zlib131.zip"
90+
RUN curl -o "C:/tmp.zip" -L "%ZLIB_URL%" \
91+
&& 7z x C:/tmp.zip -oC:/ -bsp1 \
92+
&& cd C:/zlib-%ZLIB_VERSION% \
93+
&& cmake . -G "Ninja" -DCMAKE_INSTALL_PREFIX=C:/zlib \
94+
&& ninja \
95+
&& ninja install \
96+
&& setx ZLIB_ROOT "C:/zlib" \
97+
&& setx PATH "%PATH%;C:\zlib\bin" \
98+
&& cd .. \
99+
&& rmdir C:\zlib-%ZLIB_VERSION% /s /q \
100+
&& del C:\tmp.zip
101+
102+
# Install OpenCascade
103+
ARG OCC_VERSION="7_9_1"
104+
ARG OCC_URL="https://github.com/Open-Cascade-SAS/OCCT/archive/refs/tags/V$OCC_VERSION.zip"
105+
RUN curl -o "C:/tmp.zip" -L "%OCC_URL%" \
106+
&& 7z x C:/tmp.zip -oC:/ -bsp1 \
107+
&& cd C:\OCCT-%OCC_VERSION% \
108+
&& cmake . -G "Ninja" \
109+
-DCMAKE_BUILD_TYPE=Release \
110+
-DINSTALL_DIR=C:/OpenCascade \
111+
-DBUILD_LIBRARY_TYPE=Shared \
112+
-DBUILD_DOC_Overview=0 \
113+
-DBUILD_MODULE_ApplicationFramework=0 \
114+
-DBUILD_MODULE_DataExchange=1 \
115+
-DBUILD_MODULE_Draw=0 \
116+
-DBUILD_MODULE_FoundationClasses=0 \
117+
-DBUILD_MODULE_ModelingAlgorithms=0 \
118+
-DBUILD_MODULE_ModelingData=0 \
119+
-DBUILD_MODULE_Visualization=0 \
120+
-DUSE_DRACO=0 \
121+
-DUSE_FREEIMAGE=0 \
122+
-DUSE_FREETYPE=0 \
123+
-DUSE_GLES2=0 \
124+
-DUSE_OPENGL=0 \
125+
-DUSE_OPENVR=0 \
126+
-DUSE_RAPIDJSON=0 \
127+
-DUSE_TBB=0 \
128+
-DUSE_TK=0 \
129+
-DUSE_VTK=0 \
130+
&& cmake --build . \
131+
&& cmake --install . \
132+
&& setx OpenCASCADE_DIR C:/OpenCascade/cmake \
133+
&& setx PATH "%PATH%;C:\OpenCascade\win64\gcc\bin" \
134+
&& cd .. \
135+
&& rmdir C:\OCCT-%OCC_VERSION% /s /q \
136+
&& del C:\tmp.zip
137+
138+
# Install Qt Runtime DLLs
139+
ARG QT_VERSION="6.9.1"
140+
ARG QT_BASEURL="https://download.qt.io/online/qtsdkrepository/windows_x86/desktop/qt6_691/qt6_691"
141+
ARG QT_URL="${QT_BASEURL}/qt.qt6.691.win64_mingw/6.9.1-0-202505291653"
142+
ARG QT_DLLS_URL="${QT_URL}MinGW-w64-x86_64-13.1.0-release-posix-seh-msvcrt-rt_v11-rev1-runtime.7z"
143+
RUN curl -o "C:/tmp.7z" -L "%QT_DLLS_URL%" \
144+
&& 7z x C:/tmp.7z -oC:/Qt/%QT_VERSION%/mingw_64/bin -bsp1 \
145+
&& del C:\tmp.7z
146+
147+
# Install Qt Tools
148+
ARG QT_TOOLS_URL="${QT_URL}qttools-Windows-Windows_10_22H2-Mingw-Windows-Windows_10_22H2-X86_64.7z"
149+
RUN curl -o "C:/tmp.7z" -L "%QT_TOOLS_URL%" \
150+
&& 7z x C:/tmp.7z -oC:/Qt/%QT_VERSION%/mingw_64 -bsp1 \
151+
&& setx PATH "%PATH%;C:\Qt\%QT_VERSION%\mingw_64\bin" \
152+
&& del C:\tmp.7z
153+
154+
# Install Qt Base
155+
ARG QT_BASE_URL="${QT_URL}qtbase-Windows-Windows_10_22H2-Mingw-Windows-Windows_10_22H2-X86_64.7z"
156+
RUN curl -o "C:/tmp.7z" -L "%QT_BASE_URL%" \
157+
&& 7z x C:/tmp.7z -oC:/Qt/%QT_VERSION%/mingw_64 -bsp1 \
158+
&& del C:\tmp.7z
159+
160+
# Install Qt SVG
161+
ARG QT_SVG_URL="${QT_URL}qtsvg-Windows-Windows_10_22H2-Mingw-Windows-Windows_10_22H2-X86_64.7z"
162+
RUN curl -o "C:/tmp.7z" -L "%QT_SVG_URL%" \
163+
&& 7z x C:/tmp.7z -oC:/Qt/%QT_VERSION%/mingw_64 -bsp1 \
164+
&& del C:\tmp.7z
165+
166+
# Install Qt OpenGL (not sure if needed)
167+
ARG QT_QT5OPENGL_URL="${QT_URL}opengl32sw-64-mesa_11_2_2-signed_sha256.7z"
168+
RUN curl -o "C:/tmp.7z" -L "%QT_QT5OPENGL_URL%" \
169+
&& 7z x C:/tmp.7z -oC:/Qt/%QT_VERSION%/mingw_64/bin -bsp1 \
170+
&& del C:\tmp.7z
171+
172+
# Install Qt Translations
173+
ARG QT_TRANSLATIONS_URL="${QT_URL}qttranslations-Windows-Windows_10_22H2-Mingw-Windows-Windows_10_22H2-X86_64.7z"
174+
RUN curl -o "C:/tmp.7z" -L "%QT_TRANSLATIONS_URL%" \
175+
&& 7z x C:/tmp.7z -oC:/Qt/%QT_VERSION%/mingw_64 -bsp1 \
176+
&& del C:\tmp.7z
177+
178+
# Install Qt Image Formats Plugin
179+
ARG QT_IMAGEFORMATS_URL="${QT_BASEURL}/qt.qt6.691.addons.qtimageformats.win64_mingw/6.9.1-0-202505291653qtimageformats-Windows-Windows_10_22H2-Mingw-Windows-Windows_10_22H2-X86_64.7z"
180+
RUN curl -o "C:/tmp.7z" -L "%QT_IMAGEFORMATS_URL%" \
181+
&& 7z x C:/tmp.7z -oC:/Qt/%QT_VERSION%/mingw_64 -bsp1 \
182+
&& del C:\tmp.7z
183+
184+
# Install Inno Setup
185+
# Note: 6.4.3 emits some warnings when generating the LibrePCB installer,
186+
# should be reviewed when upgrading
187+
ARG INNOSETUP_URL="https://files.jrsoftware.org/is/6/innosetup-6.2.2.exe"
188+
RUN curl -o "C:/tmp.exe" -L "%INNOSETUP_URL%" \
189+
&& C:/tmp.exe /NOICONS /VERYSILENT /DIR=C:\innosetup \
190+
&& setx PATH "%PATH%;C:\innosetup" \
191+
&& del C:\tmp.exe
192+
193+
# Pre-install a Python version
194+
RUN uv python install 3.13
195+
196+
# Install OpenSSL (last one in Dockerfile because it should be updated regularly)
197+
ARG OPENSSL_URL="https://download.qt.io/online/qtsdkrepository/windows_x86/desktop/tools_opensslv3_x64/qt.tools.opensslv3.win_x64/3.0.16-1openssl_3.0.16_prebuild_x64.7z"
198+
RUN curl -o "C:/tmp.7z" -L "%OPENSSL_URL%" \
199+
&& 7z x C:/tmp.7z -oC:/Qt/Tools/OpenSSLv3 -bsp1 \
200+
&& setx OPENSSL_ROOT "C:/Qt/Tools/OpenSSLv3/Win_x64" \
201+
&& del C:\tmp.7z
1020 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)