Skip to content

Commit

Permalink
over
Browse files Browse the repository at this point in the history
Signed-off-by: acejilam <[email protected]>
  • Loading branch information
ls-2018 committed Jul 18, 2024
1 parent 5580c80 commit 178e0c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os
import subprocess

version = 'v2.0.0'
os.system("rm -rf packer-plugin-virtualbox*")
version = 'v2.0.2'
x = []
os.system(f'go build -o packer-plugin-virtualbox_{version}_x5.0_darwin_arm64 .')
os.system(
Expand Down
3 changes: 1 addition & 2 deletions builder/virtualbox/iso/step_create_vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ func (s *stepCreateVM) Run(ctx context.Context, state multistep.StateBag) multis
commands := [][]string{}
commands = append(commands, []string{
"createvm", "--name", name,
"--ostype", config.GuestOSType, "--register",
"--ostype", config.GuestOSType, "--register", "--platform-architecture", "arm",
})
commands = append(commands, []string{"--platform-architecture", "arm"})
version, _ := driver.Version()
ioutil.WriteFile("/tmp/1.txt", []byte(version), os.ModePerm)
x, _ := json.Marshal(commands)
Expand Down

0 comments on commit 178e0c5

Please sign in to comment.