diff --git a/images/macos/templates/macOS-10.13.json b/images/macos/templates/macOS-10.13.json index 3eda456d..7bfd0184 100644 --- a/images/macos/templates/macOS-10.13.json +++ b/images/macos/templates/macOS-10.13.json @@ -148,12 +148,8 @@ }, { "type": "shell", - "execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}", - "scripts": [ - "./provision/core/xcode-tools.sh", - "./provision/core/xcode-sims.sh", - "./provision/core/build-xcode-symlinks.sh" - ], + "execute_command": "chmod +x {{ .Path }}; {{ .Vars }} pwsh -f {{ .Path }}", + "script": "./provision/core/xcode.ps1", "environment_vars": [ "XCODE_INSTALL_USER={{user `xcode_install_user`}}", "XCODE_INSTALL_PASSWORD={{user `xcode_install_password`}}" @@ -187,7 +183,9 @@ "./provision/core/firefox.sh", "./provision/core/toolcache-high-sierra.sh", "./provision/core/pypy.sh", - "./provision/core/pipx-packages.sh" + "./provision/core/pipx-packages.sh", + "./provision/core/xcode-sims.sh", + "./provision/core/build-xcode-symlinks.sh" ] }, { diff --git a/images/macos/templates/macOS-10.14.json b/images/macos/templates/macOS-10.14.json index 06e4dc7b..576e8183 100644 --- a/images/macos/templates/macOS-10.14.json +++ b/images/macos/templates/macOS-10.14.json @@ -148,11 +148,8 @@ }, { "type": "shell", - "execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}", - "scripts": [ - "./provision/core/xcode-tools.sh", - "./provision/core/xcode-sims.sh" - ], + "execute_command": "chmod +x {{ .Path }}; {{ .Vars }} pwsh -f {{ .Path }}", + "script": "./provision/core/xcode.ps1", "environment_vars": [ "XCODE_INSTALL_USER={{user `xcode_install_user`}}", "XCODE_INSTALL_PASSWORD={{user `xcode_install_password`}}" @@ -189,6 +186,7 @@ "./provision/core/edge.sh", "./provision/core/firefox.sh", "./provision/core/miniconda.sh", + "./provision/core/xcode-sims.sh", "./provision/core/xcode-postbuild.sh", "./provision/core/toolcache.sh", "./provision/core/pypy.sh", diff --git a/images/macos/templates/macOS-11.0.json b/images/macos/templates/macOS-11.0.json index 2a9b691b..f885cad3 100644 --- a/images/macos/templates/macOS-11.0.json +++ b/images/macos/templates/macOS-11.0.json @@ -149,8 +149,8 @@ }, { "type": "shell", - "execute_command": "chmod +x {{ .Path }}; {{ .Vars }} {{ .Path }}", - "script": "./provision/core/xcode-tools.sh", + "execute_command": "chmod +x {{ .Path }}; {{ .Vars }} pwsh -f {{ .Path }}", + "script": "./provision/core/xcode.ps1", "environment_vars": [ "XCODE_INSTALL_USER={{user `xcode_install_user`}}", "XCODE_INSTALL_PASSWORD={{user `xcode_install_password`}}"