update compile script to build static file