Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions openless-all/app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion openless-all/app/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion openless-all/app/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion openless-all/app/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion openless-all/app/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
7 changes: 5 additions & 2 deletions scripts/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Loading