构建基于 WebKit 的 Windows 应用程序的最快/最简单的方法?

发布于 2025-01-04 08:47:46 字数 541 浏览 4 评论 0原文

我是一名网络开发人员。我不知道如何构建本机 Windows 应用程序。我最近构建了一个 Mac 桌面应用程序(使用 MacRuby),它是我的一个 Web 应用程序的 WebKit 包装器。我想对 Windows 做同样的事情(最好是在 Ruby 中,但无论是最简单的)。

由于这不是应用程序的核心,因此我不想花费大量时间来尝试构建和维护它。我只需要一个 Windows 应用程序,它可以:

  • 使用嵌入式 WebKit WebView 在应用程序启动时打开特定网站
  • 通过 JavaScript(使用某种命名桥)触发 Growl 通知

最简单、最快、最干净的方法是什么?

更新:到目前为止,我遇到过一些框架,例如 QtAwesomium。我不知道这些框架与其他可用选项相比如何,所以如果您有任何意见或建议,我将不胜感激。

I am a web developer. I don't know how to build native Windows applications. I recently built a Mac desktop application (using MacRuby) which is a WebKit wrapper around one of my web applications. I'd like to do the same thing for Windows (preferably in Ruby, but whatever is easiest).

Since this is not the core of the application, I'd rather not spend a lot of time trying to build and maintain it. I just need a Windows application that can:

  • Open a specific website on application launch using an embedded WebKit WebView
  • Trigger Growl notifications via JavaScript (with some sort of named bridge)

What is the easiest, fastest, cleanest way to do this?

Update: So far I've come across some frameworks like Qt and Awesomium. I don't know how these frameworks compare to other options available, so if you have any opinions or advice, I would appreciate it.

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

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

发布评论

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

评论(2

水中月 2025-01-11 08:47:46

看看 http://appjs.org/ 它是用 NodeJS 构建的!它的核心使用 chromium webkit :D

Check out http://appjs.org/ it's built with NodeJS at its core! And it uses chromium webkit at it's core :D

冬天的雪花 2025-01-11 08:47:46

嗯,这是一个非常古老的问题,但如果你仍然感兴趣......

我会推荐 Qt。有一些非常好的书籍提供了大量样板代码和向导类型的工具。您将能够找到演示嵌入式 Webkit 的示例代码,您可以对其进行修改以满足您的需求。它是免费的,重新分发也是免费的(我最后知道的)。您无需了解任何有关本机 Windows 开发的知识,甚至无需使用任何本机 Windows 开发工具。

祝你好运!

Well, this is a very old question, but if you are still interested...

I'd recommend Qt. There are some very good books available with a lot of boilerplate code and wizard-type tools. You will be able to find example code demonstrating the embedded Webkit that you can modify to suit your needs. It is free and redistribution is free (last I knew). You won't have to know anything about native Windows development, nor even use any native Windows dev tools.

Good luck!

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