2018-01-23 20:11:52 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
create_microg_package() {
|
|
|
|
[[ ! -f "${CWD}/.nanodroid-pull" ]] && \
|
|
|
|
error "run \"build-package pull\" first!"
|
|
|
|
|
|
|
|
ZIP="${CWD}/NanoDroid-microG-${VERSION}".zip
|
|
|
|
rm -f "${ZIP}"
|
|
|
|
|
|
|
|
print_package "microG"
|
|
|
|
|
|
|
|
cd "${CWD}/Full"
|
|
|
|
|
2018-04-02 16:59:52 +00:00
|
|
|
for app in GsfProxy nlpBackendDejavu nlpBackendIchnaea nlpBackendNominatim; do
|
2018-01-23 20:11:52 +00:00
|
|
|
zip_add "system/app/${app}/"
|
|
|
|
done
|
|
|
|
|
2018-04-02 16:59:52 +00:00
|
|
|
for app in DroidGuard FakeStore GmsCore Phonesky YalpStore; do
|
2018-01-23 20:11:52 +00:00
|
|
|
zip_add "system/priv-app/${app}/"
|
|
|
|
done
|
|
|
|
|
2018-03-28 22:12:19 +00:00
|
|
|
for input in "system/xbin/nanodroid*" "system/xbin/novl" \
|
|
|
|
"system/xbin/npem" "system/xbin/nprp" "system/xbin/nupd" \
|
2018-04-22 09:48:09 +00:00
|
|
|
"system/xbin/nutl" "system/xbin/unzip*" "system/framework/" \
|
2018-04-20 18:15:40 +00:00
|
|
|
"gsync/" "system/etc/permissions/" "system/etc/sysconfig/" \
|
2018-03-15 19:57:53 +00:00
|
|
|
"system/etc/default-permissions/" "swipe/"; do
|
2018-01-23 20:11:52 +00:00
|
|
|
zip_add "${input}"
|
|
|
|
done
|
|
|
|
|
|
|
|
cd "${CWD}/microG"
|
|
|
|
zip_add
|
|
|
|
cd "${CWD}"
|
|
|
|
|
2018-03-15 19:17:41 +00:00
|
|
|
zip_add CommonInstaller
|
2018-04-10 17:59:36 +00:00
|
|
|
zip_add CommonAddon
|
2018-08-20 18:46:41 +00:00
|
|
|
zip_add busybox.arm
|
|
|
|
zip_add busybox.x86
|
2018-03-15 19:17:41 +00:00
|
|
|
|
2018-01-23 20:11:52 +00:00
|
|
|
zip_add_doc
|
|
|
|
zip_add_config .nanodroid-overlay 0
|
|
|
|
zip_add_config .nanodroid-setup 1
|
|
|
|
}
|
|
|
|
|
|
|
|
mk_pkg_microg () {
|
|
|
|
create_microg_package &
|
|
|
|
progress $!
|
|
|
|
}
|