Run a Crosswalk App on Windows Run a packaged Crosswalk application

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

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、付费专栏及课程。

余额充值