Skip to content

Instantly share code, notes, and snippets.

@bsergean
Created December 8, 2020 06:24
Show Gist options
  • Save bsergean/adf7d54ce120577f6ed2865691ce0be0 to your computer and use it in GitHub Desktop.
Save bsergean/adf7d54ce120577f6ed2865691ce0be0 to your computer and use it in GitHub Desktop.
Making a debian package for sentry-cli, using ruby fpm
#!/usr/env/bin bash
#
# For fpm:
# apk add ruby
# apk add ruby-dev
# apk add ruby-etc
# apk add tar
#
GET_CLI=`mktemp`
curl https://sentry.io/get-cli/ > $GET_CLI
TMP_DIR_ROOT=`mktemp -d`
chmod +x $TMP_DIR_ROOT
TMP_DIR=$TMP_DIR_ROOT/usr/local/bin
mkdir -p $TMP_DIR
env INSTALL_DIR=$TMP_DIR bash -x $GET_CLI
# --log debug,info
fpm -s dir -t deb -n sentry-cli -v 1.60.1 $TMP_DIR_ROOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment