me-web? 0.16.1: a bundle for Google Play
Every release now also carries the Android app as a bundle (.aab), the form Google Play accepts, signed with the same key as the APK. The network data inside it stays uncompressed in the copies Google Play sends to phones, so the app still reads it straight from storage, and the release stops if that would ever change. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
25fa10a368
commit
cce6eb5aa2
4 files changed
+22
-5
No files matched your search
+11
-2
@@ -88,7 +88,7 @@ void WriteNotes()
|
||||
"",
|
||||
]);
|
||||
lines.AddRange(File.Exists(source) ? File.ReadAllLines(source).Select(l => l.Length > 0 ? $" {l}" : "") : [" (no network data in this build)"]);
|
||||
lines.AddRange(["", "SHA256SUMS.txt lists every file. The APK's signing certificate SHA-256 is 5f52cff4f52f4e0b6da6cd044bfceaf78d1d42db24f2470602db7f19cbfdf846."]);
|
||||
lines.AddRange(["", "SHA256SUMS.txt lists every file. The APK and the app bundle for Google Play (.aab) are signed with the certificate whose SHA-256 is 5f52cff4f52f4e0b6da6cd044bfceaf78d1d42db24f2470602db7f19cbfdf846."]);
|
||||
Directory.CreateDirectory(Path.Combine(root, "artifacts"));
|
||||
File.WriteAllLines(Path.Combine(root, "artifacts", "release-notes.md"), lines);
|
||||
}
|
||||
@@ -297,9 +297,18 @@ string Android()
|
||||
"-p:AndroidKeyStore=true", $"-p:AndroidSigningKeyStore={keystore}", $"-p:AndroidSigningKeyAlias={KeyAlias}",
|
||||
$"-p:AndroidSigningStorePass=env:{KeystorePasswordVariable}", $"-p:AndroidSigningKeyPass=env:{KeystorePasswordVariable}", .. Stamp()]);
|
||||
var apk = Directory.GetFiles(stage, "*-Signed.apk").SingleOrDefault() ?? throw new InvalidOperationException("signed APK not found");
|
||||
var bundle = Directory.GetFiles(stage, "*-Signed.aab").SingleOrDefault() ?? throw new InvalidOperationException("signed app bundle not found");
|
||||
using (var archive = ZipFile.OpenRead(bundle))
|
||||
{
|
||||
using var config = new StreamReader((archive.GetEntry("BundleConfig.pb") ?? throw new InvalidOperationException("BundleConfig.pb missing from the app bundle")).Open());
|
||||
if (!config.ReadToEnd().Contains("**/*.bin", StringComparison.Ordinal))
|
||||
throw new InvalidOperationException("the app bundle would let Google Play compress registry.bin, which the app reads in place");
|
||||
}
|
||||
var name = $"MeWeb-{version}-android.apk";
|
||||
var bundleName = $"MeWeb-{version}-android.aab";
|
||||
File.Copy(apk, Path.Combine(output, name), overwrite: true);
|
||||
return $"{name} ({Size(Path.Combine(output, name))})";
|
||||
File.Copy(bundle, Path.Combine(output, bundleName), overwrite: true);
|
||||
return $"{name} ({Size(Path.Combine(output, name))}), {bundleName} ({Size(Path.Combine(output, bundleName))})";
|
||||
}
|
||||
|
||||
string Server()
|
||||
|
||||
Reference in new issue
Block a user