Skip to content

Commit f4b57dc

Browse files
committed
chore: sync with microG unofficial installer
Signed-off-by: ale5000 <15793015+ale5000-git@users.noreply.github.com>
1 parent 9c94c63 commit f4b57dc

File tree

4 files changed

+26
-9
lines changed

4 files changed

+26
-9
lines changed

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ if test "${OPENSOURCE_ONLY:?}" = 'false'; then
278278
cp -f -- "${BUILD_CACHE_DIR:?}/${LOCAL_PATH:?}/${LOCAL_FILENAME:?}.apk" "${TEMP_DIR:?}/zip-content/origin/${LOCAL_PATH:?}/" || ui_error "Failed to copy to the temp dir the file => '${LOCAL_PATH}/${LOCAL_FILENAME}.apk'"
279279

280280
_extract_libs=''
281-
if test "${LOCAL_FILENAME:?}" = 'PlayStore' || test "${LOCAL_FILENAME:?}" = 'PlayStoreARM64'; then _extract_libs='libs'; fi
281+
if test "${LOCAL_FILENAME:?}" = 'PlayStore'; then _extract_libs='libs'; fi
282282

283283
printf '%s\n' "${LOCAL_PATH:?}/${LOCAL_FILENAME:?}|${MIN_API:?}|${MAX_API?}|${FINAL_FILENAME:?}|${_extract_libs?}|${INTERNAL_NAME:?}|${FILE_HASH:?}" >> "${TEMP_DIR:?}/zip-content/origin/file-list.dat"
284284
done

config-git.sh

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,27 @@ import_gpg_keys()
5656
fi
5757
}
5858

59-
STATUS=0
59+
setup_gpg()
60+
{
61+
command 1> /dev/null -v 'gpg' || {
62+
printf '%s\n' 'WARNING: gpg is missing'
63+
return 255
64+
}
65+
66+
# GitHub => https://github.com/web-flow.gpg
67+
test -f "${PWD:?}/.public-keys/github.gpg"
68+
import_gpg_keys 'GitHub' "${PWD:?}/.public-keys/github.gpg" "${?}" || return "${?}"
69+
printf '%s\n' '968479A1AFF927E37D1A566BB5690EEEBB952194:6:' | HOME="${USER_HOME:-${HOME:?}}" gpg --import-ownertrust || return "${?}"
70+
}
6071

61-
# GitHub => https://github.com/web-flow.gpg
72+
STATUS=0
6273

6374
printf '%s\n' "Repo dir: ${PWD?}" || STATUS="${?}"
6475

6576
test -f "${PWD:?}/allowed_signers"
6677
config_var gpg.ssh.allowedSignersFile 'allowed_signers' "${?}" || STATUS="${?}"
6778

68-
test -f "${PWD:?}/.public-keys/github.gpg"
69-
import_gpg_keys 'GitHub' "${PWD:?}/.public-keys/github.gpg" "${?}" || STATUS="${?}"
70-
71-
printf '%s\n' '968479A1AFF927E37D1A566BB5690EEEBB952194:6:' | HOME="${USER_HOME:-${HOME:?}}" gpg --import-ownertrust || STATUS="${?}" # GitHub
79+
setup_gpg || STATUS="${?}"
7280

7381
test -d "${PWD:?}/.git-hooks"
7482
config_var core.hooksPath '.git-hooks' "${?}" || STATUS="${?}"

zip-content/inc/common-functions.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,15 @@ _generate_architectures_list()
10311031
export ARCH_LIST
10321032
}
10331033

1034+
is_new_architecture()
1035+
{
1036+
case "${1:?}" in
1037+
'arm64-v8a' | 'armeabi-v7a' | 'x86_64' | 'x86') return 0 ;;
1038+
*) ;;
1039+
esac
1040+
return 1
1041+
}
1042+
10341043
display_basic_info()
10351044
{
10361045
ui_msg "$(write_separator_line "${#MODULE_NAME}" '-' || :)"
@@ -3538,7 +3547,7 @@ kill_app()
35383547
test "${DRY_RUN:?}" -eq 0 || return
35393548

35403549
if test "${BOOTMODE:?}" = 'true' && test -n "${DEVICE_AM?}"; then
3541-
PATH="${PREVIOUS_PATH?}" "${DEVICE_AM:?}" force-stop "${1:?}" || PATH="${PREVIOUS_PATH?}" "${DEVICE_AM:?}" kill "${1:?}" || :
3550+
PATH="${PREVIOUS_PATH?}" "${DEVICE_AM:?}" 2> /dev/null force-stop "${1:?}" || PATH="${PREVIOUS_PATH?}" "${DEVICE_AM:?}" kill "${1:?}" || :
35423551
fi
35433552
}
35443553

zip-content/module.prop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
numericId=928871
66
id=google-sync-addon
77
name=Google sync add-on
8-
version=v1.3.2.25-alpha
8+
version=v1.3.2.27-alpha
99
versionCode=6
1010
author=ale5000
1111
description=It installs Google sync adapters on Android.

0 commit comments

Comments
 (0)