Phonegap像Mac App Store平台? [英] Phonegap like platform for Mac App Store?
问题描述
我使用phonegap在iOS的原生应用程序中运行我的HTML / JS代码。有没有办法做到这一点在Mac上包括在Mac App Store?
I'm using phonegap to run my HTML/JS code in a native app for iOS. Is there any way to do this on the Mac for inclusion in the Mac App Store? Or just platform that allows me to run HTML/JS in a native app wrapper?
到目前为止,我所看到的唯一的东西是 phonegap- mac
,但我不完全确定如何使用它:
So far the only thing I've seen is phonegap-mac
but I'm not entirely sure how to use it:
https://github.com/phonegap/phonegap-mac
推荐答案
Phonegap-mac没有看到任何工作在一段时间。也许可以尝试MacGap( https://github.com/maccman/macgap ),这是一个分叉,是仍在积极开发。
Phonegap-mac hasn't seen any work in a while. Perhaps try MacGap (https://github.com/maccman/macgap), which is a fork and is still being actively developed.
更新2014-03-18 :MacGap最近也没有看到很多工作。
UPDATE 2014-03-18: MacGap hasn't seen a lot of work recently either.
对于我最新的HTML5 Mac App Store应用程序,我使用Cordova http:// cordova。 apache.org ,因为我认为长期现在是更好的解决方案。
For my latest HTML5 Mac App Store app, I used Cordova http://cordova.apache.org, as I think long term that is now the better solution.
有一个 cordova-osx
版本,可以生成一个OSX项目。它不是像iOS / Android cordova平台那么完整,但它的工作原理 - 如果你希望支持两者 iOS + OSX,它可能是一个比MacGap更好的解决方案。 (现在说,MacGap可能更好的开箱即用)。
There is a cordova-osx
version which can generate a OSX project. It's no where near as complete as the iOS / Android cordova platforms, but it works - and is probably a better solution than MacGap if you're hoping to support both iOS + OSX. (having said that, MacGap probably works better "out of the box" currently).
请注意,Cordova CLI目前不支持cordova-osx - 以手动维护OSX X-Code项目,这是一个遗憾。此外,许多Cordova插件不支持OSX。
Note that the Cordova CLI doesn't currently work with cordova-osx - you have to maintain the OSX X-Code project manually, which is a pity. As well, many of the Cordova plugins don't support OSX.
我不得不做一些黑客,让我的应用程序在Cordova OSX上工作。但至少我现在有一个HTML5应用程序可以运行在Android / iOS / OSX这是很酷。
I had to do a fair bit of 'hacking' to get my app working on Cordova OSX. But at least I now have a HTML5 app which can run on Android / iOS / OSX which is pretty cool.
这篇关于Phonegap像Mac App Store平台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!