[tauri] ApkKey: Sign the APK with Mark's Custos key rosea-domi-android, and let preflight check it again

This commit is contained in:
2026-12-02 14:57:16 +01:00
parent 69f8b74c9d
commit a2176563eb
9 changed files with 60 additions and 28 deletions
+4 -4
View File
@@ -2,11 +2,11 @@
* What the release asks custos-sign to do with the Android APK (fabrica-release.md F4). Kept
* apart from the script that runs it so the arguments can be tested without Custos.
*
* The key `rosea-android` lives in Custos only; custos-sign holds no key material either. Its
* scope is exactly `mnovak/Rosea`, the release pipeline, a tag (Custos makes the key on the first
* release, behind Mark's first-signature card).
* The key `rosea-domi-android` lives in Custos only (Mark made it under that name, 2026-12-02);
* custos-sign holds no key material either. Its scope is exactly `mnovak/Rosea`, the release
* pipeline, a tag. The name is forever: an APK signed with it is Rosea on Android for good.
*/
export const APK_KEY = 'rosea-android';
export const APK_KEY = 'rosea-domi-android';
export const REPO = 'mnovak/Rosea';
/** Where Gradle leaves the release APK of `tauri android build --apk --target aarch64`, from src-tauri. */
+3 -3
View File
@@ -13,13 +13,13 @@ const COMMIT = 'a'.repeat(40);
const pkg = JSON.parse(readFileSync(join(fileURLToPath(new URL('..', import.meta.url)), 'package.json'), 'utf8')) as { scripts: Record<string, string> };
describe('signArgs', () => {
it('asks for rosea-android, scoped to mnovak/Rosea, the release pipeline and a tag', () => {
it('asks for rosea-domi-android, scoped to mnovak/Rosea, the release pipeline and a tag', () => {
const args = signArgs({ version: '0.1.0', commit: COMMIT, unsigned: 'in.apk', out: 'out.apk' });
expect(args).toEqual([
'apk', 'in.apk', '--out', 'out.apk', '--key', 'rosea-android', '--repo', 'mnovak/Rosea', '--pipeline', 'release',
'apk', 'in.apk', '--out', 'out.apk', '--key', 'rosea-domi-android', '--repo', 'mnovak/Rosea', '--pipeline', 'release',
'--commit', COMMIT, '--trigger', 'tag', '--run', 'rosea-v0.1.0', '--version', '0.1.0', '--step', 'apk'
]);
expect(APK_KEY).toBe('rosea-android');
expect(APK_KEY).toBe('rosea-domi-android');
});
it('refuses a version or a commit that is not one', () => {