xcpretty / xcode-install

🔽 Install and update your Xcodes
https://fastlane.tools
MIT License
2.59k stars 243 forks source link

Add new action to finalise existing Xcode installation #264

Open NickAb opened 6 years ago

NickAb commented 6 years ago

Hi,

I am looking into optimising my Xcode deployment script used to install Xcode to tens of machines.

Currently it does something like:

  1. rsync xcode.xip file from base host to all other hosts to /xcode.xip
  2. run xcversion install 9.2 --no-switch --url=file:///xcode.xip

But my understanding is that I can save a lot of time on unpacking xip file, if I unpack it once on a base host and rsync Xcode.app directly. And then all I will need to do is to run following lines of install action: https://github.com/KrauseFx/xcode-install/blob/e7e5441d250e98209d6cd56b7c6b36f396483170/lib/xcode/install.rb#L129-L132

Is it correct and would you be open to a PR that will add new action called, for example, prepare or run-first-launch which will run approve_license and install_components for selected xcode version?

timsutton commented 6 years ago

I can see the value in having that, if you're otherwise rolling your own mechanism to distribute the app bundle. Feel free to write up a PR!