5 url "https://virtualii.com/VirtualII.dmg"
7 desc "Apple II Emulator"
8 homepage "https://virtualii.com/"
11 url "https://virtualii.com/versionlist.xml"
12 strategy :xml do |xml|
13 version = xml.elements["//key[text()='VirtualII']"]&.next_element&.text
14 next if version.blank?
20 depends_on macos: ">= :monterey"
25 # There is no sub-folder in the DMG; the root *is* the folder
26 FileUtils.mv(staged_path.children, staged_path.join("Virtual ][").tap(&:mkpath))
30 "~/Library/Application Support/Virtual ][",
31 "~/Library/Caches/SentryCrash/Virtual ][",
32 "~/Library/Application Scripts/nl.xs4all.gp.virtualii.VIIDiskViewerQLExtension",
33 "~/Library/Application Scripts/nl.xs4all.gp.virtualii.VIISavedStateViewerExtension",
34 "~/Library/Caches/nl.xs4all.gp.virtualii",
35 "~/Library/Containers/nl.xs4all.gp.virtualii.VIIDiskViewerQLExtension",
36 "~/Library/Containers/nl.xs4all.gp.virtualii.VIISavedStateViewerExtension",
37 "~/Library/HTTPStorages/nl.xs4all.gp.virtualii",
38 "~/Library/Preferences/nl.xs4all.gp.virtualii.plist",
39 "~/Library/Saved Application State/nl.xs4all.gp.virtualii.savedState",
43 This app requires a ROM image, which must be downloaded and installed
44 separately. See #{homepage}VirtualIIHelp/virtual_II_help.html#ROMImage