mirror of
https://github.com/Jamesits/pve-fake-subscription
synced 2024-08-30 16:52:18 +00:00
17 lines
301 B
Bash
Executable File
17 lines
301 B
Bash
Executable File
#!/bin/bash
|
|
set -Eeuo pipefail
|
|
cd "$( dirname "${BASH_SOURCE[0]}" )" || exit 1
|
|
|
|
OUT_DIR="out"
|
|
|
|
rm -rf "${OUT_DIR}"
|
|
mkdir -p "${OUT_DIR}"
|
|
|
|
# build package
|
|
nfpm pkg --packager deb --target "${OUT_DIR}"
|
|
|
|
# generate checksum
|
|
pushd "${OUT_DIR}" >/dev/null
|
|
sha256sum -b -- * > sha256sum.txt
|
|
popd >/dev/null
|