Put compiled coffee sources into asar archive

This commit is contained in:
Cheng Zhao 2015-02-13 13:05:51 +08:00
parent 0b8efc434d
commit 0f15dd04af
3 changed files with 78 additions and 31 deletions

View file

@ -169,7 +169,7 @@ node::Environment* NodeBindings::CreateEnvironment(
exec_path.DirName().Append(FILE_PATH_LITERAL("resources"));
#endif
base::FilePath script_path =
resources_path.Append(FILE_PATH_LITERAL("atom"))
resources_path.Append(FILE_PATH_LITERAL("atom.asar"))
.Append(is_browser_ ? FILE_PATH_LITERAL("browser") :
FILE_PATH_LITERAL("renderer"))
.Append(FILE_PATH_LITERAL("lib"))