Skip to content

Instantly share code, notes, and snippets.

@stableShip
Created July 1, 2016 01:22
Show Gist options
  • Save stableShip/b9c0e11468a1bc63b9dfefb24c626db7 to your computer and use it in GitHub Desktop.
Save stableShip/b9c0e11468a1bc63b9dfefb24c626db7 to your computer and use it in GitHub Desktop.
egret 启用特定版本
## 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