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
Hi, @Bikram40! I faced the same issue and found a solution. If you want to open .dmg file you should follow the next flow:
Mount your .dmg file using command hdiutil mount <name>.dmg (or $filePath from example) ;
Install the application by copying files to /Application folder with command cp -R /Volumes/<title from config.json>/<app name>.app /Applications;
Unmount .dmg file hdiutil unmount /Volumes/<title from config.json>/;
Additionally I added deletion downloaded .dmg file command rm $filePath.
Also you can join all commands in one: hdiutil mount $filePath && cp -R /Volumes/<title from config.json>/<app name>.app /Applications && hdiutil unmount /Volumes/<title from config.json>/ && rm $filePath
The full implementation of the method in my project looks like this:
i want to add this function to my application but that is not working even i give to sandbox, any solution ?
The text was updated successfully, but these errors were encountered: