2021-04-29 22:39:04 +08:00
|
|
|
Vagrant.configure('2') do |config|
|
2023-09-15 05:02:46 +08:00
|
|
|
config.vm.box = 'macos-13-5'
|
2021-04-29 22:39:04 +08:00
|
|
|
config.vm.synced_folder '.', '/Users/vagrant/shared'
|
|
|
|
|
|
|
|
config.vm.provision 'shell',
|
|
|
|
run: 'once',
|
|
|
|
name: 'Install Xcode Command Line Tools: attach dmg file',
|
|
|
|
inline: 'hdiutil attach shared/clt.dmg -mountpoint /Volumes/setup-installer',
|
|
|
|
privileged: false
|
|
|
|
config.vm.provision 'shell',
|
|
|
|
run: 'once',
|
|
|
|
name: 'Install Xcode Command Line Tools: run installer',
|
|
|
|
inline: 'installer -pkg "/Volumes/setup-installer/Command Line Tools.pkg" -target /',
|
|
|
|
privileged: true
|
|
|
|
config.vm.provision 'shell',
|
|
|
|
run: 'once',
|
|
|
|
name: 'Install XCode Command Line Tools: detach dmg file',
|
|
|
|
inline: 'hdiutil detach /Volumes/setup-installer',
|
|
|
|
privileged: false
|
|
|
|
|
|
|
|
config.vm.provision 'shell',
|
|
|
|
run: 'once',
|
|
|
|
name: 'Install brew',
|
|
|
|
inline: '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"',
|
|
|
|
privileged: false
|
|
|
|
config.vm.provision 'shell',
|
|
|
|
run: 'once',
|
|
|
|
name: 'Install brew applications',
|
2023-09-15 05:02:46 +08:00
|
|
|
inline: "brew install autoconf-archive autoconf automake bison cmake gettext gfortran gperf gtk-doc libtool meson mono nasm ninja pkg-config powershell texinfo yasm",
|
2021-04-29 22:39:04 +08:00
|
|
|
privileged: false
|
|
|
|
end
|