mirror of
https://github.com/lineageos4microg/docker-lineage-cicd
synced 2024-11-09 10:09:56 +01:00
fix build signing for Android 14
This commit is contained in:
parent
47545fb5fb
commit
ff27067796
16
src/init.sh
16
src/init.sh
@ -60,6 +60,22 @@ if [ "$SIGN_BUILDS" = true ]; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Android 14 requires to set a BUILD file for bazel to avoid errors:
|
||||||
|
cat > $"KEYS_DIR"/BUILD << _EOB
|
||||||
|
# adding an empty BUILD file fixes the A14 build error:
|
||||||
|
# "ERROR: no such package 'keys': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package."
|
||||||
|
# adding the filegroup "android_certificate_directory" fixes the A14 build error:
|
||||||
|
# "no such target '//keys:android_certificate_directory': target 'android_certificate_directory' not declared in package 'keys'"
|
||||||
|
filegroup(
|
||||||
|
name = "android_certificate_directory",
|
||||||
|
srcs = glob([
|
||||||
|
"*.pk8",
|
||||||
|
"*.pem",
|
||||||
|
]),
|
||||||
|
visibility = ["//visibility:public"],
|
||||||
|
)
|
||||||
|
_EOB
|
||||||
|
|
||||||
for c in cyngn{-priv,}-app testkey; do
|
for c in cyngn{-priv,}-app testkey; do
|
||||||
for e in pk8 x509.pem; do
|
for e in pk8 x509.pem; do
|
||||||
ln -sf releasekey.$e "$KEYS_DIR/$c.$e" 2> /dev/null
|
ln -sf releasekey.$e "$KEYS_DIR/$c.$e" 2> /dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user