Update build script to include share functions