Skip to content

Commit

Permalink
Instalador en proceso
Browse files Browse the repository at this point in the history
  • Loading branch information
gmorales254 committed Mar 26, 2022
1 parent 3ed9a2b commit 5de0838
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion installCRMLite.sh
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
echo "prueba"
TOKEN="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"
REPO="gmorales254/CRMLite-Manager"
GITHUB="https://api.github.com"
CRMLITEVERSION=`curl -sL -H "Authorization: token $TOKEN" -H "Accept: application/vnd.github.v3.raw" https://api.github.com/repos/$REPO/releases/latest | grep "tag_name" | cut -d : -f 2,3 | tr -d \" | tr -d , | tr -d " "`
asset_id=`curl -s $GITHUB/repos/$REPO/releases -H "Authorization: token $TOKEN" -H "Accept: application/vnd.github.v3.raw" | jq ".[0].assets | map(select(.name == \"CRMLiteManager$CRMLITEVERSION.zip\"))[0].id"`
cd /tmp/
curl -fkSL# -o CRMLiteManager$CRMLITEVERSION.zip -H "Authorization: token $TOKEN" -H "Accept:application/octet-stream" $GITHUB/repos/$REPO/releases/assets/$asset_id
echo "Archivo descargado: CRMLiteManager$CRMLITEVERSION.zip"
unzip CRMLiteManager$CRMLITEVERSION.zip
printf '########################\n ## Archivo descomprimido, carpeta: CRMLiteManager ##\n'

0 comments on commit 5de0838

Please sign in to comment.