From 0f75b2a46118c748818936f5db3c6f31649a0dc1 Mon Sep 17 00:00:00 2001 From: Octavian Geagla Date: Wed, 7 Feb 2024 09:17:28 -0700 Subject: [PATCH] release script --- bin/release_jar_with_checksum.sh | 23 ++++++++++++++++++++++ run_with_theme.sh => bin/run_with_theme.sh | 1 + 2 files changed, 24 insertions(+) create mode 100755 bin/release_jar_with_checksum.sh rename run_with_theme.sh => bin/run_with_theme.sh (97%) diff --git a/bin/release_jar_with_checksum.sh b/bin/release_jar_with_checksum.sh new file mode 100755 index 0000000..ef17024 --- /dev/null +++ b/bin/release_jar_with_checksum.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash +set -e + +mkdir -p releases +rm -rf releases/*.zip +rm -rf releases/*.jar + +lein uberjar + + +cp target/uberjar/closyr-0.1.0-SNAPSHOT-standalone.jar releases/closyr-0.1.0-SNAPSHOT-standalone.jar +zip --junk-paths releases/closyr-0.1.0-SNAPSHOT-standalone.jar.zip releases/closyr-0.1.0-SNAPSHOT-standalone.jar + +shasum -a 256 releases/closyr-0.1.0-SNAPSHOT-standalone.jar | cut -d " " -f 1 > releases/closyr-0.1.0-SNAPSHOT-standalone.jar.shasum256.txt +shasum -a 256 releases/closyr-0.1.0-SNAPSHOT-standalone.jar.zip | cut -d " " -f 1 > releases/closyr-0.1.0-SNAPSHOT-standalone.jar.zip.shasum256.txt + +echo "JAR SHA256:" +cat releases/closyr-0.1.0-SNAPSHOT-standalone.jar.shasum256.txt + +echo "JAR ZIP SHA256:" +cat releases/closyr-0.1.0-SNAPSHOT-standalone.jar.zip.shasum256.txt + +echo "Done, check release folder" diff --git a/run_with_theme.sh b/bin/run_with_theme.sh similarity index 97% rename from run_with_theme.sh rename to bin/run_with_theme.sh index 89bb3f0..82e6e7b 100755 --- a/run_with_theme.sh +++ b/bin/run_with_theme.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +set -e export _JAVA_OPTIONS="$_JAVA_OPTIONS \ -Dawt.useSystemAAFontSettings=on \