Commit 4b32ad82 authored by Benoit Lavenier's avatar Benoit Lavenier

fix github deployment, and install.sh script

parent 16630f35
......@@ -48,10 +48,9 @@ case "$1" in
echo "Creating new release..."
result=`curl -i https://api.github.com/repos/duniter-gchange/gchange-client/releases -u $2 -d '{"tag_name": "v'"$current"'","target_commitish": "master","name": "'"$current"'","body": "'"$3"'","draft": false,"prerelease": '"$prerelease"'}'`
upload_url=`echo "$result" | grep -P "\"upload_url\": \"[^\"]+" | grep -oP "https://[a-z0-9/.]+"`
upload_url=`echo "$result" | grep -P "\"upload_url\": \"[^\"]+" | grep -oP "https://[a-z0-9/.-]+"`
### Sending files
echo "Uploading files to GitHub..."
echo "Uploading files to GitHub... to $upload_url"
dirname=`pwd`
curl -i -u $2 -H 'Content-Type: application/zip' -T $dirname/platforms/web/build/gchange-web-$current.zip $upload_url?name=gchange-v$current-web.zip
#curl -i -u $2 -H 'Content-Type: application/zip' -T $dirname/platforms/firefoxos/build/package.zip $upload_url?name=gchange-v$current-firefoxos.zip
......
......@@ -19,7 +19,7 @@ latest_version() {
}
api_release_url() {
echo "https://api.github.com/repos/duniter-change/duniter-client/releases/tags/$(latest_version)"
echo "https://api.github.com/repos/duniter-gchange/gchange-client/releases/tags/$(latest_version)"
}
download() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment