Skip to content
Snippets Groups Projects
Commit 1da51ba3 authored by calrama's avatar calrama
Browse files

windows1809,centos-7: Prevent Qt installer from phoning home and requiring account login

parent 52b4341b
Branches
No related tags found
No related merge requests found
...@@ -107,6 +107,7 @@ RUN version=5.12.7 && \ ...@@ -107,6 +107,7 @@ RUN version=5.12.7 && \
gstreamer1-plugins-base \ gstreamer1-plugins-base \
&& \ && \
yum clean all && \ yum clean all && \
echo "\n127.0.0.1 iapi.qt.io\n::1 iapi.qt.io" >> /etc/hosts && \
source /etc/profile && \ source /etc/profile && \
cd /tmp && \ cd /tmp && \
curl -sSLO https://download.qt.io/official_releases/qt/${version%.*}/${version}/qt-opensource-linux-x64-${version}.run && \ curl -sSLO https://download.qt.io/official_releases/qt/${version%.*}/${version}/qt-opensource-linux-x64-${version}.run && \
......
...@@ -30,6 +30,7 @@ COPY qtifwsilent.qs C:/qtifwsilent.qs ...@@ -30,6 +30,7 @@ COPY qtifwsilent.qs C:/qtifwsilent.qs
RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \ RUN [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
(New-Object Net.WebClient).DownloadFile('https://download.qt.io/official_releases/qt/5.12/5.12.6/qt-opensource-windows-x86-5.12.6.exe', 'C:/qt.exe'); \ (New-Object Net.WebClient).DownloadFile('https://download.qt.io/official_releases/qt/5.12/5.12.6/qt-opensource-windows-x86-5.12.6.exe', 'C:/qt.exe'); \
$env:QT_INSTALL_DIR = 'C:/Qt'; \ $env:QT_INSTALL_DIR = 'C:/Qt'; \
Add-Content "\"/Windows/System32/drivers/etc/hosts\"" "\"`r`n127.0.0.1 iapi.qt.io`r`n::1 iapi.qt.io\""; \
Start-Process C:/qt.exe -NoNewWindow -Wait -ArgumentList '--verbose --script C:/qtifwsilent.qs'; \ Start-Process C:/qt.exe -NoNewWindow -Wait -ArgumentList '--verbose --script C:/qtifwsilent.qs'; \
Remove-Item -Force C:/qtifwsilent.qs; \ Remove-Item -Force C:/qtifwsilent.qs; \
Remove-Item -Force C:/qt.exe; \ Remove-Item -Force C:/qt.exe; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment