feat: add license.html

This commit is contained in:
kangfenmao
2024-10-15 19:02:53 +08:00
parent f38461d4d0
commit ffaa16fa88
2 changed files with 86 additions and 3 deletions
@@ -51,10 +51,11 @@ const AboutSettings: FC = () => {
onOpenWebsite(url)
}
const showLicense = () => {
const showLicense = async () => {
const { appPath } = await window.api.getAppInfo()
MinApp.start({
name: t('settings.about.releases.title'),
url: 'https://raw.githubusercontent.com/kangfenmao/cherry-studio/main/LICENSE',
name: t('settings.about.license.title'),
url: `file://${appPath}/resources/cherry-studio/license.html`,
logo: AppLogo
})
}