cli/scripts/build-package.sh
Tyler e618577ad9
Some checks failed
continuous-integration/drone/push Build is failing
Use goc to build multiple versions at once, add openbsd/freebsd
2021-12-31 20:12:56 -05:00

21 lines
746 B
Bash

PACKAGE_ARCH="$ARCH"
if [ "$PACKAGE_ARCH" = "arm" ]; then
PACKAGE_ARCH="armhf"
elif [ "$PACKAGE_ARCH" = "386" ]; then
PACKAGE_ARCH="i386"
fi
fpm -s dir -t deb -p /build/pastee_${DRONE_TAG}_${ARCH}.deb \
-n pastee -v $DRONE_SEMVER -a $PACKAGE_ARCH \
--deb-priority optional --force \
--deb-compression gz --verbose \
--description "Paste.ee CLI Tool" \
-m "Paste.ee <admin@paste.ee>" --vendor "Paste.ee" \
/build/pastee_linux_${ARCH}=/usr/bin/pastee
fpm -s dir -t rpm -p /build/pastee_${DRONE_TAG}_${ARCH}.rpm \
-n pastee -v $DRONE_SEMVER -a $PACKAGE_ARCH \
--description "Paste.ee CLI Tool" --verbose \
-m "Paste.ee <admin@paste.ee>" --vendor "Paste.ee" \
/build/pastee_linux_${ARCH}=/usr/bin/pastee