-
Notifications
You must be signed in to change notification settings - Fork 55
Add installApp API #267
Comments
You know my thoughts :) I'm against integrating git client in the app and doing a sequence of |
@jsuder so does option 2 work for you? |
Actually, we might not even need a method for this. It should be possible to intercept downloads of hiveapp files and handle them as app installation, i.e. you'd create a link |
@jsuder Good point! I'll try that. Will close this & release a new version of app store if this works. |
No, I take that back, this will need to be an API method:
BTW, you can use a link with |
Added first version of So it could be e.g.:
|
Do we want all apps to have the permission to install other apps? At the very least, apps installed via HTTP should be somewhat sandboxed in this regard. And shouldn't we add a hash argument to validate the downloaded zip, in order to prevent someone from modifying the zip on the way? |
You can always make a link that opens in an external browser that leads to a hiveapp, which will be immediately downloaded, and then you're only one click away from the same confirmation dialog. So I don't think limiting access to this method would help that much. As for modifying zips on the way, I guess we could make this method reject downloads that use unencrypted http. |
Following are options I can think of:
Option 1 has dependency on git and osx client will have to integrate with git so will be more complex. But upgrade could be easier and signing the app can be as simple as signing git release tags.
Option 2 provides more flexibility and is probably much simpler to implement on the osx client side. App upgrade can rely on the combined json file produced by our Hive App Registry Worker/Server (at http://hive-app-registry.herokuapp.com/index.json for now) Git dependency is pushed up the chain. So osx doesn't have to worry about it.
@jsuder @nschum @tgerring @w-hive Thoughts?
The text was updated successfully, but these errors were encountered: