chore(release): prepare 1.3.15(正式版版本号)+ 修复 bump 脚本误改依赖版本 (#893)

* fix(scripts): bump-version.sh 锚定 [package] 段,避免误改依赖版本

* chore(release): prepare 1.3.15

---------

Co-authored-by: sim <sim@local>
This commit is contained in:
TRIPandsim authored and GitHub committed 2026-08-03 21:27:10 +08:00
1 parent 9bfec8aedd
commit a3d014b687
6 files changed
+11 -8

No files matched your search

+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "openless-app",
"version": "1.3.15-Beta.4",
"version": "1.3.15",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "openless-app",
"version": "1.3.15-Beta.4",
"version": "1.3.15",
"dependencies": {
"@base-ui/react": "^1.6.0",
"@formkit/auto-animate": "^0.9.0",
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "openless-app",
"private": true,
"version": "1.3.15-Beta.4",
"version": "1.3.15",
"type": "module",
"scripts": {
"pretest": "npm run build",
+1 -1
View File
@@ -3909,7 +3909,7 @@ dependencies = [
[[package]]
name = "openless"
version = "1.3.15-Beta.4"
version = "1.3.15"
dependencies = [
"anyhow",
"arboard",
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "openless"
version = "1.3.15-Beta.4"
version = "1.3.15"
description = "OpenLess — local voice input that types where your cursor is"
authors = ["OpenLess"]
edition = "2021"
+1 -1
View File
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "OpenLess",
"version": "1.3.15-Beta.4",
"version": "1.3.15",
"identifier": "com.openless.app",
"build": {
"beforeDevCommand": "npm run dev",
+5 -2
View File
@@ -55,11 +55,14 @@ sed -E -i.bak \
"$TAURI_CONF"
rm "$TAURI_CONF.bak"
# Cargo.toml:用 awk 替换文件里第一个 version = "X.Y.Z" 行(顶层 [package].version)。
# Cargo.toml:用 awk 替换 [package] 段里的 version = "X.Y.Z" 行。
# 必须锚定 [package] 段:文件里先出现的纯 X.Y.Z 版本行可能是依赖版本
# (如 keyring 的 `version = "3.6.3"`),不带锚定会把依赖版本误改成新版本号。
# 不用 GNU sed 的 `0,/.../` 行号范围地址(macOS BSD sed 不支持)。
echo "▶ 升 Cargo.toml → $NEW"
awk -v new="$NEW" '
!done && /^version = "[0-9]+\.[0-9]+\.[0-9]+"$/ {
/^\[package\]$/ { in_package = 1 }
in_package && !done && /^version = "[0-9]+\.[0-9]+\.[0-9]+"$/ {
sub(/"[0-9]+\.[0-9]+\.[0-9]+"/, "\"" new "\"")
done = 1
}