不再使用Chrome打包应用时该去哪里 [英] Where to go when Chrome Packaged Apps are no more

查看:58
本文介绍了不再使用Chrome打包应用时该去哪里的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发并定期使用chrome打包的应用程序(以HTML,CSS,Javascript编写),该应用程序在计算机的本地文件夹中获取一组本地javascript文件,并将它们最小化(作为一个组),然后编写新的文件(每个原始源文件一个)到我的本地磁盘,覆盖所有以前的缩小文件(如果存在).

I have developed and regularly use a chrome packaged app (written in HTML,CSS,Javascript) that takes a set of local javascript files in a local folder on my machine and minifies them (as a group) and writes the new minified files (one per original source file) to my local disk, overwriting any previous minified files if they exist.

Google现在宣布,自2017年起将不再支持Chrome打包应用,并建议开发人员将其应用迁移到网络上.这对我来说不起作用,因为非常好的原因,Web应用程序无法与用户本地文件系统一起播放.

Google have now announced that they are discontinuing support for Chrome Packaged Apps from 2017 and suggest that developers migrate their app to the web. This will not work for me as for very good reasons web apps cannot play with the users local file system.

关于2017年之后如何继续使用我的应用程序的任何建议?我不想更改代码库(HTML/CSS/Javascript),因为我不知道任何其他语言,而且我没有时间翻译代码库.

Any suggestions for how I can continue to use my app after 2017 ? I do not want to change the code base (HTML/CSS/Javascript) as I do not know any other languages and I have not got the time to translate the code base.

推荐答案

如果您需要在Chrome操作系统(Chromebook,Chromebox,Chromebit)上运行,则需要保留Chrome应用(现在称为Chrome应用),Google表示他们将保持支持.

If you need to run on ChromeOS (Chromebooks, Chromeboxes, Chromebits) you need to keep your Chrome App (what they are called now), and Google has said they will maintain support.

否则,尽管也可以选择NW.js,但我建议迁移到Electron. (我更喜欢Electron,并取得了不错的成绩.)

Otherwise, I suggest moving to Electron, although NW.js is also an option. (I like Electron better, and have had great results.)

您会发现,实际上,使用Electron进行构建比使用Chrome App API进行构建要容易得多. Node.js的库比Chrome Apps的库多得多,并且对您的操作的限制也少得多.另外,您可以打包您的应用程序,使其看起来像本机应用程序,并且您会发现,由于用户已经习惯了,因此更容易让用户安装它.教人们如何从Chrome网上应用店下载是一个挑战,特别是对于那些不知道我说要首先安装Chrome并必须登录的人.

You'll discover that it's actually easier to build with Electron than with the Chrome App APIs. There are many, many more libraries for node.js than there are for Chrome Apps, and many fewer restrictions on what you can do. Also, you can package up your app so it looks like a native app, and you'll discover that it's easier to get your users to install it, as they're used to that. Teaching people how to download from the Chrome Web Store was a challenge, especially for those who had no idea what I meant when I said that Chrome had to be installed first and that they had to sign in.

不幸的是,电子产品无法在Chrome操作系统上运行,因此4向可移植性已变为3向.

Electron won't run on ChromeOS, unfortunately, so 4-way portability has become 3-way.

这篇关于不再使用Chrome打包应用时该去哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆