fix tree,tree-menu bug;add tree build scripts

fix tree,tree-menu bug;add tree build scripts