Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cce6eb5aa2 | ||
|
|
25fa10a368 |
No files matched your search
@@ -152,7 +152,10 @@ The Android release key: alias `meweb`, certificate SHA-256
|
|||||||
Brotli chunks of 16,384 rows behind an index: about 32 MB, opened in a millisecond, one chunk decompressed per lookup, nothing else resident. It
|
Brotli chunks of 16,384 rows behind an index: about 32 MB, opened in a millisecond, one chunk decompressed per lookup, nothing else resident. It
|
||||||
is not inside `MeWeb.Core`, because the APK stores every assembly once per processor type: the desktop head and the
|
is not inside `MeWeb.Core`, because the APK stores every assembly once per processor type: the desktop head and the
|
||||||
screenshot tool embed it in their entry assembly, the Android head ships it as an uncompressed asset
|
screenshot tool embed it in their entry assembly, the Android head ships it as an uncompressed asset
|
||||||
(`AndroidStoreUncompressedFileExtensions`) that `AndroidPlatform.OpenRegistry` reads in place through `OpenFd`.
|
(`AndroidStoreUncompressedFileExtensions`) that `AndroidPlatform.OpenRegistry` reads in place through `OpenFd`. The
|
||||||
|
same setting puts `**/*.bin` in the app bundle's `BundleConfig.pb`, so the split APKs Google Play builds keep it
|
||||||
|
uncompressed too (checked 22 Nov 2026 with bundletool for an arm64 phone: Stored, 4-byte aligned); `tools/release.cs`
|
||||||
|
refuses a bundle without that line, because a compressed copy would fail only on phones that installed from Play.
|
||||||
`RegistryBuilder` reads IPv4, then IPv6, with the names in a temporary file, into lists sized up front (6.5 million
|
`RegistryBuilder` reads IPv4, then IPv6, with the names in a temporary file, into lists sized up front (6.5 million
|
||||||
IPv4 and 2 million IPv6 rows; RIPE alone has 1.48 million IPv6 blocks, and a list that outgrows its size doubles):
|
IPv4 and 2 million IPv6 rows; RIPE alone has 1.48 million IPv6 blocks, and a list that outgrows its size doubles):
|
||||||
about 276 MB peak in October 2026, under the unit's 512 MB, and some four minutes on top of the RouteViews tally. `/api/ip` still answers each caller with its own
|
about 276 MB peak in October 2026, under the unit's 512 MB, and some four minutes on top of the RouteViews tally. `/api/ip` still answers each caller with its own
|
||||||
@@ -184,6 +187,11 @@ The Android release key: alias `meweb`, certificate SHA-256
|
|||||||
`arasaka_repository_known`, or installed copies are treated as edited by hand and left alone. The package owns
|
`arasaka_repository_known`, or installed copies are treated as edited by hand and left alone. The package owns
|
||||||
`/usr/share/arasaka-repository/meweb`, the marker that keeps the repository configured while any Arasaka package
|
`/usr/share/arasaka-repository/meweb`, the marker that keeps the repository configured while any Arasaka package
|
||||||
is installed. The portal app (`arasaka.software`, `arasaka-portal`) carries a byte-identical copy; change both.
|
is installed. The portal app (`arasaka.software`, `arasaka-portal`) carries a byte-identical copy; change both.
|
||||||
|
- **Google Play takes the app bundle** (since 0.16.1): the release attaches `MeWeb-<version>-android.aab` beside the
|
||||||
|
APK, signed with the same key. Play App Signing must keep this key (exported with Google's `pepk.jar` through "Use a
|
||||||
|
key from a Java keystore"), never one Google makes, or Play installs and the F-Droid and website copies can never
|
||||||
|
update one another. The first upload is by hand. The publisher above ignores the bundle, since it takes only the
|
||||||
|
files named in `apps/meweb.yml`, and the Play listing uses the same `fastlane/metadata/android/` text and images.
|
||||||
- **The server cannot ping**: `NoNewPrivileges` drops `ping`'s file capability and `ping_group_range` is closed, so
|
- **The server cannot ping**: `NoNewPrivileges` drops `ping`'s file capability and `ping_group_range` is closed, so
|
||||||
the trace back to a caller uses `tracepath` (UDP, unprivileged) and keeps only public hops outside `Probe:Refuse`,
|
the trace back to a caller uses `tracepath` (UDP, unprivileged) and keeps only public hops outside `Probe:Refuse`,
|
||||||
so the box's own network never reaches an app.
|
so the box's own network never reaches an app.
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>0.16.0</Version>
|
<Version>0.16.1</Version>
|
||||||
<Product>me-web?</Product>
|
<Product>me-web?</Product>
|
||||||
<Company>Arasaka di Hvozdikov Yevheniy</Company>
|
<Company>Arasaka di Hvozdikov Yevheniy</Company>
|
||||||
<Copyright>© 2026 Arasaka di Hvozdikov Yevheniy</Copyright>
|
<Copyright>© 2026 Arasaka di Hvozdikov Yevheniy</Copyright>
|
||||||
@@ -15,6 +15,6 @@
|
|||||||
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
|
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
|
||||||
<HouseRulesDtoNamespaces>MeWeb.Shared</HouseRulesDtoNamespaces>
|
<HouseRulesDtoNamespaces>MeWeb.Shared</HouseRulesDtoNamespaces>
|
||||||
<HouseRulesFormatHelpers>NumbersExtensions,Texts</HouseRulesFormatHelpers>
|
<HouseRulesFormatHelpers>NumbersExtensions,Texts</HouseRulesFormatHelpers>
|
||||||
<WarningsAsErrors>$(WarningsAsErrors);HR0001;HR0002;HR0003;HR0004;HR0005;HR0006;HR0007;HR0008;HR0009;HR0010;HR0011;HR0101;HR0102;HR0103;HR0104;HR0105;HR0106;HR0201</WarningsAsErrors>
|
<WarningsAsErrors>$(WarningsAsErrors);HR0001;HR0002;HR0003;HR0004;HR0005;HR0006;HR0007;HR0008;HR0009;HR0010;HR0011;HR0012;HR0013;HR0101;HR0102;HR0103;HR0104;HR0105;HR0106;HR0107;HR0108;HR0201</WarningsAsErrors>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
@@ -24,6 +24,6 @@
|
|||||||
<PackageVersion Include="Xamarin.AndroidX.Lifecycle.ViewModelSavedState.Android" Version="2.11.0.1" />
|
<PackageVersion Include="Xamarin.AndroidX.Lifecycle.ViewModelSavedState.Android" Version="2.11.0.1" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<GlobalPackageReference Include="Arasaka.HouseRules.Analyzers" Version="1.0.6" />
|
<GlobalPackageReference Include="Arasaka.HouseRules.Analyzers" Version="1.1.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
+6
-1
@@ -50,7 +50,12 @@ MeWeb builds with none and carries no suppression. Applied to MeWeb:
|
|||||||
- `NumbersExtensions` holds the invariant values that fill a localized template: `ToOneDecimal`, `ToWholeMegabytes`.
|
- `NumbersExtensions` holds the invariant values that fill a localized template: `ToOneDecimal`, `ToWholeMegabytes`.
|
||||||
- `Texts` holds what the App formats in the reader's culture: money and dates.
|
- `Texts` holds what the App formats in the reader's culture: money and dates.
|
||||||
- **JSON:** one source-generated context per assembly (#84).
|
- **JSON:** one source-generated context per assembly (#84).
|
||||||
- **Not applicable:** the `.razor` rules (HR0101–HR0106, HR0201), since the App is Avalonia. Their counterparts are
|
- **Error codes** (HR0012, HR0013) are not turned on: a refusal already carries a stable machine code,
|
||||||
|
`ViewRefusal.Reason` (`too-many`, `busy`, `bad-ports`…), which installed apps read and translate. A numbered prefix
|
||||||
|
would change what they receive.
|
||||||
|
- **Spreadsheets** (HR0319): none; findings are shown in the app and shared as the submission JSON the person reads.
|
||||||
|
- **Not applicable:** passwords (HR0311), since there are no accounts.
|
||||||
|
- **Not applicable:** the `.razor` rules (HR0101–HR0108, HR0201), since the App is Avalonia. Their counterparts are
|
||||||
#27, #43, #44 and #93. `Localizer.Instance[key]` already returns a string (#91).
|
#27, #43, #44 and #93. `Localizer.Instance[key]` already returns a string (#91).
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<VersionMinor>$([System.Version]::Parse('$(Version)').Minor)</VersionMinor>
|
<VersionMinor>$([System.Version]::Parse('$(Version)').Minor)</VersionMinor>
|
||||||
<VersionPatch>$([System.Version]::Parse('$(Version)').Build)</VersionPatch>
|
<VersionPatch>$([System.Version]::Parse('$(Version)').Build)</VersionPatch>
|
||||||
<ApplicationVersion>$([MSBuild]::Add($([MSBuild]::Multiply($(VersionMajor), 10000)), $([MSBuild]::Add($([MSBuild]::Multiply($(VersionMinor), 100)), $(VersionPatch)))))</ApplicationVersion>
|
<ApplicationVersion>$([MSBuild]::Add($([MSBuild]::Multiply($(VersionMajor), 10000)), $([MSBuild]::Add($([MSBuild]::Multiply($(VersionMinor), 100)), $(VersionPatch)))))</ApplicationVersion>
|
||||||
<AndroidPackageFormats>apk</AndroidPackageFormats>
|
<AndroidPackageFormats>apk;aab</AndroidPackageFormats>
|
||||||
<AndroidEnableProfiledAot>false</AndroidEnableProfiledAot>
|
<AndroidEnableProfiledAot>false</AndroidEnableProfiledAot>
|
||||||
<AndroidStoreUncompressedFileExtensions>.bin</AndroidStoreUncompressedFileExtensions>
|
<AndroidStoreUncompressedFileExtensions>.bin</AndroidStoreUncompressedFileExtensions>
|
||||||
<JsonSerializerIsReflectionEnabledByDefault>false</JsonSerializerIsReflectionEnabledByDefault>
|
<JsonSerializerIsReflectionEnabledByDefault>false</JsonSerializerIsReflectionEnabledByDefault>
|
||||||
|
|||||||
+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(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"));
|
Directory.CreateDirectory(Path.Combine(root, "artifacts"));
|
||||||
File.WriteAllLines(Path.Combine(root, "artifacts", "release-notes.md"), lines);
|
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:AndroidKeyStore=true", $"-p:AndroidSigningKeyStore={keystore}", $"-p:AndroidSigningKeyAlias={KeyAlias}",
|
||||||
$"-p:AndroidSigningStorePass=env:{KeystorePasswordVariable}", $"-p:AndroidSigningKeyPass=env:{KeystorePasswordVariable}", .. Stamp()]);
|
$"-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 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 name = $"MeWeb-{version}-android.apk";
|
||||||
|
var bundleName = $"MeWeb-{version}-android.aab";
|
||||||
File.Copy(apk, Path.Combine(output, name), overwrite: true);
|
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()
|
string Server()
|
||||||
|
|||||||
Reference in new issue
Block a user