mirror of
https://github.com/Yetangitu/owncloud-apps.git
synced 2025-10-02 14:49:17 +02:00
16 lines
617 B
Bash
Executable file
16 lines
617 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# creates dist files for all updated apps
|
|
|
|
ls */appinfo/info.xml|while read f;do
|
|
app=$(echo $f|cut -d '/' -f 1)
|
|
version=$(xml2json < $f|jq -r '.info.version["$t"]')
|
|
if [ ! -f dist/${app}-${version}-OC.tar.gz ]; then
|
|
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
|
|
echo ${app} version ${version} up to date
|
|
fi
|
|
done
|