Created
December 8, 2020 06:24
-
-
Save bsergean/adf7d54ce120577f6ed2865691ce0be0 to your computer and use it in GitHub Desktop.
Making a debian package for sentry-cli, using ruby fpm
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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