fix(landing): correct GitHub repo URL from nicekid1 to CSZHK
All repo links were pointing to nicekid1/CleanMyPc which 404s. The actual repo is CSZHK/CleanMyPc. Fixed in Hero, Footer, OpenSource, release.ts, release-fallback.json, and fetch-release.ts. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -12,7 +12,7 @@ import { fileURLToPath } from 'node:url';
|
||||
|
||||
const __dirname = dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
const OWNER = 'nicekid1';
|
||||
const OWNER = 'CSZHK';
|
||||
const REPO = 'CleanMyPc';
|
||||
const OUTPUT = join(__dirname, '..', 'src', 'data', 'release-manifest.json');
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ const copy = t(locale);
|
||||
const manifest = getRelease();
|
||||
const downloadUrl = getDownloadUrl(manifest);
|
||||
|
||||
const REPO_URL = 'https://github.com/nicekid1/CleanMyPc';
|
||||
const REPO_URL = 'https://github.com/CSZHK/CleanMyPc';
|
||||
---
|
||||
|
||||
<footer class="footer band--dark">
|
||||
|
||||
@@ -19,7 +19,7 @@ const badgeLabels = {
|
||||
none: copy.hero.badgeComingSoon,
|
||||
};
|
||||
|
||||
const REPO_URL = 'https://github.com/nicekid1/CleanMyPc';
|
||||
const REPO_URL = 'https://github.com/CSZHK/CleanMyPc';
|
||||
|
||||
// Per state machine: stable/prerelease → download CTA + GitHub secondary
|
||||
// none → GitHub as primary, no secondary download
|
||||
|
||||
@@ -8,7 +8,7 @@ interface Props {
|
||||
const { locale } = Astro.props;
|
||||
const copy = t(locale);
|
||||
|
||||
const REPO_URL = 'https://github.com/nicekid1/CleanMyPc';
|
||||
const REPO_URL = 'https://github.com/CSZHK/CleanMyPc';
|
||||
---
|
||||
|
||||
<section class="oss section band--dark fade-in" id="opensource">
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"channel": "prerelease",
|
||||
"version": "1.0.2",
|
||||
"publishedAt": null,
|
||||
"releaseUrl": "https://github.com/nicekid1/CleanMyPc/releases",
|
||||
"releaseUrl": "https://github.com/CSZHK/CleanMyPc/releases",
|
||||
"assets": {
|
||||
"dmg": null,
|
||||
"zip": null,
|
||||
|
||||
@@ -51,7 +51,7 @@ export function getDownloadUrl(manifest: ReleaseManifest): string {
|
||||
manifest.assets.zip ??
|
||||
manifest.assets.pkg ??
|
||||
manifest.releaseUrl ??
|
||||
'https://github.com/nicekid1/CleanMyPc/releases'
|
||||
'https://github.com/CSZHK/CleanMyPc/releases'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user