diff options
| author | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-08-25 12:33:03 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <git@r.bdr.sh> | 2025-08-25 12:33:03 +0200 |
| commit | 8ff1162897acc9a393f41edf9faf5593d6c66995 (patch) | |
| tree | b93e52d0b0c36a84b29fe0e5dde3d7401ec130eb /scripts | |
| parent | 3ec8e14833b55d6bff4cf5702f90e1bb9a1b1e40 (diff) | |
Replace JS with rust
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/sign.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/sign.sh b/scripts/sign.sh new file mode 100755 index 0000000..b3bfe47 --- /dev/null +++ b/scripts/sign.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +set +x +if [ $# -ne 3 ]; then + echo "Usage: $0 <file> <channel> <architecture>" + exit 1 +fi + +FILE="$1" +VERSION="$2" +PLATFORM="$3" +COMMENT="Version: ${VERSION}, File: $(basename ${FILE}) Built on: $(date +'%Y-%m-%d %H:%M'), Platform: ${PLATFORM}" + +if [ -f ~/.minisign/minisign.pass ]; then + cat ~/.minisign/minisign.pass | minisign -Sm "${FILE}" -t "${COMMENT}" +else + minisign -Sm "${FILE}" -t "${COMMENT}" +fi |