Skip to content
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

Closes #6 and updates readme #16

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
The MIT License (MIT)
Copyright (c) 2017 Craig Hockenberry

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
40 changes: 29 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,53 @@
Provisioning
============
# Provisioning

A Quick Look plug-in for .mobileprovision files (on iOS) and .provisionprofile files (on OS X).

## Installation

### Manual installation

A ZIP file with the latest version can be [downloaded from the Releases page](https://github.com/chockenberry/Provisioning/releases).

### Using [brew cask](https://caskroom.github.io/)

```bash
brew cask install provisioning
```

## Select and copy text from Quick Look

If you want to copy information from the Quick Look preview, you need to [change a hidden Finder preference](http://www.macworld.com/article/1164668/select_and_copy_text_within_quick_look_previews.html) using the command line:

$ defaults write com.apple.finder QLEnableTextSelection -bool TRUE
$ killall Finder
```bash
defaults write com.apple.finder QLEnableTextSelection -bool TRUE
killall Finder
```

## Provisioning overview

If you're like the rest of us, provisioning can sometimes make your head spin. When that happens, I recommend reading Sean Heber's [provisioning overview](http://bigzaphod.tumblr.com/post/78574849549/provisioning).

## Thanks

Thanks to following individuals who've helped with this project:

* [Pieter Claerhout](https://github.com/pieterclaerhout) for the OS X and profile type support.
* [Kyle Sluder](https://github.com/kylesluder) for expiration (invalidity dates) in the developer certificates.
* [Evgeny Aleksandrov](https://github.com/ealeksandrov) for locale-aware date formatting.


Project Notes
-------------
## Project Notes

* The plug-in code can be signed, but currently isn't because it prevents the app from reading user defaults from Xcode (and showing device names and software versions.) If you want to sign the code, set the "Code Signing Identity" build setting to the "Developer ID: *" automatic setting. If you don't have a Developer ID, get creative. You'll also need to change the SIGNED_CODE definition from 0 to 1.
* The plug-in code can be signed, but currently isn't because it prevents the app from reading user defaults from Xcode (and showing device names and software versions). If you want to sign the code, set the `Code Signing Identity` build setting to the `Developer ID: *` automatic setting. If you don't have a Developer ID, get creative. You'll also need to change the `SIGNED_CODE` definition from `0` to `1`.

* There is a "Provisioning (Install)" aggregate target that puts the build of Provisioning.qlgenerator in your ~/Library/QuickLook folder.
* There is a "Provisioning (Install)" aggregate target that puts the build of Provisioning.qlgenerator in your `~/Library/QuickLook` folder.

* The "Provisioning" schemes runs "qlmanage" with the -p argument set to "~/Library/MobileDevice/Provisioning\ Profiles/Iconfactory_Development.mobileprovision". You won't have this file, so change it to something you do have.
* The "Provisioning" schemes runs `qlmanage` with the `-p` argument set to `~/Library/MobileDevice/Provisioning\ Profiles/Iconfactory_Development.mobileprovision`. You won't have this file, so change it to something you do have.

* QuickLook plug-ins sometimes don't like to install. Learn to use "qlmanage -r" to reset the daemon. Using "qlmanage -m plugins | grep mobileprovision" will tell you if the plug-in has been recognized. Sometimes you have to login and out before the plug-in is recognized.
* QuickLook plug-ins sometimes don't like to install. Learn to use `qlmanage -r` to reset the daemon. Using `qlmanage -m plugins | grep mobileprovision` will tell you if the plug-in has been recognized. Sometimes you have to login and out before the plug-in is recognized.

* You can use the command-line to debug, as well. To dump of the output in a .qlpreview bundle, use: "qlmanage -p ~/Library/MobileDevice/Provisioning\ Profiles/Iconfactory_Development.mobileprovision -o /tmp/quicklook". You'll need to make the directory first.
* You can use the command-line to debug, as well. To dump of the output in a `.qlpreview` bundle, use: `qlmanage -p ~/Library/MobileDevice/Provisioning\ Profiles/Iconfactory_Development.mobileprovision -o /tmp/quicklook`. You'll need to make the directory first.

## LICENSE

MIT © [Craig Hockenberry](https://github.com/chockenberry)