-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvagcompile.sh
executable file
·23 lines (22 loc) · 973 Bytes
/
vagcompile.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
set -e -x
rm -rf Vagrantfile
###vagrant init rpodgorny/mywindows-10 --box-version 1809.0.1904.3
echo 'Vagrant.configure("2") do |config|
config.vm.box = "rpodgorny/mywindows-10"
config.vm.box_version = "1809.0.1904.3"
config.vm.provider "virtualbox" do |vb|
vb.memory = 4096
vb.cpus = 4
end
end' >Vagrantfile
vagrant up
#vagrant ssh -c 'cp c:/vagrant/unzip.exe c:/ProgramData/chocolatey/bin/' --no-tty # TODO: temporary workaround - remove after new windows image is done
#vagrant ssh -c 'cp c:/vagrant/zip.exe c:/ProgramData/chocolatey/bin/' --no-tty # TODO: temporary workaround - dtto
echo "rm -rf c:/build; mkdir -p c:/build; cp -rv c:/vagrant/* c:/build/" | vagrant ssh -c /bin/bash
echo "cd c:/build; ./compile_win.sh" | vagrant ssh -c /bin/bash
#echo "cd c:/build; cd dist; ./tests.exe" | vagrant ssh -c /bin/bash
echo "cd c:/build; cp -rv dist c:/vagrant/" | vagrant ssh -c /bin/bash
vagrant halt
vagrant destroy --force
rm Vagrantfile