-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DeciTime.app #2654
DeciTime.app #2654
Conversation
Hi! Thanks for the report! I missed this last week, but will look into it today. |
There is definitely something wonky about the DMG file. Don't get the wrong idea, I would still like to make One unusual thing about the DMG is the boot sector. I didn't look too far into that. But The second thing: the error you describe above is real -- and running the same The issue is the $ curl -LO http://download.filewell.com/DeciTime101.dmg.zip
$ unzip DeciTime101.dmg.zip -x '__MACOSX/*'
$ mkdir pristine
$ cp DeciTime101.dmg pristine/
$ /usr/bin/hdiutil mount -readonly DeciTime101.dmg # -readonly fails
hdiutil: mount failed - no mountable file systems
$ /usr/bin/hdiutil mount DeciTime101.dmg # works, and alters the DMG
$ /usr/bin/hdiutil eject /Volumes/DeciTime
$ /usr/bin/hdiutil mount -readonly DeciTime101.dmg # -readonly works now !
$ /usr/bin/hdiutil eject /Volumes/DeciTime
$ cmp DeciTime101.dmg pristine/DeciTime101.dmg # the images are different
DeciTime101.dmg pristine/DeciTime101.dmg differ: char 21511, line 1 Cool bug! |
Since I can't come up with a proper way to make this DMG work using the current Cask language, I proposed some extensions to the DSL ( Another option would be to drop |
After then next code release, this Cask can be merged, if the following lines are added # fix wonky DMG by mounting it once read-write per discussion at
# https://github.com/phinze/homebrew-cask/pull/2654
before_install do
system %Q{/usr/bin/hdiutil eject "$(/usr/bin/hdiutil mount -readwrite -noidme -nobrowse -mountrandom /tmp #{destination_path.join(artifacts[:nested_container].first)} | /usr/bin/cut -f3 | /usr/bin/grep '.')" >/dev/null 2>&1}
end |
done |
Thanks a bunch! This will start working for people as soon as they update to the new release. |
The inner dmg here fails to mount with a strange error message. Here's the debug output:
Downloading and unzipping manually and then running the same hdiutil incantation works just fine, though :(