@@ -326,7 +326,7 @@ def compile_scripts(self, src_dir, dst_dir):
326326 cocos_cmd_path = os .path .join (os .path .dirname (os .path .abspath (sys .argv [0 ])), "cocos" )
327327 if self ._project ._is_lua_project ():
328328 rm_ext = ".lua"
329- compile_cmd = "%s luacompile -s \" %s\" -d \" %s\" " % (cocos_cmd_path , src_dir , dst_dir )
329+ compile_cmd = "\" %s \" luacompile -s \" %s\" -d \" %s\" " % (cocos_cmd_path , src_dir , dst_dir )
330330 if self ._lua_encrypt :
331331 add_para = ""
332332 if self ._lua_encrypt_key is not None :
@@ -338,7 +338,7 @@ def compile_scripts(self, src_dir, dst_dir):
338338 compile_cmd = "%s -e %s" % (compile_cmd , add_para )
339339 elif self ._project ._is_js_project ():
340340 rm_ext = ".js"
341- compile_cmd = "%s jscompile -s \" %s\" -d \" %s\" " % (cocos_cmd_path , src_dir , dst_dir )
341+ compile_cmd = "\" %s \" jscompile -s \" %s\" -d \" %s\" " % (cocos_cmd_path , src_dir , dst_dir )
342342
343343 # run compile command
344344 self ._run_cmd (compile_cmd )
@@ -584,7 +584,7 @@ def build_ios(self):
584584 "%s" % "-arch i386" if self .use_sdk == 'iphonesimulator' else '' ,
585585 "-sdk" ,
586586 "%s" % self .use_sdk ,
587- "CONFIGURATION_BUILD_DIR=%s " % (output_dir ),
587+ "CONFIGURATION_BUILD_DIR=\" %s \" " % (output_dir ),
588588 "%s" % "VALID_ARCHS=\" i386\" " if self .use_sdk == 'iphonesimulator' else ''
589589 ])
590590
@@ -706,7 +706,7 @@ def build_mac(self):
706706 "%s" % 'Debug' if self ._mode == 'debug' else 'Release' ,
707707 "-target" ,
708708 "\" %s\" " % targetName ,
709- "CONFIGURATION_BUILD_DIR=%s " % (output_dir )
709+ "CONFIGURATION_BUILD_DIR=\" %s \" " % (output_dir )
710710 ])
711711
712712 self ._run_cmd (command )
0 commit comments