build(config): 📦 增加release-it来标签发版
This commit is contained in:
37
.release-it.json
Normal file
37
.release-it.json
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"plugins": {
|
||||
"@release-it/conventional-changelog": {
|
||||
"preset": {
|
||||
"name": "conventionalcommits",
|
||||
"types": [
|
||||
{ "type": "feat", "section": "✨ Features | 新功能" },
|
||||
{ "type": "fix", "section": "🐛 Bug Fixes | Bug 修复" },
|
||||
{ "type": "chore", "section": "🎫 Chores | 其他更新", "hidden": true },
|
||||
{ "type": "docs", "section": "📝 Documentation | 文档", "hidden": true },
|
||||
{ "type": "style", "section": "💄 Styles | 风格", "hidden": true },
|
||||
{ "type": "refactor", "section": "♻️ Code Refactoring | 代码重构", "hidden": true },
|
||||
{ "type": "perf", "section": "⚡️ Performance Improvements | 性能优化" },
|
||||
{ "type": "test", "section": "✅ Tests | 测试", "hidden": true },
|
||||
{ "type": "revert", "section": "⏪ Reverts | 回退", "hidden": true },
|
||||
{ "type": "build", "section": "👷 Build System | 构建", "hidden": true },
|
||||
{ "type": "ci", "section": "🔧 Continuous Integration | CI 配置", "hidden": true },
|
||||
{ "type": "config", "section": "🔨 CONFIG | 配置", "hidden": true }
|
||||
]
|
||||
},
|
||||
"infile": "CHANGELOG.md",
|
||||
"ignoreRecommendedBump": true,
|
||||
"strictSemVer": true
|
||||
}
|
||||
},
|
||||
"git": {
|
||||
"commitMessage": "chore: 发布 v${version}"
|
||||
},
|
||||
"npm": {
|
||||
"publish": false
|
||||
},
|
||||
"github": {
|
||||
"release": true,
|
||||
"draft": true,
|
||||
"releaseName": "v${version}"
|
||||
}
|
||||
}
|
||||
148
CHANGELOG.md
148
CHANGELOG.md
@@ -1,148 +0,0 @@
|
||||
# [2.3.0](https://github.com/HuLaSpark/HuLa/compare/v2.2.0...v2.3.0) (2024-10-15)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **view:** :bug: 修复侧边栏文字模式下更多图标的样式 ([9d23424](https://github.com/HuLaSpark/HuLa/commit/9d234245877979cc031763a380dc264ea39bc74a)), closes [#IAVNW7](https://github.com/HuLaSpark/HuLa/issues/IAVNW7)
|
||||
* **view:** :bug: 状态栏菜单bug修复 ([845b83e](https://github.com/HuLaSpark/HuLa/commit/845b83ebcd7b993468b335073b0b9c7a23b6eddd))
|
||||
|
||||
|
||||
### Performance Improvements
|
||||
|
||||
* **system:** :zap: tauri-v2.0rc版本升级到正式版本 ([a34b2ce](https://github.com/HuLaSpark/HuLa/commit/a34b2cea9910da1d3e1ecbaf5c8fa98ad7a88438))
|
||||
|
||||
|
||||
|
||||
# [2.2.0](https://github.com/HuLaSpark/HuLa/compare/v2.1.0...v2.2.0) (2024-10-08)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **common:** :bug: 修复插件下载模块进度问题 ([85bc525](https://github.com/HuLaSpark/HuLa/commit/85bc525c1191d65eee0aef0592bf6a2e47746244))
|
||||
* **component:** :bug: 修复ait弹出框问题 ([b40d233](https://github.com/HuLaSpark/HuLa/commit/b40d233e999143f734b9a10715f872fade33f0c4))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **common:** :sparkles: 在设置中新增指引视频 ([e8a8acf](https://github.com/HuLaSpark/HuLa/commit/e8a8acf99007383df3f898947da9798cf6b8c376))
|
||||
* **component:** :sparkles: 新增苹方作为默认字体 ([aa1e07b](https://github.com/HuLaSpark/HuLa/commit/aa1e07b521f2f991d25a115d489c2b7a810c3313)), closes [#15](https://github.com/HuLaSpark/HuLa/issues/15)
|
||||
* **style:** :sparkles: 完善超级变变变样式更改 ([4b25751](https://github.com/HuLaSpark/HuLa/commit/4b25751e6e6aa0706090c3e8cd3c6bffa4d61468))
|
||||
* **style:** :sparkles: 新增超级变变变功能(Beta) ([16b0879](https://github.com/HuLaSpark/HuLa/commit/16b08797eceff2779a561dfb1d09bb31aa481473))
|
||||
|
||||
|
||||
### Performance Improvements
|
||||
|
||||
* :zap: 发布v2.2.0版本 ([2a47187](https://github.com/HuLaSpark/HuLa/commit/2a47187f8726b6e38ffbf76bda034e6daeaebbd8))
|
||||
* **style:** :zap: 优化顶部栏和其他内容的一些样式 ([90929a4](https://github.com/HuLaSpark/HuLa/commit/90929a44312af5b93344c4169c0fc77b5d03fe9b))
|
||||
* **style:** :zap: 优化聊天框内主题适配 ([60055af](https://github.com/HuLaSpark/HuLa/commit/60055afd1a58e12700c2e68995aa7068168b6318))
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* **style:** 修复mac端图标和windows端图标的大小不一致问题|重新单独配置不同系统的不同tauri.conf.json文件
|
||||
* **component:** 使用本地连接icon
|
||||
|
||||
|
||||
|
||||
# [2.1.0](https://github.com/HuLaSpark/HuLa/compare/v2.0.0...v2.1.0) (2024-09-13)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **component:** :bug: 修复系统托盘功能和一些样式问题 ([18277ef](https://github.com/HuLaSpark/HuLa/commit/18277ef0f1ce286b77b91dbc8c6ea8a628eba7d3))
|
||||
* **component:** :bug: 修复windows上的样式问题 ([bb6a9d4](https://github.com/HuLaSpark/HuLa/commit/bb6a9d440db4777989d9a922a5135350e2dbf894))
|
||||
* **layout:** :bug: 修复ts类型错误导致打包出差问题 ([0d7f7e0](https://github.com/HuLaSpark/HuLa/commit/0d7f7e024d9404fe5fe6829504594a902c27c501))
|
||||
* **style:** :bug: 统一修复svg点击时有轮廓问题 ([ce68fa1](https://github.com/HuLaSpark/HuLa/commit/ce68fa134368b34802d5b101a1f98a2493f7120b))
|
||||
* **system:** :bug: 修复mac端右键菜单透明度问题 ([39d795f](https://github.com/HuLaSpark/HuLa/commit/39d795ff655afd699340d3021a0b471c3060b11c))
|
||||
* **system:** :bug: 修复win下窗口高度不一致问题 ([30bb3de](https://github.com/HuLaSpark/HuLa/commit/30bb3de5d10ffea949c32b505f6501b3f7d0f573))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* chatbot删除全部会话功能和右键菜单重命名 ([3426c5f](https://github.com/HuLaSpark/HuLa/commit/3426c5f24fafe66c3543ee8f4172d2dae05740e4))
|
||||
* **component:** :sparkles: 新增插件功能(Bate) ([392b7c9](https://github.com/HuLaSpark/HuLa/commit/392b7c99bd38fd2f298e7732499dc7510e4d286a))
|
||||
|
||||
|
||||
### Performance Improvements
|
||||
|
||||
* :zap: 优化mac标签栏 ([a7c587d](https://github.com/HuLaSpark/HuLa/commit/a7c587d74b771e32e3b61eaef2ba5c902c0e4f6f))
|
||||
* **component:** :zap: 升级插件版本内容及其样式 ([8d65ca1](https://github.com/HuLaSpark/HuLa/commit/8d65ca198fa8a01252e0dc7f07f4bd6c796dbfe1))
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* **system:** 新增mac端弹出框的关闭按钮
|
||||
|
||||
|
||||
|
||||
# [2.0.0](https://github.com/HuLaSpark/HuLa/compare/v1.6.0...v2.0.0) (2024-08-15)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **system:** :bug: 修复mac端兼容问题 ([0daef59](https://github.com/HuLaSpark/HuLa/commit/0daef59a9f41326a8e82885c3b84857ec3761e92))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **common:** :sparkles: 新增修改字体功能 ([6bd6f64](https://github.com/HuLaSpark/HuLa/commit/6bd6f641f1c012dd53bd7dcb5cf4a314bf7d527b))
|
||||
* **component:** :sparkles: 新增是否启用界面阴影功能、收缩页面按钮功能 ([085a773](https://github.com/HuLaSpark/HuLa/commit/085a773967fd0a26525a2f87dc1d8fddb8d71f1a))
|
||||
* **view:** :sparkles: 新增搜索页面功能 ([866ba89](https://github.com/HuLaSpark/HuLa/commit/866ba89b93d1a2587afb16fac745779093b9af19))
|
||||
* **view:** :sparkles: 新增锁屏功能 ([1407343](https://github.com/HuLaSpark/HuLa/commit/14073438d5a9dc82117a84f97b5bd8f239fdfcd4))
|
||||
|
||||
|
||||
### Performance Improvements
|
||||
|
||||
* :zap: 优化锁屏页面功能 ([85b6cad](https://github.com/HuLaSpark/HuLa/commit/85b6cad03fdcd538adbdae9fc2e63e0ef72b465a))
|
||||
* **system:** :zap: 升级tauri-v2版本 ([57dcad1](https://github.com/HuLaSpark/HuLa/commit/57dcad1e9306421c161d555181a9deda48f5685e))
|
||||
|
||||
|
||||
|
||||
# [1.6.0](https://github.com/HuLaSpark/HuLa/compare/v1.5.0...v1.6.0) (2024-07-03)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **components:** :bug: 修复回复功能缺陷 ([af50422](https://github.com/HuLaSpark/HuLa/commit/af5042261bc598a68b94db780a332ab38d5a577c))
|
||||
* **hook:** :bug: 修复回复功能不显示问题 ([9d0fee7](https://github.com/HuLaSpark/HuLa/commit/9d0fee7e5eb0919846d526b1f5a331d3a47f68d8))
|
||||
* **rust:** :bug: 修复mac系统背景玻璃拟态导致的问题 (#IA5AO8) ([89a7605](https://github.com/HuLaSpark/HuLa/commit/89a7605055d3ab7de83491e1745773458237d7d3)), closes [#IA5AO8](https://github.com/HuLaSpark/HuLa/issues/IA5AO8)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* :sparkles: 发布v1.6.0版本 ([71a1dd9](https://github.com/HuLaSpark/HuLa/commit/71a1dd93833d4c9534945f28fe636115ef59e862))
|
||||
* **component:** :sparkles: 新增GPT欢迎页面,完善设置页面 ([9b771e0](https://github.com/HuLaSpark/HuLa/commit/9b771e02ec31af1238f9662e839df6197f501376))
|
||||
* **component:** :sparkles: 新增GPT页面设置功能 ([4c85b4a](https://github.com/HuLaSpark/HuLa/commit/4c85b4afccdafe83aa0fcbd53e94ef5fc63a7a70))
|
||||
* **component:** :sparkles: 新增GPT组件 ([7260840](https://github.com/HuLaSpark/HuLa/commit/7260840f4b50bcbb4dad8645a84ade8280de4036))
|
||||
* **components:** :sparkles: 实现群聊回复表情功能 ([1fb3530](https://github.com/HuLaSpark/HuLa/commit/1fb3530cbdceef702430b272b99d3e99277c52d0))
|
||||
* **components:** :sparkles: 完善右键功能的显示资料 ([cf4820b](https://github.com/HuLaSpark/HuLa/commit/cf4820bffbdee50fc1e7b44c72b51cd2c4d80091))
|
||||
* **style:** :sparkles: 新增项目版本信息打印 ([e17cb7c](https://github.com/HuLaSpark/HuLa/commit/e17cb7c24a233417ab34a1de3b04cbdc32ebc2e0))
|
||||
* **view:** :sparkles: 新增GPT首页推荐功能样式 ([e927a95](https://github.com/HuLaSpark/HuLa/commit/e927a95fa4f95da7299459941b00d2f633217bca))
|
||||
|
||||
|
||||
### Performance Improvements
|
||||
|
||||
* **components:** :zap: 优化表情回应 ([94d2cb1](https://github.com/HuLaSpark/HuLa/commit/94d2cb1fec8db8901ffc85cdf8680919c58abf11))
|
||||
* **components:** :zap: 优化群聊回复表情功能 ([0c4615d](https://github.com/HuLaSpark/HuLa/commit/0c4615d4135fb3f740cb88f8f38502c9fc90bc5d))
|
||||
* **services:** :zap: 优化请求接口以及消息提示 ([0355f97](https://github.com/HuLaSpark/HuLa/commit/0355f976b854d96e613160d2bf6cc7e5605ea0ac))
|
||||
* **system:** :zap: 对接后端服务 ([ea4b82b](https://github.com/HuLaSpark/HuLa/commit/ea4b82be25a058a198716cebcf8becfcf252819c))
|
||||
* **views:** :zap: 优化页面收缩功能 ([31f7e17](https://github.com/HuLaSpark/HuLa/commit/31f7e1732cbe571e3f53564c57a339812b2c1a5b))
|
||||
|
||||
|
||||
|
||||
# [1.5.0](https://github.com/HuLaSpark/HuLa/compare/v1.4.0...v1.5.0) (2024-04-19)
|
||||
|
||||
|
||||
|
||||
# [1.4.0](https://github.com/HuLaSpark/HuLa/compare/v1.3.0-beta...v1.4.0) (2024-04-01)
|
||||
|
||||
|
||||
|
||||
# [1.3.0-beta](https://github.com/HuLaSpark/HuLa/compare/v1.2.9-alpha...v1.3.0-beta) (2024-03-12)
|
||||
|
||||
|
||||
|
||||
## 1.2.9-alpha (2024-03-08)
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "hula",
|
||||
"type": "module",
|
||||
"version": "v2.3.0",
|
||||
"version": "2.3.0",
|
||||
"license": "Apache-2.0",
|
||||
"engines": {
|
||||
"node": ">=18.12.0",
|
||||
@@ -31,10 +31,9 @@
|
||||
"tauri:icon": "tauri icon hula.png",
|
||||
"preinstall": "npx only-allow pnpm",
|
||||
"commit": "git add . && git-cz",
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
|
||||
"lint:staged": "lint-staged",
|
||||
"prepare": "husky install",
|
||||
"release": "release-it --no-npm"
|
||||
"release": "release-it"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tauri-apps/api": "2.0.2",
|
||||
@@ -61,6 +60,7 @@
|
||||
"@babel/eslint-parser": "^7.24.7",
|
||||
"@commitlint/cli": "^19.3.0",
|
||||
"@commitlint/config-conventional": "^19.2.2",
|
||||
"@release-it/conventional-changelog": "8.0.2",
|
||||
"@rollup/plugin-terser": "^0.4.4",
|
||||
"@tauri-apps/cli": "2.0.0",
|
||||
"@types/lodash-es": "^4.17.12",
|
||||
@@ -76,8 +76,6 @@
|
||||
"@vitejs/plugin-vue-jsx": "^4.0.0",
|
||||
"@vueuse/core": "^10.11.0",
|
||||
"commitizen": "^4.3.0",
|
||||
"conventional-changelog": "^6.0.0",
|
||||
"conventional-changelog-cli": "^5.0.0",
|
||||
"cz-git": "^1.9.3",
|
||||
"eslint": "^8.57.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
@@ -88,6 +86,7 @@
|
||||
"lint-staged": "^15.2.7",
|
||||
"oxlint": "^0.2.18",
|
||||
"prettier": "^3.3.2",
|
||||
"release-it": "^17.10.0",
|
||||
"sass": "1.77.6",
|
||||
"typescript": "^5.6.2",
|
||||
"unplugin-auto-import": "^0.18.2",
|
||||
|
||||
1391
pnpm-lock.yaml
generated
1391
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
2
src-tauri/Cargo.lock
generated
2
src-tauri/Cargo.lock
generated
@@ -2070,7 +2070,7 @@ checksum = "0fcc0b4a115bf80b728eb8ea024ad5bd707b615bfed49e0665b6e0f86fd082d9"
|
||||
|
||||
[[package]]
|
||||
name = "hula"
|
||||
version = "2.3.0"
|
||||
version = "2.4.0"
|
||||
dependencies = [
|
||||
"base64 0.22.1",
|
||||
"lazy_static",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "hula"
|
||||
version = "2.3.0"
|
||||
version = "2.4.0"
|
||||
description = "hula"
|
||||
authors = ["nongyehong"]
|
||||
license = ""
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"productName": "HuLa",
|
||||
"version": "2.3.0",
|
||||
"version": "2.4.0",
|
||||
"identifier": "com.tauri.build",
|
||||
"build": {
|
||||
"beforeDevCommand": "pnpm dev",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"productName": "HuLa",
|
||||
"version": "2.3.0",
|
||||
"version": "2.4.0",
|
||||
"identifier": "com.tauri.build",
|
||||
"build": {
|
||||
"beforeDevCommand": "pnpm dev",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"productName": "HuLa",
|
||||
"version": "2.3.0",
|
||||
"version": "2.4.0",
|
||||
"identifier": "com.tauri.build",
|
||||
"build": {
|
||||
"beforeDevCommand": "pnpm dev",
|
||||
|
||||
@@ -108,12 +108,10 @@ export const LockScreen = defineComponent(() => {
|
||||
|
||||
/**
|
||||
* 检查更新弹窗
|
||||
* 需要按照版本号次版本号不能超过40
|
||||
* @example v2.0.0 -> v2.39.0 -> v3.0.0
|
||||
*/
|
||||
export const CheckUpdate = defineComponent(() => {
|
||||
const url = ref(
|
||||
`https://gitee.com/api/v5/repos/HuLaSpark/HuLa/releases/tags/${pkg.version}?access_token=${import.meta.env.VITE_GITEE_TOKEN}`
|
||||
`https://gitee.com/api/v5/repos/HuLaSpark/HuLa/releases/tags/v${pkg.version}?access_token=${import.meta.env.VITE_GITEE_TOKEN}`
|
||||
)
|
||||
/** 项目提交日志记录 */
|
||||
const commitLog = ref<{ message: string; icon: string }[]>([])
|
||||
@@ -205,7 +203,7 @@ export const CheckUpdate = defineComponent(() => {
|
||||
|
||||
const checkUpdate = () => {
|
||||
const url = `https://gitee.com/api/v5/repos/HuLaSpark/HuLa/tags?access_token=${import.meta.env.VITE_GITEE_TOKEN}&sort=name&direction=desc&page=1&per_page=1`
|
||||
if (lastVersion && lastVersion === `${pkg.version}`) {
|
||||
if (lastVersion && lastVersion === `v${pkg.version}`) {
|
||||
window.$message.success('当前已是最新版本')
|
||||
return
|
||||
}
|
||||
@@ -214,10 +212,10 @@ export const CheckUpdate = defineComponent(() => {
|
||||
res
|
||||
.json()
|
||||
.then(async (data) => {
|
||||
if (data[0].name === `${pkg.version}`) {
|
||||
if (data[0].name === `v${pkg.version}`) {
|
||||
setTimeout(() => {
|
||||
window.$message.success('当前已是最新版本')
|
||||
lastVersion = `${pkg.version}`
|
||||
lastVersion = `v${pkg.version}`
|
||||
checkLoading.value = false
|
||||
}, 600)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user