mirror of
https://github.com/j-hc/revanced-magisk-module.git
synced 2025-04-29 22:24:34 +02:00
fix signing
This commit is contained in:
parent
52f3bd204c
commit
64bfaa2425
2
build.sh
2
build.sh
@ -191,7 +191,7 @@ log "\n[revanced-magisk-module](https://github.com/j-hc/revanced-magisk-module)"
|
||||
log "\nChangelog:"
|
||||
log "$(cat $TEMP_DIR/*-rv/changelog.md)"
|
||||
|
||||
SKIPPED=$(cat $TEMP_DIR/skipped || :)
|
||||
SKIPPED=$(cat $TEMP_DIR/skipped 2>/dev/null || :)
|
||||
if [ -n "$SKIPPED" ]; then
|
||||
log "\nSkipped:"
|
||||
log "$SKIPPED"
|
||||
|
BIN
ks.keystore
BIN
ks.keystore
Binary file not shown.
7
utils.sh
7
utils.sh
@ -326,7 +326,8 @@ get_archive_pkg_name() { echo "$__ARCHIVE_PKG_NAME__"; }
|
||||
patch_apk() {
|
||||
local stock_input=$1 patched_apk=$2 patcher_args=$3 rv_cli_jar=$4 rv_patches_jar=$5
|
||||
declare -r tdir=$(mktemp -d -p $TEMP_DIR)
|
||||
local cmd="java -jar $rv_cli_jar patch $stock_input -r $tdir -p -o $patched_apk -b $rv_patches_jar --keystore=ks.keystore $patcher_args"
|
||||
local cmd="java -jar $rv_cli_jar patch $stock_input -r $tdir -p -o $patched_apk -b $rv_patches_jar \
|
||||
--keystore=ks.keystore --keystore-entry-password=123456789 --keystore-password=123456789 --signer=jhc --alias=jhc $patcher_args"
|
||||
if [ "$OS" = Android ]; then cmd+=" --custom-aapt2-binary=${TEMP_DIR}/aapt2"; fi
|
||||
pr "$cmd"
|
||||
if [ "${DRYRUN:-}" = true ]; then
|
||||
@ -411,7 +412,7 @@ build_rv() {
|
||||
if [ "${args[merge_integrations]}" = true ]; then p_patcher_args+=("-m ${args[integ]}"); fi
|
||||
local microg_patch
|
||||
microg_patch=$(jq -r ".[] | select(.compatiblePackages // [] | .[] | .name==\"${pkg_name}\") | .name" "${args[ptjs]}" | grep -iF microg || :)
|
||||
if [ "$microg_patch" ] && [[ ${p_patcher_args[*]} =~ $microg_patch ]]; then
|
||||
if [ -n "$microg_patch" ] && [[ ${p_patcher_args[*]} =~ $microg_patch ]]; then
|
||||
epr "You cant include/exclude microg patches as that's done by rvmm builder automatically."
|
||||
p_patcher_args=("${p_patcher_args[@]//-[ei] ${microg_patch}/}")
|
||||
fi
|
||||
@ -457,7 +458,7 @@ build_rv() {
|
||||
for build_mode in "${build_mode_arr[@]}"; do
|
||||
patcher_args=("${p_patcher_args[@]}")
|
||||
pr "Building '${table}' in '$build_mode' mode"
|
||||
if [ "$microg_patch" ]; then
|
||||
if [ -n "$microg_patch" ]; then
|
||||
patched_apk="${TEMP_DIR}/${app_name_l}-${rv_brand_f}-${version_f}-${arch_f}-${build_mode}.apk"
|
||||
if [ "$build_mode" = apk ]; then
|
||||
patcher_args+=("-i \"${microg_patch}\"")
|
||||
|
Loading…
x
Reference in New Issue
Block a user