2
0
mirror of https://gitlab.com/Nanolx/NanoDroid synced 2024-10-31 09:20:23 +00:00
NanoDroid/data/build-package.pkg-fdroid
Christopher Roy Bratusek e904d06788 update build-package
2018-04-10 19:59:36 +02:00

34 lines
620 B
Bash

#!/bin/bash
create_fdroid_package() {
[[ ! -f "${CWD}/.nanodroid-pull" ]] && \
error "run \"build-package pull\" first!"
ZIP="${CWD}/NanoDroid-fdroid-${VERSION}".zip
rm -f "${ZIP}"
print_package "F-Droid"
cd "${CWD}/Full"
zip_add "system/app/FDroid/"
zip_add "system/priv-app/FDroidPrivileged/"
zip_add "system/etc/permissions/org.fdroid.fdroid.privileged.xml"
zip_add "system/xbin/unzip*"
cd "${CWD}"
cd "${CWD}/F-Droid"
zip_add
cd "${CWD}"
zip_add CommonInstaller
zip_add CommonAddon
zip_add_doc
zip_add_config .nanodroid-setup 0
}
mk_pkg_fdroid () {
create_fdroid_package &
progress $!
}