【发布时间】:2013-01-25 16:03:21
【问题描述】:
我尝试在 FlashDevelop 中使用自定义构建运行一个项目:
$(CompilerPath)\haxe.exe $(ProjectDir)\compile-js.hxml
,但我收到此错误:
'cp' 未被识别为内部或外部命令,
这里是compile-js.hxml文件,有什么办法解决这个问题吗?
编译-js.hxml
#sources
-main Cocktail
-cp ../../src/
-cp src
#binary
-js bin/js/Main.js
--macro Cocktail.create('src/index.html','Main')
#copy assets directory
-cmd cp -R assets bin\js\
【问题讨论】:
-
它对我有用,我从这个-->
"cp ./data/orig-db.json ./data/db.json && json-server --watch ./data/db.json"到这个-->"copy .\\data\\orig-db.json .\\data\\db.json && json-server --watch .\\data\\db.json"
标签: flashdevelop haxe nme