Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 946f6a18 authored by ADILI Robin's avatar ADILI Robin
Browse files

windows zip archive format

parent fe036183
Branches buildall
No related tags found
No related merge requests found
......@@ -4,8 +4,16 @@ projectid=18692
for a in $(ls -1d fbxsdkpy*/)
do
if echo $a|grep win
then
# windows
archive=${a//\//}.zip
zip -r ${archive} ${a}
else
# linux
archive=${a//\//}.tar.gz
tar -cvf ${archive} ${a}
path=$(curl --request POST --header "PRIVATE-TOKEN: $GITLAB_TOKEN" --form "file=@${archive}" "https://gitlab.inria.fr/api/v4/projects/${projectid}/uploads"|jq '.full_path')
echo "https://gitlab.inria.fr${path//\"/}" >> links
fi
path=$(curl --request POST --header "PRIVATE-TOKEN: $GITLAB_TOKEN" --form "file=@${archive}" "https://gitlab.inria.fr/api/v4/projects/${projectid}/uploads"|jq '.full_path')
echo "https://gitlab.inria.fr${path//\"/}" >> links
done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment