Make the preview APK reproducible from its tag
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
- Issue-Typ
- Feature
- Klarheit
- Klar beschrieben
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- android, github-actions, react-native, typescript
- Bereich
- build-system, mobile, release
Rechercherichtung
Start with the APK recipe in docs/devices.md and the release workflow in .github/workflows/release-apk.yml; trace how the tag version and workflow run number reach apps/mobile/app.json and the release notes. Build twice from one tag as the recipe describes, then compare the unzipped APK contents while excluding META-INF/. Document each source of differences and whether it was fixed. Done means matching unsigned contents, an automated check, and the recipe on the download page and in release notes.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Why
Anyone can build Hermit from the tag a preview APK came from, but the result doesn't match the published APK byte for byte, and nothing checks it. The PRD lists the reproducible APK as open (SL-45 and NFR-15 in docs/prd/hermit-prd.md). A rebuild that matches, apart from the signature, is how people can trust that the APK is the code they read.
What to do
- Make the recipe complete. Before it builds,
.github/workflows/release-apk.ymlwrites the version from the tag, and aversionCodeequal to the workflow's run number, intoapps/mobile/app.json. Put the same step in the recipe in docs/devices.md ("Or build it yourself"), and print theversionCodein the release notes so a rebuild can use it. - Build twice from the same tag, on two machines or two clean clones, following docs/devices.md. Compare the APKs with the signature left out: unzip both and compare every file except
META-INF/, or usediffoscope. - Find and remove each source of difference, such as timestamps, file order, absolute paths, the JavaScript bundle or the native builds. List what you find in the pull request, even the parts you couldn't fix.
- When two builds match, add a script or a CI job that checks it, and put the recipe in the release notes.
Done when
- Two builds from the same tag give APKs that match apart from the signature, and a script or a CI job shows it.
- docs/devices.md and the site's download page say so, and the release notes carry the recipe.
How to check
Build twice as docs/devices.md says, then compare the unzipped APKs without META-INF/.
Keep in mind
- Compare unsigned contents. Never ask for the preview key, and never commit a keystore or a password.
- The app gains no network call. Build-time downloads are fine when their versions are pinned.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 11
- Forks
- 0
- Ø Merge
- 10 Min.
- Gemergte PRs (30 T.)
- 6
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus DojoCodingLabs/hermit
-
docs good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 87/100
DojoCodingLabs/hermit#73 ·
Maintainer antworten meist innerhalb von 1 Tag
-
device-lab
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
DojoCodingLabs/hermit#45 ·
Maintainer antworten meist innerhalb von 1 Tag
-
device-lab
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
DojoCodingLabs/hermit#44 ·
Maintainer antworten meist innerhalb von 1 Tag
-
device-lab
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
DojoCodingLabs/hermit#43 ·
Maintainer antworten meist innerhalb von 1 Tag
-
agent-friendly docs good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
DojoCodingLabs/hermit#39 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in DojoCodingLabs/hermit
Ähnliche Issues
-
bug zoo
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
software-mansion/runntime#151 ·
Maintainer antworten meist innerhalb von 4 Tagen
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 86/100
sidebandstudio/clawtrate#728 ·
Maintainer antworten meist innerhalb von 1 Tag
-
enhancement github_actions help wanted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
tranquilo-art/tranquilo-app#254 ·
Maintainer antworten meist innerhalb von 1 Tag
-
documentation good first issue
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 88/100
Tfoucher5/fuzzy-toolkit#44 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug tooling
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
endora-commerce/endora-commerce#1978 ·
Maintainer antworten meist innerhalb von 1 Tag