change:修改部分axolotl为starlight

(不过怎么这么多)
This commit is contained in:
2026-09-12 23:29:28 +08:00
parent 3c48ba77c9
commit ceda000578
86 changed files with 15828 additions and 710 deletions

View File

@ -47,15 +47,15 @@ for (const root of roots) {
const tauriConfig = JSON.parse(await readFile('apps/app/tauri.conf.json', 'utf8'))
const frontendConfig = await readFile('apps/app-frontend/src/config.ts', 'utf8')
const requiredInvariants = [
['product name', tauriConfig.productName === 'Axolotl Launcher'],
['bundle identifier', tauriConfig.identifier === 'red.ghs.axolotl'],
['product name', tauriConfig.productName === 'Starlight Launcher'],
['bundle identifier', tauriConfig.identifier === 'cool.starlight.launcher'],
[
'deep-link scheme',
tauriConfig.plugins?.['deep-link']?.desktop?.schemes?.includes('axolotl') === true,
tauriConfig.plugins?.['deep-link']?.desktop?.schemes?.includes('starlight') === true,
],
[
'User-Agent format',
frontendConfig.includes('garbage-human-studio/axolotl/${version} (${os})'),
frontendConfig.includes('garbage-human-studio/starlight/${version} (${os})'),
],
[
'private Modrinth services disabled',
@ -68,8 +68,8 @@ for (const [label, valid] of requiredInvariants) {
}
if (failures.length > 0) {
console.error(`Axolotl brand guard failed:\n${failures.join('\n')}`)
console.error(`Starlight brand guard failed:\n${failures.join('\n')}`)
process.exit(1)
}
console.log('Axolotl brand guard passed.')
console.log('Starlight brand guard passed.')