gpt4 book ai didi

cordova - 它可以用于构建桌面应用程序(linux、OSX、Win)吗?

转载 作者:行者123 更新时间:2023-12-04 03:12:36 25 4
gpt4 key购买 nike

我用 ionic/cordova 为移动应用程序(Android、iOS)做了几个简单的项目。

我想知道,我是否也可以使用它来为 linux、OSX 和 Win 创建桌面应用程序?

apache 文档建议可以这样做(此处:osx): https://cordova.apache.org/docs/en/latest/guide/platforms/osx/ "

This guide shows how to set up your SDK development environment to deploy Cordova apps for OS X computers.

此链接(似乎已有 2 年左右的历史)声称它不能: https://www.airpair.com/ionic/a-year-using-ionic-for-hybrid-ios-android-apps

In case you wondered Ionic is only for native/hybrid mobile apps (Android, iOS, Windows phone, Chrome and even Apple Watch) and cannot be used to develop desktop applications.

我知道还有其他( native )跨平台框架,如 qt,但由于我碰巧拥有丰富的 Web 技术经验,我将最有效地使用 HTML5 和 CSS...

关于堆栈溢出有这个问题,但它是从 2011 年开始的,没有答案: Can Ionic be used for on desktop computers (as a web app)?

最佳答案

似乎是的,但是资源/教程/示例/示例等不多!

  1. 图片来自 official ionic site :

enter image description here

在图像的右上角,有一个电子图标。使用电子,您可以分发到 windows/macosx/linux。

  1. http://ionicframework.com/docs/developer-resources/desktop-support/

  2. 来自 official site also :

    Ionic 2 is focused on building both native/hybrid apps through Cordova, as well as adding the ability for Progressive Web Apps and Electron .

  3. https://github.com/ionic-team/ionic/issues/9050 : (@jgw96)

    Hello all! Sorry for the confusion here. While it is totally possible right now to build an Electron app with Ionic 2, we do not currently have a build process set up for it so it requires a little bit of setup on the developer's end. After we get Ionic 2 stable out we will be looking into providing more infrastructure around using Electron with Ionic 2.

    ionic/electron sample project

  4. 来自 official ionic forum回答:

    You can build Desktop worthy UI in Ionic by default - or just use Ionic as the base you build on with your own UI, so deploying this via Electron is a nice way to get cross platform Desktop native apps out of it. Of course these won't be Office like apps, but anything that can be used on a big tablet can also be used on a desktop PC.

  5. "Some initial thoughts on building desktop apps with Ionic and Electron" (雷蒙德·卡姆登的博客):

    All in all, I think this is an interesting idea. Ionic provides a great UI, and it looks just as good on desktop as it does mobile, and obviously the power of Angular to help architect your application is just as useful here. Certainly there are issues to keep in mind when building a desktop app that won’t apply to mobile, but they are things you can address. I’d love to hear what people think, and if you build something (or have built something), please share it in the comments below!

关于cordova - 它可以用于构建桌面应用程序(linux、OSX、Win)吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43822183/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com