Skip to content

Commit

Permalink
feat: add release note
Browse files Browse the repository at this point in the history
  • Loading branch information
kangfenmao committed Jul 15, 2024
1 parent e8bdf9d commit e90ef9d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,8 @@ publish:
electronDownload:
mirror: https://npmmirror.com/mirrors/electron/
afterSign: scripts/notarize.js
releaseInfo:
releaseNotes: |
- 【功能】新增消息暂停发送功能
- 【修复】修复多语言切换不彻底问题
- 【构建】支持 macOS Intel 架构
1 change: 1 addition & 0 deletions electron.vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default defineConfig({
}
},
plugins: [react()],
assetsInclude: ['**/*.md'],
server: {
host: '0.0.0.0'
}
Expand Down
7 changes: 7 additions & 0 deletions src/renderer/src/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog

## 0.2.1 (2024-07-15)

1.【功能】新增消息暂停发送功能
2.【修复】修复多语言切换不彻底问题
3.【构建】支持 macOS Intel 架构
15 changes: 15 additions & 0 deletions src/renderer/src/pages/settings/AboutSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import styled from 'styled-components'
import Logo from '@renderer/assets/images/logo.png'
import { runAsyncFunction } from '@renderer/utils'
import { useTranslation } from 'react-i18next'
import Markdown from 'react-markdown'
import changelogs from '@renderer/CHANGELOG.md?raw'

const AboutSettings: FC = () => {
const [version, setVersion] = useState('')
Expand All @@ -23,6 +25,9 @@ const AboutSettings: FC = () => {
Cherry Studio <Version>(v{version})</Version>
</Title>
<Description>{t('settings.about.description')}</Description>
<ChangeLog>
<Markdown className="markdown">{changelogs}</Markdown>
</ChangeLog>
</Container>
)
}
Expand Down Expand Up @@ -55,4 +60,14 @@ const Description = styled.div`
text-align: center;
`

const ChangeLog = styled.div`
font-size: 14px;
color: var(--color-text-2);
background-color: var(--color-background-soft);
margin-top: 40px;
padding: 20px;
border-radius: 5px;
width: 800px;
`

export default AboutSettings

0 comments on commit e90ef9d

Please sign in to comment.