Axolotl desktop CI / guardrails (push) Has been cancelled
Axolotl desktop CI / desktop (macos-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (ubuntu-latest) (push) Has been cancelled
Axolotl desktop CI / desktop (windows-latest) (push) Has been cancelled
Axolotl desktop CI / website (push) Has been cancelled
Repository checks / typos (push) Has been cancelled
Repository checks / tombi (push) Has been cancelled
Rust checks / shear (push) Has been cancelled
Sync source to CNB / Sync Git ref (push) Has been cancelled
- config.ts:repositoryUrl 修正为启动器仓库 (github.com/ApTx2012/Starlight_Lancher),此前误指向服务端仓库; 新增 releasesUrl。 - 关于页“项目许可证”“第三方许可证”随之指向正确的 GitHub 路径。 - 更新页“查看完整更新日志”:当前版本回退到 releasesUrl;历史版本 回退到对应 tag 的 release 页面。
48 lines
1.6 KiB
TypeScript
48 lines
1.6 KiB
TypeScript
const trimTrailingSlash = (url: string) => url.replace(/\/$/, '')
|
|
|
|
export const AxolotlBrandConfig = Object.freeze({
|
|
productName: 'Starlight Launcher',
|
|
shortProductName: 'Starlight',
|
|
website: 'https://skin.starlight.cool/',
|
|
repositoryUrl: 'https://github.com/ApTx2012/Starlight_Lancher',
|
|
releasesUrl: 'https://github.com/ApTx2012/Starlight_Lancher/releases',
|
|
supportUrl: 'https://skin.starlight.cool/',
|
|
qqGroupNumber: '000000000',
|
|
qqChannelUrl: 'https://skin.starlight.cool/',
|
|
sponsorUrl: 'https://skin.starlight.cool/',
|
|
surveyUrl: 'https://skin.starlight.cool/',
|
|
bundleIdentifier: 'cool.starlight.launcher',
|
|
deepLinkScheme: 'starlight',
|
|
userAgent: (version: string, os: string) => `garbage-human-studio/starlight/${version} (${os})`,
|
|
capabilities: Object.freeze({
|
|
publicModrinthApi: true,
|
|
privateModrinthServices: false,
|
|
ghsTelemetry: false,
|
|
}),
|
|
})
|
|
|
|
const siteUrl = trimTrailingSlash(import.meta.env.MODRINTH_URL || 'https://modrinth.com')
|
|
const officialLabrinthBaseUrl = trimTrailingSlash(
|
|
import.meta.env.MODRINTH_API_BASE_URL || 'https://api.modrinth.com',
|
|
)
|
|
type DownloadSourceMode = 'auto' | 'official_only' | 'mirror_preferred' | 'official_preferred'
|
|
|
|
// The Modrinth API always uses the official source; Modrinth download mirror
|
|
// routing is handled by the Rust download layer.
|
|
export function setModrinthSourceMode(_sourceMode: DownloadSourceMode) {}
|
|
|
|
export function setModrinthMirrorEnabled(_enabled: boolean) {}
|
|
|
|
export function getOfficialLabrinthBaseUrl() {
|
|
return officialLabrinthBaseUrl
|
|
}
|
|
|
|
export function getLabrinthBaseUrl() {
|
|
return officialLabrinthBaseUrl
|
|
}
|
|
|
|
export const config = {
|
|
siteUrl,
|
|
labrinthBaseUrl: getLabrinthBaseUrl,
|
|
}
|