mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 05:50:31 +00:00
Separate GUI config.
This commit is contained in:
parent
7252c69738
commit
2416297b12
3 changed files with 19 additions and 7 deletions
15
Tools/Vagrant/Vagrantfile
vendored
15
Tools/Vagrant/Vagrantfile
vendored
|
|
@ -1,6 +1,10 @@
|
|||
# -*- mode: ruby -*-
|
||||
# vi: set ft=ruby :
|
||||
|
||||
def gui?
|
||||
!ENV.fetch('GUI', '').empty?
|
||||
end
|
||||
|
||||
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
|
||||
VAGRANTFILE_API_VERSION = '2'
|
||||
|
||||
|
|
@ -8,13 +12,22 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
|
|||
config.vm.box = 'ubuntu/trusty64'
|
||||
|
||||
config.vm.provider 'virtualbox' do |vb|
|
||||
#vb.gui = true
|
||||
vb.memory = 1024
|
||||
if gui?
|
||||
vb.memory = 2048
|
||||
vb.customize ['modifyvm', :id, '--vram', '256']
|
||||
vb.customize ['modifyvm', :id, '--accelerate3d', 'on']
|
||||
vb.customize ['modifyvm', :id, '--hwvirtex', 'on']
|
||||
vb.gui = true
|
||||
end
|
||||
end
|
||||
|
||||
config.vm.synced_folder '../../', '/torque'
|
||||
|
||||
config.vm.provision :shell, path: 'provision.sh'
|
||||
if gui?
|
||||
config.vm.provision :shell, path: 'provision-gui.sh'
|
||||
end
|
||||
|
||||
# config.vm.network 'forwarded_port', guest: 80, host: 8080
|
||||
|
||||
|
|
|
|||
5
Tools/Vagrant/provision-gui.sh
Normal file
5
Tools/Vagrant/provision-gui.sh
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
# Install Unity desktop for GUI purposes.
|
||||
apt-get install --no-install-recommends \
|
||||
ubuntu-desktop \
|
||||
gnome-terminal \
|
||||
-y
|
||||
|
|
@ -1,12 +1,6 @@
|
|||
# Make sure package listings are up to date.
|
||||
apt-get update -y
|
||||
|
||||
# Install Unity desktop for GUI purposes.
|
||||
#apt-get install --no-install-recommends \
|
||||
# ubuntu-desktop \
|
||||
# gnome-terminal \
|
||||
# -y
|
||||
|
||||
# Install software for development.
|
||||
sudo apt-get install \
|
||||
git \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue