Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Figure out how to automate install on Mac/Darwin #9

Closed
pdehaan opened this issue Feb 23, 2016 · 4 comments
Closed

Figure out how to automate install on Mac/Darwin #9

pdehaan opened this issue Feb 23, 2016 · 4 comments

Comments

@pdehaan
Copy link
Collaborator

pdehaan commented Feb 23, 2016

Need to find out how we can auto-mount a DMG and silent install.

I assume doing uninstall for Darwin is as simple as deleting the folder with the *.app.

@rpappalax
Copy link
Collaborator

Ok i remember now.
Mount to /Volumes with this command:
http://apple.stackexchange.com/a/73931
Then,
$ cp -R /Volumes/xxxx.app
Then kick back with a book

@pdehaan
Copy link
Collaborator Author

pdehaan commented Feb 23, 2016

SMASHING, RICKY!

Oddly, this initial attempt seems to work (naturally we prefer to avoid sudo if possible, since that'd be blocking):

$ hdiutil attach firefox-45.0a1.en-US.mac.dmg -mountpoint foo45
expected   CRC32 $740D6CD9
/dev/disk3              Apple_partition_scheme
/dev/disk3s1            Apple_partition_map
/dev/disk3s2            Apple_HFS                       /Users/pdehaan/Downloads/foo45

$ ls -las foo45
total 1776
   4 lrwxrwxr-x@   1 pdehaan  staff      13 Nov 25 04:41   -> /Applications
   0 drwxr-xr-x@   7 pdehaan  staff     238 Nov 25 04:41 .
   0 drwx------+ 786 pdehaan  staff   26724 Feb 22 23:42 ..
  28 -rw-r--r--@   1 pdehaan  staff   12292 Nov 25 04:41 .DS_Store
1744 -rw-r--r--@   1 pdehaan  staff  891873 Nov 25 04:41 .VolumeIcon.icns
   0 drwxr-xr-x@   3 pdehaan  staff     102 Nov 25 04:41 .background
   0 drwxr-xr-x@   3 pdehaan  staff     102 Nov 25 04:18 FirefoxNightly.app

$ ./foo45/FirefoxNightly.app/Contents/MacOS/firefox --version
Mozilla Firefox 45.0a1

Although I think more investigation is needed, because if I unmount that device in Finder, it sort of disappears from my machine. So maybe your three-step process of attaching+copying+detaching is better.

@rpappalax
Copy link
Collaborator

Yay!! Thanks man
Anxious to get back to this.

@pdehaan
Copy link
Collaborator Author

pdehaan commented Feb 26, 2016

Closing. I'm happy-ish with our solution in 16aff3b.
I'll do a future PR to move the hdiutil stuff into a separate module to mask some of the horror.

@pdehaan pdehaan closed this as completed Feb 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants