如何将 Chrome 浏览器打包到品牌 exe/dmg 安装程序中?

发布于 2024-12-06 16:52:18 字数 250 浏览 1 评论 0原文

我正在寻找创建一个 exe(也许是 dmg)安装程序,它只需打开一个不可见的浏览器窗口并导航到网页。最好使用 Google Chrome 的渲染/javascript 引擎。我的想法是,我有一个网络应用程序,我需要将其伪装成 Windows 程序。有点像 iTunes 加载其网络商店的方式。 有什么提示/建议吗?

作为一个附加/单独的问题,打包 php 和 php 会有多复杂? mySQL 服务器安装到安装程序中以便我可以离线运行该应用程序?

多谢!

I'm looking to create an exe (and maybe dmg) installer that simply opens an invisible browser window and navigates to a webpage. Preferably using Google Chrome's rendering/javascript engine. The idea is that I have a web app that I need to disguise as a windows program. A bit like the way iTunes loads it's web store.
Any tips/advice?

As a additional/separate issue, how complex would it be to package a php & mySQL server into the installer so I can run the app offline?

Thanks a lot!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

鲜血染红嫁衣 2024-12-13 16:52:18

实现这一目标的一个流行平台是 Titanium(请参阅 http://www.appcelerator.com/),尽管它更常用于移动开发。就我个人而言,我发现钛有点笨重。有一个名为 Fluid 的 OS X 工具(http://fluidapp.com/),但它更针对用户想要将任意网站变成应用程序的人。

这在某种程度上是一个无法回答的问题,但我建议您仔细考虑是否可以使用 Chrome 网上应用店 (https ://chrome.google.com/webstore),因为这对开发人员来说更方便,而且(我可能会说)对用户来说也更方便。也许您可以从这种方式开始,然后在发现您确实需要它时再研究更复杂的解决方案。到那时,可能会出现更好、更清洁的解决方案。

One popular platform for achieving this is something called Titanium (see http://www.appcelerator.com/), although it is more often used for mobile development. Personally, I found Titanium to be a little clunky. There is an OS X tool called Fluid (http://fluidapp.com/), but that is more aimed at users who want to turn arbitrary websites into apps.

This is somewhat of a non-answer, but I would suggest thinking long and hard about whether you can use Chrome Web Store (https://chrome.google.com/webstore) instead, as that is much more convenient for developers and — I might argue — for users as well. Maybe you can start out that way and then look into more complex solutions later if it turns out you really need it. When that time comes, it is likely that a better and cleaner solution for this has appeared.

不羁少年 2024-12-13 16:52:18

目前还没有官方的方法可以做到这一点。不过,有一个关于此功能的 chromium 页面

您也许可以制作一个自定义启动器,它将悄悄地调用 Chrome 和您的服务器堆栈。以下是您可能会觉得有用的命令行标志列表。

另请参阅最近提出的问题:
我可以通过网络以编程方式创建 Chrome 应用程序快捷方式吗页?

There's no official way to do this at the moment. There's a chromium page on this feature, though.

You might be able to make a custom launcher that will quietly invoke Chrome and your server stack. Here's a list of command line flags you might find useful.

Also see this recently asked question:
Can I Create Chrome Application Shortcuts Programmatically from a Web Page?

计㈡愣 2024-12-13 16:52:18

您考虑过 Adob​​e Air 吗?

它可以做到这一点,并将其打包为 exe。

Have you considered Adobe Air?

It can do just that, and you package it as an exe.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文