mirror of
https://github.com/lineageos4microg/docker-lineage-cicd
synced 2024-11-09 10:09:56 +01:00
generate newly required keys if needed while keeping the old ones
This commit is contained in:
parent
131c1fb38f
commit
a6ae864fb3
10
src/init.sh
10
src/init.sh
@ -42,7 +42,7 @@ if [ "$SIGN_BUILDS" = true ]; then
|
||||
/root/make_key "$KEYS_DIR/$c" "$KEYS_SUBJECT" <<< '' &> /dev/null
|
||||
done
|
||||
else
|
||||
for c in releasekey platform shared media networkstack sdk_sandbox bluetooth; do
|
||||
for c in releasekey platform shared media networkstack; do
|
||||
for e in pk8 x509.pem; do
|
||||
if [ ! -f "$KEYS_DIR/$c.$e" ]; then
|
||||
echo ">> [$(date)] SIGN_BUILDS = true and not empty \$KEYS_DIR, but \"\$KEYS_DIR/$c.$e\" is missing"
|
||||
@ -50,6 +50,14 @@ if [ "$SIGN_BUILDS" = true ]; then
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
# those keys are only required starting with android-20, so people who have built earlier might not yet have them
|
||||
for c in sdk_sandbox bluetooth; do
|
||||
if [ ! -f "$KEYS_DIR/$c.pk8" ]; then
|
||||
echo ">> [$(date)] Generating $c..."
|
||||
/root/make_key "$KEYS_DIR/$c" "$KEYS_SUBJECT" <<< '' &> /dev/null
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
for c in cyngn{-priv,}-app testkey; do
|
||||
|
Loading…
Reference in New Issue
Block a user