diff --git a/Sources/tart/Commands/Create.swift b/Sources/tart/Commands/Create.swift index a274df9..3682472 100644 --- a/Sources/tart/Commands/Create.swift +++ b/Sources/tart/Commands/Create.swift @@ -13,7 +13,7 @@ struct Create: AsyncParsableCommand { var fromIPSW: String? @Option(help: ArgumentHelp("Disk size in Gb")) - var diskSize: UInt8 = 50 + var diskSize: UInt16 = 50 func validate() throws { if fromIPSW == nil { diff --git a/Sources/tart/Commands/Set.swift b/Sources/tart/Commands/Set.swift index 12b1f72..c7175c2 100644 --- a/Sources/tart/Commands/Set.swift +++ b/Sources/tart/Commands/Set.swift @@ -17,7 +17,7 @@ struct Set: AsyncParsableCommand { var display: VMDisplayConfig? @Option(help: .hidden) - var diskSize: UInt8? + var diskSize: UInt16? func run() async throws { do { diff --git a/Sources/tart/VM.swift b/Sources/tart/VM.swift index e27abe0..339bd81 100644 --- a/Sources/tart/VM.swift +++ b/Sources/tart/VM.swift @@ -78,7 +78,7 @@ class VM: NSObject, VZVirtualMachineDelegate, ObservableObject { return expectedIPSWLocation } - init(vmDir: VMDirectory, ipswURL: URL?, diskSizeGB: UInt8) async throws { + init(vmDir: VMDirectory, ipswURL: URL?, diskSizeGB: UInt16) async throws { let ipswURL = ipswURL != nil ? ipswURL! : try await VM.retrieveLatestIPSW(); // Load the restore image and try to get the requirements diff --git a/Sources/tart/VMDirectory.swift b/Sources/tart/VMDirectory.swift index 46e3563..13eb743 100644 --- a/Sources/tart/VMDirectory.swift +++ b/Sources/tart/VMDirectory.swift @@ -68,7 +68,7 @@ struct VMDirectory { try newVMConfig.save(toURL: to.configURL) } - func resizeDisk(_ sizeGB: UInt8) throws { + func resizeDisk(_ sizeGB: UInt16) throws { if !FileManager.default.fileExists(atPath: diskURL.path) { FileManager.default.createFile(atPath: diskURL.path, contents: nil, attributes: nil) }