boklm pushed to branch main at The Tor Project / Applications / tor-browser-build

Commits:

2 changed files:

Changes:

  • tools/signing/linux-signer-sign-android-apks
    ... ... @@ -68,14 +68,19 @@ setup_build_tools
    68 68
     mkdir -p ~/"$SIGNING_PROJECTNAME-$tbb_version-apks"
    
    69 69
     chgrp signing ~/"$SIGNING_PROJECTNAME-$tbb_version-apks"
    
    70 70
     chmod g+w ~/"$SIGNING_PROJECTNAME-$tbb_version-apks"
    
    71
    -cp -af ~/"$SIGNING_PROJECTNAME-$tbb_version"/*.apk ~/"$SIGNING_PROJECTNAME-$tbb_version-apks"
    
    71
    +cp -af ~/"$SIGNING_PROJECTNAME-$tbb_version"/*.apk \
    
    72
    +  ~/"$SIGNING_PROJECTNAME-$tbb_version"/*.bspatch \
    
    73
    +  ~/"$SIGNING_PROJECTNAME-$tbb_version-apks"
    
    72 74
     cd ~/"$SIGNING_PROJECTNAME-$tbb_version-apks"
    
    73 75
     
    
    74 76
     # Sign all packages
    
    75 77
     for arch in ${ARCHS}; do
    
    76 78
       qa_apk=${projname}-qa-android-${arch}-${tbb_version}.apk
    
    79
    +  unsigned_apk=${projname}-qa-unsigned-android-${arch}-${tbb_version}.apk
    
    80
    +  unsigned_apk_bspatch=${projname}-qa-unsign-android-${arch}-${tbb_version}.bspatch
    
    77 81
       signed_apk=${projname}-android-${arch}-${tbb_version}.apk
    
    78
    -  sign_apk "$qa_apk" "$signed_apk"
    
    82
    +  bspatch "$qa_apk" "$unsigned_apk" "$unsigned_apk_bspatch"
    
    83
    +  sign_apk "$unsigned_apk" "$signed_apk"
    
    79 84
       verify_apk "$signed_apk"
    
    80 85
       cp -f "$signed_apk" ~/"$SIGNING_PROJECTNAME-$tbb_version"
    
    81 86
     done
    

  • tools/signing/machines-setup/setup-signing-machine
    ... ... @@ -116,7 +116,7 @@ install_packages opensc libengine-pkcs11-openssl
    116 116
     install_packages cmake libusb-1.0-0-dev libedit-dev gengetopt libpcsclite-dev help2man chrpath dh-exec
    
    117 117
     
    
    118 118
     # Install deps for android/apk signing
    
    119
    -install_packages unzip openjdk-11-jdk-headless openjdk-11-jre-headless
    
    119
    +install_packages unzip openjdk-11-jdk-headless openjdk-11-jre-headless bsdiff
    
    120 120
     
    
    121 121
     # Install deps for macos-rcodesign signing
    
    122 122
     install_packages p7zip-full zstd