add repackage script and add repackage test into ci #43