You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by as...@apache.org on 2026/08/30 13:12:29 UTC
(maka) 01/01: fix: pin Desktop Nightly feed channel
This is an automated email from the ASF dual-hosted git repository.
Astro-Han pushed a commit to branch fix/nightly-pin-latest-feed
in repository https://gitbox.apache.org/repos/asf/maka.git
commit 4ce6ba8272a45bd45be86be2683330086743a369
Author: AstroHan <le...@outlook.com>
AuthorDate: Sun Aug 30 21:12:13 2026 +0800
fix: pin Desktop Nightly feed channel
Prevent prerelease version inference from renaming the update metadata away from latest-mac.yml and latest.yml.
Generated-by: Codex
---
apps/desktop/electron-builder.config.mjs | 2 +-
scripts/desktop-nightly.test.mjs | 17 +++++++++++------
2 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/apps/desktop/electron-builder.config.mjs b/apps/desktop/electron-builder.config.mjs
index f50786a29d..42ac6f2ebf 100644
--- a/apps/desktop/electron-builder.config.mjs
+++ b/apps/desktop/electron-builder.config.mjs
@@ -287,7 +287,7 @@ export function resolveDesktopBuilderConfig(environment = process.env) {
runtimeHostSetupPackage: resolveRuntimeHostSetupPackage(rootManifest.version, environment),
makaUpdateChannel: 'nightly',
},
- publish: [{ provider: 'generic', url: DESKTOP_NIGHTLY_FEED_URL }],
+ publish: [{ provider: 'generic', url: DESKTOP_NIGHTLY_FEED_URL, channel: 'latest' }],
};
}
diff --git a/scripts/desktop-nightly.test.mjs b/scripts/desktop-nightly.test.mjs
index 2446914b9d..92bcb21094 100644
--- a/scripts/desktop-nightly.test.mjs
+++ b/scripts/desktop-nightly.test.mjs
@@ -38,12 +38,17 @@ test('a nightly package embeds only the Apache Nightlies update authority', () =
assert.equal(config.extraMetadata.version, version);
assert.equal(config.extraMetadata.runtimeHostSetupPackage, `maka-agent@${version}`);
assert.equal(config.extraMetadata.makaUpdateChannel, 'nightly');
- assert.deepEqual(config.publish, [
- {
- provider: 'generic',
- url: 'https://nightlies.apache.org/maka/desktop/',
- },
- ]);
+ assert.equal(config.publish.length, 1);
+ assert.equal(config.publish[0].provider, 'generic');
+ assert.equal(config.publish[0].url, 'https://nightlies.apache.org/maka/desktop/');
+});
+
+test('a dev Nightly identity still advances the latest Desktop feed', () => {
+ const config = resolveDesktopBuilderConfig({
+ MAKA_DESKTOP_NIGHTLY_VERSION: '0.2.0-dev.42.20260829',
+ });
+
+ assert.equal(config.publish[0].channel, 'latest');
});
test('formal release checks ignore the ambient Nightly packaging environment', async () => {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org