1
0
Fork 0
mirror of https://github.com/Yetangitu/owncloud-apps.git synced 2025-10-02 14:49:17 +02:00

- modified dist.sh to create separate dist files for OC and NC due to

signature incompatibilities between the two.
 - added dist/*.sig to .gitignore
This commit is contained in:
frankdelange 2018-01-21 22:52:11 +01:00
parent 2b4a866ae7
commit c25ad42ad1
2 changed files with 6 additions and 2 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
.idea .idea
dist/*.sig

View file

@ -5,8 +5,11 @@
ls */appinfo/info.xml|while read f;do ls */appinfo/info.xml|while read f;do
app=$(echo $f|cut -d '/' -f 1) app=$(echo $f|cut -d '/' -f 1)
version=$(xml2json < $f|jq -r '.info.version["$t"]') version=$(xml2json < $f|jq -r '.info.version["$t"]')
if [ ! -f dist/${app}-${version}.tar.gz ]; then if [ ! -f dist/${app}-${version}-OC.tar.gz ]; then
find ${app} -type f -print0|tar cvzf dist/${app}-${version}.tar.gz --null -T - find ${app} -type f -print0|tar --exclude=${app}/appinfo/signature.json -cvzf dist/${app}-${version}-NC.tar.gz --null -T -
nextcloud_sign_package ${app} ${version} > dist/${app}-${version}-NC.sig
owncloud_sign_package ${app}
find ${app} -type f -print0|tar cvzf dist/${app}-${version}-OC.tar.gz --null -T -
else else
echo ${app} version ${version} up to date echo ${app} version ${version} up to date
fi fi