Run a Crosswalk App on Windows Run a packaged Crosswalk application

本文介绍如何在Windows上运行使用Crosswalk构建的应用程序。包括直接双击安装文件启动应用程序的方法,以及如何通过命令行快速迭代调试,无需每次都打包安装。还介绍了如何设置本地Web服务器供Crosswalk加载,并提供了两种不同的运行方式。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

原文访问实在太慢,转载到这里方便访问。

Run a Crosswalk App on Windows

Run a packaged Crosswalk application

  1. Double-click on the .msi produced following the build an application section and follow the installation instructions.

  2. After the installation succeeds you will see your application in the start menu. Double-click it to launch it.

Note : Each Crosswalk-built .msi contains its own copy of the Crosswalk runtime, it is not shared between installed Crosswalk based applications.

Run using the Crosswalk binary directly

If you want faster code -> test -> debug cycles you can run Crosswalk for Windows from the command line. This enables you to test your code changes without creating an .msi every time.

  1. Download and unzip Crosswalk for Windows from https://download.01.org/crosswalk/releases/crosswalk/windows/

  2. Open a console (cmd.exe)

  3. Navigate to your project index.html

  4. Run the python script below. This creates a local webserver that Crosswalk uses. We do not support loading from the filesystem.

> python -m SimpleHTTPServer 8000;
  1. In another console, navigate to where Crosswalk for Windows was unzipped and run:
> xwalk.exe http://localhost:8000

Your index.html should load.

Alternatively you can also call :

> xwalk.exe "C:\Users\path\to\my\crosswalk\app\manifest.json"

This will not use the local webserver to serve the files of your application but rather will read the manifest.

What’s next?

Web Inspector Debugging

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值