26 lines
835 B
Ruby
26 lines
835 B
Ruby
cask "macintoshjs" do
|
|
arch = Hardware::CPU.intel? ? "x64" : "arm64"
|
|
|
|
version "1.1.0"
|
|
|
|
url "https://github.com/felixrieseberg/macintosh.js/releases/download/v#{version}/macintosh.js-darwin-#{arch}-#{version}.zip"
|
|
if Hardware::CPU.intel?
|
|
sha256 "4ca41517f15c594e718da622074a2160754cb8f1293cb1fad908f6d0ae585384"
|
|
else
|
|
sha256 "0af95bbcc075f939d6c3e1fdcdab0d8da2760e5546aecfbc82767e326640740c"
|
|
end
|
|
|
|
name "macintosh.js"
|
|
desc "Virtual Apple Macintosh with System 8, running in Electron"
|
|
homepage "https://github.com/felixrieseberg/macintosh.js"
|
|
|
|
app "macintosh.js.app"
|
|
|
|
zap trash: [
|
|
"~/Library/Application Support/macintosh.js",
|
|
"~/Library/Preferences/com.felixrieseberg.macintoshjs.plist",
|
|
"~/Library/Saved Application State/com.felixrieseberg.macintoshjs.savedState",
|
|
"~/macintosh.js",
|
|
]
|
|
end
|