pegh is a file encryption tool using passwords with modern, standardized, and authenticated encryption.
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.

35 lines
763 B

2 years ago
2 years ago
2 years ago
  1. #!/bin/sh
  2. DOCKER_IMAGE="$1"
  3. shift
  4. ARCH="$1"
  5. BUILD_DIR=/tmp/static/
  6. rm -rf "$BUILD_DIR"
  7. mkdir -p "$BUILD_DIR"
  8. cp * .ci/build.sh "$BUILD_DIR"
  9. docker run --rm -v "$BUILD_DIR":/tmp "$DOCKER_IMAGE" /tmp/build.sh "$ARCH" || exit 1
  10. mv "$BUILD_DIR"pegh.static.openssl "./pegh-linux-$ARCH-openssl"
  11. mv "$BUILD_DIR"pegh.static.libsodium "./pegh-linux-$ARCH-libsodium"
  12. mv "$BUILD_DIR"pegh.static.libsodium-openssl "./pegh-linux-$ARCH-libsodium-openssl"
  13. mv "$BUILD_DIR"pegh-*.exe ./
  14. sha256sum pegh-* > pegh-$ARCH-sha256sum.txt
  15. if [ "$ARCH" == "amd64" ]
  16. then
  17. git archive HEAD -9 --format zip -o pegh-source.zip
  18. git archive HEAD -9 --format tar.gz -o pegh-source.tar.gz
  19. sha256sum pegh-source.* > pegh-source-sha256sum.txt
  20. fi
  21. rm -rf "$BUILD_DIR" 2>/dev/null
  22. exit 0