You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’ve worked on an update for image2icon.rb. I am not sure whether this will work though and I would appreciate some input. I’ve wrapped two old versions of the same program into several conditional statements, in each case the name, app, and zap stanzas are different. Will this work? What will happen when a user updates, say, from Mountain Lion to El Capitan, will the newer version of the app be installed alongside the old version or will the old version be deleted before? Does it make sense to include the zap stanza of previous versions too (or just list them all regardless of version?)?
cask:v1=>'image2icon'doifMacOS.release == :tigerversion'0.5.1'sha256'b268136c5067438f09a634a886b8c33e841a1d6d4e5b860278e02812563151d4'url'http://www.img2icnsapp.com/static/old_versions/img2icns0.5.zip'name'img2icns'name'Image2icon'container:nested=>'img2icns05.dmg'app'img2icns.app'zap:delete=>'~/Library/Preferences/net.shinyfrog.img2icns.plist'elsifMacOS.release <= :mountain_lionversion'1.2.2'sha256'babae11fd9a496057db9c4ff491f9e62fa07479187cd33a8d35aca11728e7567'url'http://www.img2icnsapp.com/static/old_versions/Img2icns1.2.2.zip'name'Img2icns'name'Image2icon'app'Img2icns.app'zap:delete=>['~/Library/Preferences/net.shinyfrog.img2icns.plist','~/Library/Caches/net.shinyfrog.img2icns','~/Library/Application Support/Img2icns','~/Library/Saved Application State/net.shinyfrog.img2icns.savedState']elseversion'2.2'sha256'dd1d588a4450c96272e345e16a8e9a8b4738d473e1683ceee19e1756eb39c6d7'# amazonaws.com is the official download host per the vendor homepageurl"https://sf-applications.s3.amazonaws.com/Image2Icon/app-releases/Image2icon#{version}.zip"name'Image2icon'name'Img2icns'app'Image2Icon.app'zap:delete=>['~/Library/Caches/net.shinyfrog.image2icon','~/Library/Preferences/net.shinyfrog.image2icon.plist','~/Library/Containers/net.shinyfrog.image2icon','~/Library/Containers/net.shinyfrog.image2icon.templateRenderer','~/Library/Containers/net.shinyfrog.templateRenderer','~/Library/Saved Application State/net.shinyfrog.image2icon.savedState']endhomepage'http://www.img2icnsapp.com/'license:freemiumdepends_on:macos=>'>= :tiger'end
The text was updated successfully, but these errors were encountered:
There’s too much repetition between the last two conditionals. name, for example, can be abstracted. Also, screw :tiger, homebrew-cask likely won’t even work, there.
It’s also weird to have both versions of the app (with different names) in the same cask, and goes against the token reference.
Just update the newest one, and let the old ones out. If someone asks for them, we can add them to caskroom/versions.
I’ve worked on an update for image2icon.rb. I am not sure whether this will work though and I would appreciate some input. I’ve wrapped two old versions of the same program into several conditional statements, in each case the
name
,app
, andzap
stanzas are different. Will this work? What will happen when a user updates, say, from Mountain Lion to El Capitan, will the newer version of the app be installed alongside the old version or will the old version be deleted before? Does it make sense to include the zap stanza of previous versions too (or just list them all regardless of version?)?The text was updated successfully, but these errors were encountered: