diff --git a/winbuild/mk.py b/winbuild/mk.py index 3e23960..6128874 100644 --- a/winbuild/mk.py +++ b/winbuild/mk.py @@ -214,9 +214,9 @@ def artifacts(): # Utility function to upload() function. def do_upload(filename,token): - exec('echo _ >> upload.txt') - exec('curl --request POST --header \"PRIVATE-TOKEN: {}\" --form \"file=@{}\" \"https://gitlab.com/api/v4/projects/13852981/uploads\" >> upload.txt'.format(token,filename),False) - exec('echo _ >> upload.txt') + exec('curl --request POST --header \"PRIVATE-TOKEN: {}\" --form \"file=@{}\" \"https://gitlab.com/api/v4/projects/13852981/uploads\" > tmp.json'.format(token,filename), False) + exec('echo $(cat tmp.json | jq .alt | cut -c 2- | sed \'s/.$//\') \'--->\' https://gitlab.com$(cat tmp.json | jq .full_path | cut -c 2- | sed \'s/.$//\') ') + exec('echo "" && rm -f tmp.json') def upload(token): diff --git a/winbuild/version b/winbuild/version index 31977ed..0762746 100644 --- a/winbuild/version +++ b/winbuild/version @@ -1 +1 @@ -107.0 +107.0.1