cli/scripts/build-package.sh

21 lines
746 B
Bash
Raw Permalink Normal View History

PACKAGE_ARCH="$ARCH"
if [ "$PACKAGE_ARCH" = "arm" ]; then
PACKAGE_ARCH="armhf"
elif [ "$PACKAGE_ARCH" = "386" ]; then
PACKAGE_ARCH="i386"
fi
2021-03-27 04:54:08 +00:00
fpm -s dir -t deb -p /build/pastee_${DRONE_TAG}_${ARCH}.deb \
-n pastee -v $DRONE_SEMVER -a $PACKAGE_ARCH \
2021-03-27 04:54:08 +00:00
--deb-priority optional --force \
--deb-compression gz --verbose \
2021-03-27 04:54:08 +00:00
--description "Paste.ee CLI Tool" \
-m "Paste.ee <admin@paste.ee>" --vendor "Paste.ee" \
/build/pastee_linux_${ARCH}=/usr/bin/pastee
2021-03-27 04:54:08 +00:00
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 \
2021-03-27 04:54:08 +00:00
-m "Paste.ee <admin@paste.ee>" --vendor "Paste.ee" \
/build/pastee_linux_${ARCH}=/usr/bin/pastee