Created
July 1, 2016 01:22
-
-
Save stableShip/b9c0e11468a1bc63b9dfefb24c626db7 to your computer and use it in GitHub Desktop.
egret 启用特定版本
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## egret 启用特定版本 | |
最新方法,在项目文件夹通过npm安装一个局部的egret | |
npm init | |
npm install https://github.com/egret-labs/egret-core/archive/v1.7.3.tar.gz --save | |
并在项目内新建一个文件egret.cmd | |
内容如下 | |
@IF EXIST "%~dp0\node.exe" ( | |
"%~dp0\node.exe" | |
"%~dp0\node_modules\egret\tools\bin\egret" %* | |
) ELSE ( | |
@SETLOCAL @SET PATHEXT=%PATHEXT:;.JS;=;% | |
node "%~dp0\node_modules\egret\tools\bin\egret" %* | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment