Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions builder/utm/common/scripts/add_port_forwards.applescript
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ on run argv
set ruleComponents to text items of ruleArg

-- Create a port forwarding rule record
set portForwardRule to {
indexVal:indexNumber, protocolVal:item 1 of ruleComponents,
guestAddress:item 2 of ruleComponents, guestPort:item 3 of ruleComponents,
hostAddress:item 4 of ruleComponents, hostPort:item 5 of ruleComponents
set portForwardRule to { ¬
indexVal:indexNumber, protocolVal:item 1 of ruleComponents, ¬
guestAddress:item 2 of ruleComponents, guestPort:item 3 of ruleComponents, ¬
hostAddress:item 4 of ruleComponents, hostPort:item 5 of ruleComponents ¬
}

-- Add the rule to the list
Expand All @@ -49,12 +49,12 @@ on run argv
set portForwards to port forwards of anInterface

-- Create a new port forward configuration
set newPortForward to {
protocol:(protocolVal of portForwardRule),
guest address:(guestAddress of portForwardRule),
guest port:(guestPort of portForwardRule),
host address:(hostAddress of portForwardRule),
host port:(hostPort of portForwardRule)
set newPortForward to { ¬
protocol:(protocolVal of portForwardRule), ¬
guest address:(guestAddress of portForwardRule), ¬
guest port:(guestPort of portForwardRule), ¬
host address:(hostAddress of portForwardRule), ¬
host port:(hostPort of portForwardRule) ¬
}

-- Add new port forward to the list
Expand Down
12 changes: 6 additions & 6 deletions builder/utm/common/scripts/create_vm.applescript
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ on run argv

-- Create a new VM with the specified properties
tell application "UTM"
set vm to make new virtual machine with properties
{ backend:vmBackend,
configuration:{
name:vmName,
architecture:vmArch
}
set vm to make new virtual machine with properties ¬
{ backend:vmBackend, ¬
configuration:{ ¬
name:vmName, ¬
architecture:vmArch ¬
} ¬
}

-- UTM by default creates a new VM with iso and disk drives
Expand Down