Skip to content

Commit

Permalink
fix #212 key for deb users
Browse files Browse the repository at this point in the history
  • Loading branch information
firm1 committed Sep 19, 2016
1 parent f624f42 commit b48df9f
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ script:

after_success:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./gradlew jacocoTestReport coveralls; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then scripts/upload_deb.sh $BINTRAY_KEY ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then scripts/upload_rpm.sh $BINTRAY_KEY ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then scripts/upload_jar.sh $BINTRAY_KEY ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then scripts/upload_deb.sh $BINTRAY_KEY $PASSGPG ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then scripts/upload_rpm.sh $BINTRAY_KEY $PASSGPG ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then scripts/upload_jar.sh $BINTRAY_KEY $PASSGPG ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then scripts/upload_dmg.sh $BINTRAY_KEY ; fi

9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ Les instructions se trouvent sur [ce post](https://zestedesavoir.com/forums/suje

#### Ubuntu, Debian, etc.

1. Ouvrez un terminal et lancez la commande : `echo "deb https://dl.bintray.com/firm1/deb wheezy main" | sudo tee -a /etc/apt/sources.list.d/zestwriter.list`.
2. mettez à jour vos dépôts via la commande : `sudo apt-get update`.
3. installez Zest Writer via la commande : `sudo apt-get install zestwriter`.
*Pour une mise à jour passez directement à l'étape 3*.

1. Importez la clé GPG bintray de via la commande : `sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 379CE192D401AB61`
2. Ajouter une nouvelle source via la commande : `echo "deb https://dl.bintray.com/firm1/deb wheezy main" | sudo tee -a /etc/apt/sources.list.d/zestwriter.list`.
3. mettez à jour vos dépôts via la commande : `sudo apt-get update`.
4. installez Zest Writer via la commande : `sudo apt-get install zestwriter`.

#### Fedora, ArchLinux, CentOs, etc.

Expand Down
4 changes: 4 additions & 0 deletions scripts/upload_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ VERSION=`cat gradle.properties | grep "version" | cut -d "=" -f2`
echo "Upload du fichier $DEBFILE ..."

curl -T "$DEBFILE" -u "firm1:$APIKEY" "https://api.bintray.com/content/firm1/deb/zest-writer/$VERSION/$DEBFILE;deb_distribution=wheezy;deb_component=main;deb_architecture=i386,amd64"

echo "Sign"

curl -u "firm1:$APIKEY" -X POST "https://api.bintray.com/calc_metadata/firm1/deb"
4 changes: 4 additions & 0 deletions scripts/upload_jar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,7 @@ VERSION=`cat gradle.properties | grep "version" | cut -d "=" -f2`
echo "Upload du fichier $DEBFILE ..."

curl -T "$DEBFILE" -u "firm1:$APIKEY" "https://api.bintray.com/content/firm1/maven/zest-writer/$VERSION/$DEBFILE"

echo "Sign"

curl -u "firm1:$APIKEY" -X POST "https://api.bintray.com/calc_metadata/firm1/maven/build/libs"
5 changes: 4 additions & 1 deletion scripts/upload_rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ if [ -z "$1" ]
exit 1
fi


RPMFILE=`ls build/distributions/*.rpm`
APIKEY=$1
VERSION=`cat gradle.properties | grep "version" | cut -d "=" -f2`

echo "Upload du fichier $DEBFILE ..."

curl -T "$RPMFILE" -u "firm1:$APIKEY" "https://api.bintray.com/content/firm1/rpm/zest-writer/$VERSION/$RPMFILE"

echo "Sign"

curl -u "firm1:$APIKEY" -X POST "https://api.bintray.com/calc_metadata/firm1/rpm"

0 comments on commit b48df9f

Please sign in to comment.