mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 18:43:02 +01:00
Task #7796 - Update official Windows compiler to VS 17.7.4.
This commit is contained in:
parent
ec4f175e30
commit
c2328fe14c
@ -4,25 +4,27 @@ FROM mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2022
|
||||
|
||||
SHELL ["cmd", "/S", "/C"]
|
||||
|
||||
# set visualstudio2019buildtools --version and --installChannelUri.
|
||||
# set visualstudio2022buildtools --version and --installChannelUri.
|
||||
#
|
||||
# Open https://docs.microsoft.com/en-us/visualstudio/releases/2019/history#installing-an-earlier-release
|
||||
# Open https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-history
|
||||
# Download BuildTools for a specific version.
|
||||
# Open (extract) the downloaded file.
|
||||
# Open file vs_setup_bootstrapper.json and extract the installChannelUri value.
|
||||
# Open file vs_setup_bootstrapper.json and extract the installChannelUri value and update in --installChannelUri.
|
||||
#
|
||||
# 16.11.6.0 - https://aka.ms/vs/16/release/201528995_-1285443981/channel
|
||||
# 16.11.7.0 - https://aka.ms/vs/16/release/152566872_220409660/channel
|
||||
# 16.11.16 - https://aka.ms/vs/16/release/377566269_-1382739058/channel
|
||||
# 17.7.4 - https://aka.ms/vs/17/release/134599118_118780349/channel
|
||||
#
|
||||
# Replace URL below to the link to vs_BuildTools.exe
|
||||
|
||||
ADD https://download.visualstudio.microsoft.com/download/pr/e514a25b-a89d-4051-a63c-05ccd9be41e9/6ca2980598be2c888c3bb3b288c688a04b3fc1f1acb62d7c3cdaada47b36c3ea/vs_BuildTools.exe C:/temp/vs_BuildTools.exe
|
||||
|
||||
RUN `
|
||||
set chocolateyUseWindowsCompression='false' && `
|
||||
powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && `
|
||||
set "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin" && `
|
||||
`
|
||||
choco install --no-progress --yes visualstudio2019buildtools --version=16.11.16 --package-parameters " `
|
||||
--installChannelUri https://aka.ms/vs/16/release/377566269_-1382739058/channel `
|
||||
--quiet --wait --norestart --nocache `
|
||||
(start /w C:\temp\vs_BuildTools.exe `
|
||||
--installChannelUri https://aka.ms/vs/17/release/134599118_118780349/channel `
|
||||
--quiet --wait --norestart --nocache --noUpdateInstaller `
|
||||
--locale en-US `
|
||||
--add Microsoft.Component.MSBuild `
|
||||
--add Microsoft.VisualStudio.Component.VC.ATLMFC `
|
||||
@ -37,7 +39,7 @@ RUN `
|
||||
--remove Microsoft.VisualStudio.Component.Windows10SDK.10586 `
|
||||
--remove Microsoft.VisualStudio.Component.Windows10SDK.14393 `
|
||||
--remove Microsoft.VisualStudio.Component.Windows81SDK `
|
||||
" && `
|
||||
|| if "%ERRORLEVEL%"=="3010" exit 0) && `
|
||||
choco install --no-progress --yes git --version=2.33.1 && `
|
||||
choco install --no-progress --yes 7zip.install --version=19.0 && `
|
||||
choco install --no-progress --yes innosetup --version=6.1.2 && `
|
||||
|
@ -1,6 +1,6 @@
|
||||
@echo off
|
||||
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\VsDevCmd.bat" -arch=amd64
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\VsDevCmd.bat" -arch=amd64
|
||||
|
||||
set FB_PROCESSOR_ARCHITECTURE=AMD64
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
@echo off
|
||||
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\Common7\Tools\VsDevCmd.bat" -arch=x86
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\Common7\Tools\VsDevCmd.bat" -arch=x86
|
||||
|
||||
set FB_PROCESSOR_ARCHITECTURE=x86
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user