Skip to content

Commit

Permalink
feat:优化打包脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewshan committed Oct 21, 2022
1 parent f61d4a0 commit acaf0c8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,11 @@ pushd "$SCRIPTDIR/"
#java build the app.
docker run --rm -u root -v "$(pwd)":/home/maven/project -w /home/maven/project maven:3.8.1-openjdk-8-slim mvn clean package

cp "polaris-sync-server/target/polaris-sync-server-${VERSION}.jar" .
mkidr -p "polaris-sync-server-${VERSION}"

zip -r "polaris-sync-server-${VERSION}.zip" "polaris-sync-server-${VERSION}.jar" conf/
cp "polaris-sync-server/target/polaris-sync-server-${VERSION}.jar" "./polaris-sync-server-${VERSION}/"
mv ./conf "./polaris-sync-server-${VERSION}/"

zip -r "polaris-sync-server-${VERSION}.zip" "polaris-sync-server-${VERSION}/"

popd

0 comments on commit acaf0c8

Please sign in to comment.