You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
565 B

  1. #!/bin/bash
  2. #Move out of the build folder
  3. cd ../..
  4. #Getting variables that are produced by the script
  5. VERSION=$(head -1 ./version.info)
  6. NAME=$(head -1 ./name.info)
  7. PACKAGENAME=$NAME-$VERSION
  8. PACKAGETAR=$PACKAGENAME.tar.gz
  9. PACKAGEZIP=$PACKAGENAME.zip
  10. TARGET=$PWD/target
  11. #Packaging Jar Distributable
  12. cd target/release/
  13. echo "creating $PACKAGETAR in $TARGET"
  14. tar -zcvf $TARGET/$PACKAGETAR .
  15. echo "creating $PACKAGEZIP in $TARGET"
  16. zip -r $TARGET/$PACKAGEZIP ./*
  17. #Removing prebuilt jar in target
  18. rm $TARGET/*.jar
  19. #Copying Jar to target for archiving
  20. cp ./*.jar $TARGET