1
1
Vagrant . configure ( "2" ) do |config |
2
2
3
- # Specify the base box
3
+ # Specify the OS VM Box
4
4
config . vm . box = "ubuntu/bionic64"
5
5
config . vm . box_version = "20190814.0.0"
6
6
7
- # set the ` app`, ` examples`, ` glyphs` , and ` src` folders for syncing
7
+ # Sync the ' app', ' examples', ' glyphs' , and ' src' directories
8
8
config . vm . synced_folder ( "apps/" , "/home/vagrant/apps/" ,
9
9
id : "appsdir" ,
10
10
:create => true ,
@@ -22,10 +22,19 @@ Vagrant.configure("2") do |config|
22
22
:create => true ,
23
23
type : "virtualbox" )
24
24
25
- # copy the rebuild script and app Makefile to vagrant machine
25
+ # Copy scripts and the Makefile to the VM
26
26
config . vm . provision ( "file" ,
27
27
source : "./scripts/rebuild.sh" ,
28
28
destination : "/home/vagrant/apps/ledger-app-ark/scripts/" )
29
+ config . vm . provision ( "file" ,
30
+ source : "./scripts/rebuild_nanos.sh" ,
31
+ destination : "/home/vagrant/apps/ledger-app-ark/scripts/" )
32
+ config . vm . provision ( "file" ,
33
+ source : "./scripts/rebuild_nanox.sh" ,
34
+ destination : "/home/vagrant/apps/ledger-app-ark/scripts/" )
35
+ config . vm . provision ( "file" ,
36
+ source : "./scripts/udev.sh" ,
37
+ destination : "/home/vagrant/apps/ledger-app-ark/scripts/" )
29
38
config . vm . provision ( "file" ,
30
39
source : "./Makefile" ,
31
40
destination : "/home/vagrant/apps/ledger-app-ark/" )
@@ -38,22 +47,22 @@ Vagrant.configure("2") do |config|
38
47
source : "./icons/nanox_app_ark.gif" ,
39
48
destination : "/home/vagrant/apps/ledger-app-ark/icons/" )
40
49
41
- # VM specific configs
50
+ # VM configuration
42
51
config . vm . provider "virtualbox" do |v |
43
52
v . name = "ARK Ledger App Development Box"
44
53
v . customize [ "modifyvm" , :id , "--memory" , "1024" ]
45
54
46
- # Connect Ledger Nano S throug usb
55
+ # Configure the Ledger Nano S/X USB connection
47
56
v . customize [ "modifyvm" , :id , "--usb" , "on" ]
48
57
v . customize [ "modifyvm" , :id , "--usbehci" , "on" ]
49
58
v . customize [ "usbfilter" , "add" , "0" ,
50
59
"--target" , :id ,
51
- "--name" , "Ledger Nano S" ,
60
+ "--name" , "Ledger Nano S/X " ,
52
61
"--manufacturer" , "Ledger" ,
53
- "--product" , "Nano S" ]
62
+ "--product" , "Nano S/X " ]
54
63
end
55
64
56
- # Shell provisioning
65
+ # Run the Provisioning script
57
66
config . vm . provision "shell" do |s |
58
67
s . path = "scripts/provision.sh"
59
68
end
0 commit comments