#!/bin/bash set -e # Don't inherit the -x from the testsuite set +x DIR=`mktemp -d` REPO=$1 shift APP_ID=$1 shift BRANCH=$1 shift COLLECTION_ID=$1 shift if [ x$APP_ID = x ]; then APP_ID=org.test.Hello fi RUNTIME_BRANCH=${RUNTIME_BRANCH:-$BRANCH} EXTRA="${1-}" ARCH=`flatpak --default-arch` # Init dir cat > ${DIR}/metadata <> ${DIR}/metadata <> ${DIR}/metadata <> ${DIR}/metadata <> ${DIR}/metadata <> ${DIR}/metadata < ${DIR}/files/bin/hello.sh < ${DIR}/files/share/applications/org.test.Hello.desktop < ${DIR}/files/share/applications/org.test.Hello.Again.desktop < ${DIR}/files/share/gnome-shell/search-providers/org.test.Hello.search-provider.ini < ${DIR}/files/share/app-info/xmls/${APP_ID}.xml.gz < $APP_ID.desktop Hello world test app: $APP_ID Print a greeting

This is a test app.

Utility 64x64/org.gnome.gedit.png
EOF cp $(dirname $0)/org.test.Hello.png ${DIR}/files/share/app-info/icons/flatpak/64x64/${APP_ID}.png if [ x$COLLECTION_ID != x ]; then collection_args=--collection-id=${COLLECTION_ID} else collection_args= fi mkdir -p ${DIR}/files/share/locale mkdir -p ${DIR}/files/share/runtime/locale/de ln -s -t ${DIR}/files/share/locale ../../share/runtime/locale/de/share/de mkdir -p ${DIR}/files/share/runtime/locale/fr ln -s -t ${DIR}/files/share/locale ../../share/runtime/locale/fr/share/fr flatpak build-finish ${BUILD_FINISH_ARGS-} --command=hello.sh ${DIR} mkdir -p repos flatpak build-export --no-update-summary --disable-sandbox ${collection_args} ${GPGARGS-} ${EXPORT_ARGS-} ${REPO} ${DIR} ${BRANCH} rm -rf ${DIR} # build a locale extension DIR=`mktemp -d` # Init dir cat > ${DIR}/metadata < de.po < fr.po < ${DIR}/metadata <