darling
darling copied to clipboard
Cannot attatch some dmg files
Expected Result
Install Sublime Text using their dmg file:
hdiutil attach sublime.dmg
I tried other apps also, I could mount some but others I couldn't.
Actual Result
Darling [~/Downloads]$ hdiutil attach sublime.dmg
Will pass /home/rosostolato/.darling/Volumes/sublime
Skipping partition of type Primary GPT Header
Skipping partition of type Primary GPT Table
Skipping partition of type Apple_Free
Using partition #3 of type Apple_HFS
Error: Unexpected EOF from readRun
Possible reasons:
1) The file is corrupt.
2) The file is not really a DMG file, although it resembles one.
3) There is a bug in darling-dmg.
Steps To Reproduce Download image and try to mount. Link to download: https://download.sublimetext.com/Sublime%20Text%20Build%203211.dmg
System Information I'm using Arch Linux Kernel 5.10.34-1-lts (kernel 5.12 is not building) Darling | e1756ec2770e26a9eba49c99f666b60060eaa619 |
I have a question also: is darling already supporting GUI applications?
Thanks for the bug report. Looks like a case darling-dmg doesn't handle yet.
Regard GUI support: yes, Darling supports basic GUI applications, but most apps don't fall under the category of "basic".
It also fails with the same error with https://www.macterm.net/updates/macterm-4.1.0.dmg
I got exact same errors in three different applications (dmg files).
Bro you can try to use dmg2img to avoid attaching dmgs in the darling shell.
Take which image you have uploaded as an example. Input dmg2img /path/to/sublime.dmg /path/to/sublime.img in the linux terminal, then mount it and copy *.app folder to any path you like (out of the image).
But I think we'd better pray for the bug's fixed as quicker as possible.
Another .dmg file affected by this issue is the one from Adobe XD: https://creativecloud.adobe.com/apps/download/xd
$ darling shell
Darling [/Volumes/SystemRoot/home/myuser/Downloads]$ hdiutil attach XD_Installer.dmg
Will pass /home/myuser/.darling/Volumes/XD_Installer
Skipping partition of type Apple_partition_map
Using partition #1 of type Apple_HFS
Error: Unexpected EOF from readRun
Possible reasons:
1) The file is corrupt.
2) The file is not really a DMG file, although it resembles one.
3) There is a bug in darling-dmg.
It's very frustrating for me not to install any app at all, this error keeps poping up each time i want to install, I tried installling GitHub Desktop https://central.github.com/deployments/desktop/desktop/latest/darwin
Darling [/Volumes/SystemRoot/home/nicholas]$ hdiutil attach ~/Downloads/SublimeText.dmg
Will pass /home/nicholas/.darling/Volumes/SublimeText
Skipping partition of type Primary GPT Header
Skipping partition of type Primary GPT Table
Skipping partition of type Apple_Free
Using partition #3 of type Apple_HFS
Error: Unexpected EOF from readRun
Possible reasons:
1) The file is corrupt.
2) The file is not really a DMG file, although it resembles one.
3) There is a bug in darling-dmg.
@rosostolato @TheBrokenRail @YuanTian1991 @saulotoledo @NICHOLAS-AGBO Please try again with the latest version.
我也遇到了同样的问题,我的是ubuntu22.10 我的解决方式是在运行make和make install的时候加上sudo,并且在运行darling shell的时候也执行sudo就ok了