Skip to content

Commit

Permalink
Update release scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcel Steinbeck committed Mar 22, 2022
1 parent d7a2560 commit 38fd995
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 12 deletions.
22 changes: 10 additions & 12 deletions tools/release/maven.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,18 @@ set -e

SCRIPT_DIR=$( cd "$(dirname "$0")"; pwd -P)
TMP_DIR="${SCRIPT_DIR}/maven"
ZIP_NAME="tinyspline-java.zip"
ZIP_FILE="${SCRIPT_DIR}/${ZIP_NAME}"
ZIP_FILE="${SCRIPT_DIR}/tinyspline/tinyspline-java.zip"
SIGNED_ZIP_FILE="${SCRIPT_DIR}/tinyspline-java-signed.zip"
URL="https://github.com/msteinbeck/tinyspline/releases/download/snapshot/${ZIP_NAME}"

wget -O "${ZIP_FILE}" "${URL}"
unzip -d "${TMP_DIR}" -o "${ZIP_FILE}"
pushd "${TMP_DIR}"
for file in *
do
gpg2 --no-tty \
--local-user 06B668EB \
--detach-sign \
--output "${file}.asc" "${file}"
done
zip -r "${SIGNED_ZIP_FILE}" *
for file in *
do
gpg2 --no-tty \
--local-user 1BA70C7A62392ED9372845302DBCE0097DC4D259 \
--detach-sign \
--output "${file}.asc" "${file}"
done
zip -r "${SIGNED_ZIP_FILE}" *
popd
rm -r ${TMP_DIR}
12 changes: 12 additions & 0 deletions tools/release/pypi.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh
set -e

SCRIPT_DIR=$( cd "$(dirname "$0")"; pwd -P)
TMP_DIR="${SCRIPT_DIR}/pypi"
WHL_DIR="${SCRIPT_DIR}/tinyspline"

mkdir -p ${TMP_DIR}
for file in ${WHL_DIR}/*.whl; do
BASENAME=$( basename "${file}" )
cp "${file}" "${TMP_DIR}/${BASENAME/linux/manylinux2010}"
done

0 comments on commit 38fd995

Please sign in to comment.