

RUN winget install -exact -accept-source-agreements -accept-package-agreements Git.Git $json | Set-Content -Encoding ascii -NoNewLine $path ` Reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /V Path /t REG_EXPAND_SZ /f /d "C:\cygwin64\bin %c" RUN for /f "tokens=1,2,*" %a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /V Path ^| findstr /r "^"') do ` RUN C:\cygwin64\bin\bash.exe -login -c "cd /tmp & tar -xf /cygdrive/c/TEMP/ & cp msvs-tools-0.4.1/msvs-detect msvs-tools-0.4.1/msvs-promote-path /bin" RUN C:\cygwin-setup-x86_64.exe -quiet-mode -no-shortcuts -no-startmenu -no-desktop -only-site -local-package-dir C:\TEMP\cache -root C:\cygwin64 -site -symlink-type=wsl -packages curl,diffutils,git,m4,make,mingw64-x86_64-gcc-core,mingw64-x86_64-gcc-g++,patch,rsync,unzip,vim RUN mklink C:\cygwin64\etc\postinstall\zp_zcygsympathy.sh C:\cygwin64\lib\cygsympathy\cygsympathy RUN mkdir C:\cygwin64\lib\cygsympathy & mkdir C:\cygwin64\etc\postinstall Reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /V Path /t REG_EXPAND_SZ /f /d "%l" RUN for /f "tokens=1,2,*" %a in ('reg query "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /V Path ^| findstr /r "\\$"') do `įor /f "delims=" %l in ('cmd /v:on /c "set v=%c& echo !v:~0,-1!"') do ` RUN C:\TEMP\vc_redist.圆4.exe /install /passive /norestart /log C:\TEMP\vc_redist.log # Autogenerated by OCaml-Dockerfile scriptsįROM /windows/server:ltsc2022-KB5017316 Move "C:\TEMP\winget-cli\\resources.pri" "C:\Program Files\winget-cli\" Move "C:\TEMP\winget-cli\\WindowsPackageManager.dll" "C:\Program Files\winget-cli\" & ` Move "C:\TEMP\winget-cli\\winget.exe" "C:\Program Files\winget-cli\" & ` RUN mkdir "C:\Program Files\winget-cli" & ` RUN powershell -Command "Expand-Archive -LiteralPath C:\TEMP\winget-cli\AppInstaller_圆4.zip -DestinationPath C:\TEMP\winget-cli\ -Force" RUN ren C:\TEMP\winget-cli\AppInstaller_圆4.msix AppInstaller_圆4.zip

RUN powershell -Command "Expand-Archive -LiteralPath C:\TEMP\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.zip -DestinationPath C:\TEMP\winget-cli -Force"

16:38.05: Will push staging image to ocurrent/opam-staging:windows-mingw-21H2-opam-amd64įROM /windows/server:ltsc2022-KB5017316 as winget-builderĪDD
