Windows Host Setup

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

Windows Host Setup

These instructions have been tested on Windows 8 Enterprise, 64 bit. This should work also in regular Home versions of Windows as well as the newer Windows 10.

The steps below will enable you to develop Crosswalk applications that run on Windows.

  1. Install Node.js
  2. Install WiX Toolset
  3. Install crosswalk-app-tools
  4. Verify your environment

Install Node.js

  1. Download Node.js from https://nodejs.org/en/.
  2. When the installer starts, make sure to add Node.js in the PATH as shown below:

这里写图片描述

Install WiX Toolset

  1. Download WiX Toolset: http://wixtoolset.org/
  2. Install WiX Toolset.
  3. Add the Wix Toolset in your PATH. Edit environment variables for your account. In the Windows Start menu, search for “Environment variables”. Alternatively, click on the System icon in the Control Panel; then go to Advanced system settings and click the Environment Variables button. You should see this dialog box:

这里写图片描述

Edit the Path environment variable as follows:

  1. Select the Path environment variable (in the top select box, User variables…). If it does not exist, add it.
  2. Click Edit.
  3. In the Variable value field, add the path to the executable for each of the installed tools, separated with “;”. For this example, we added the following at the end of the Path variable:
    ;C:\Program Files (x86)\WiX Toolset v3.10\bin
  4. Click OK.

The same task can be done on the command-line (note the quotes “”):

> setx path "%path%;C:\Program Files (x86)\WiX Toolset v3.10\bin"

Install crosswalk-app-tools

Crosswalk-app-tools is a simple, NPM-based tool to create installable packages of your Crosswalk application.

Type the following inside a command shell (using cmd.exe for example):

> npm install -g crosswalk-app-tools

Note: If you are developing behind a proxy, see this page

Verify your environment

Check that you have installed the tools properly by running these commands:

> crosswalk-app check windows
  + Checking host setup for target windows
  + Checking for candle... ...ram Files (x86)\WiX Toolset v3.10\bin\candle.exe
  + Checking for light... ...ogram Files (x86)\WiX Toolset v3.10\bin\light.exe

Congratulations, your system is ready for Windows development with Crosswalk.

Now the host is set up, you can build a Crosswalk application.

What’s next?

Build an application

### 现代主机设置配置指南 对于现代主机的设置与配置,理解基础概念和技术栈的选择至关重要。针对不同的应用场景,如Web服务器部署、数据库管理或是嵌入式系统的开发板配置,具体的配置过程会有所不同。 #### Web应用环境下的主机配置 在构建基于Python的应用程序时,推荐使用`pip`作为包管理工具来安装依赖项[^2]。通过命令行执行如下操作可以创建一个虚拟环境并激活它: ```bash python3 -m venv myenv source myenv/bin/activate # Linux or macOS myenv\Scripts\activate # Windows ``` 接着利用`pip install package_name`的形式安装所需的库或框架。 #### 数据库服务端口开放与安全组规则设定 当涉及到云平台上的实例配置时,确保正确设置了防火墙的安全组规则以允许必要的通信协议和端口号非常重要。例如,在AWS EC2上运行MySQL数据库,则需打开默认使用的TCP 3306端口给特定IP地址访问权限。 #### 嵌入式系统中的硬件抽象层定义 如果目标是在像树莓派这样的小型计算机或者是Arduino兼容设备上工作的话,那么就需要关注如何适配底层硬件接口了。比如Marlin固件项目里提到过要依据实际使用的控制板型号修改对应的宏定义[^4]: ```cpp #ifndef MOTHERBOARD #define MOTHERBOARD BOARD_CREALITY_F107 #endif ``` 这段代码片段展示了怎样指定一块支持RepRap 3D打印机项目的主板类型。 #### 远程连接机制建立 为了实现远程管理和自动化运维任务,通常还会涉及SSH密钥认证方式以及AMQP/RabbitMQ这类消息队列中间件的服务搭建。这里给出一段简单的Java代码用来展示如何初始化一个带有异常处理功能的消息生产者客户端对象[^5]: ```java ConnectionFactory factory = new ConnectionFactory(); factory.setExceptionHandler(customHandler); ``` 以上就是关于现代主机设置的一些基本指导原则;具体实施细节取决于所处的技术领域和个人需求偏好等因素的影响。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值