Update build.js

Support both Debug and Release