release: prepare Shift 0.1.16

Fix the Linux test build, the Windows history-import fixture, and the Recent
list layout.
main
mula.liu 2026-12-01 17:25:21 +08:00
parent 5cffbcafd9
commit 0dbf797a21
12 changed files with 95 additions and 32 deletions

View File

@ -10,6 +10,19 @@ repository, not in the source tree. See [`docs/INSTALL.md`](docs/INSTALL.md)
for installation and [`docs/RELEASE.md`](docs/RELEASE.md) for the channel for installation and [`docs/RELEASE.md`](docs/RELEASE.md) for the channel
itself. itself.
## 0.1.16 — 2026-12-01
### Fixed
- The Linux build of the test suite compiles again: the recording path now
resolves the capture region and output file before the Wayland branch uses
them.
- The Windows history-import test builds its fixture with `serde_json` instead
of pasting a path into a raw JSON string, so a path containing backslashes
no longer fails to parse.
- The Recent list's main row keeps its layout after the component-library
move, and long runtime-component paths ellipsize instead of overflowing.
## 0.1.15 — 2026-11-30 ## 0.1.15 — 2026-11-30
### Changed ### Changed

View File

@ -296,7 +296,7 @@ Each is overridable in Settings. File actions offer a *collect everything in one
Installing for the first time? [`docs/INSTALL.md`](docs/INSTALL.md) covers both platforms, first-run permissions and troubleshooting. Installing for the first time? [`docs/INSTALL.md`](docs/INSTALL.md) covers both platforms, first-run permissions and troubleshooting.
A new macOS machine installs **`Shift-0.1.15-macOS-universal.dmg`**: builds are ad-hoc signed and not notarized, so Gatekeeper calls Shift an unidentified developer. Double-click the image, drag `Shift.app` to /Applications, then allow the first launch once (right-click → Open, or Allow in System Settings → Privacy & Security). In-app updates download the same image without a browser, so they never prompt. Details in `docs/RELEASE.md`. A new macOS machine installs **`Shift-0.1.16-macOS-universal.dmg`**: builds are ad-hoc signed and not notarized, so Gatekeeper calls Shift an unidentified developer. Double-click the image, drag `Shift.app` to /Applications, then allow the first launch once (right-click → Open, or Allow in System Settings → Privacy & Security). In-app updates download the same image without a browser, so they never prompt. Details in `docs/RELEASE.md`.
The update channel is the upstream repository: a `releases` branch holding the installers plus `shift-update.json`, which names each artifact, its size and its SHA256. The feed URL is derived from the git remote at build time - Gitea, GitHub and GitLab forms are known, and `SHIFT_UPDATE_URL` overrides it - so no update service has to be deployed anywhere. The update channel is the upstream repository: a `releases` branch holding the installers plus `shift-update.json`, which names each artifact, its size and its SHA256. The feed URL is derived from the git remote at build time - Gitea, GitHub and GitLab forms are known, and `SHIFT_UPDATE_URL` overrides it - so no update service has to be deployed anywhere.
@ -381,7 +381,7 @@ pnpm mac:release
scripts/build-windows-release.sh scripts/build-windows-release.sh
``` ```
The release pipeline deliberately emits exactly two installers: `Shift-0.1.15-macOS-universal.dmg` and `Shift-Setup-0.1.15-win-x64.exe`. The macOS app is one universal Mach-O including universal drag, PDF-render and doc-render sidecars. Windows ARM64 uses the x64 installer through the update manifest's compatibility fallback. Full details are in `docs/BUILD_WINDOWS.md` and `docs/RELEASE.md`. The release pipeline deliberately emits exactly two installers: `Shift-0.1.16-macOS-universal.dmg` and `Shift-Setup-0.1.16-win-x64.exe`. The macOS app is one universal Mach-O including universal drag, PDF-render and doc-render sidecars. Windows ARM64 uses the x64 installer through the update manifest's compatibility fallback. Full details are in `docs/BUILD_WINDOWS.md` and `docs/RELEASE.md`.
**Permissions (macOS).** Screen Recording for capture, Files & Folders for the output folders you choose, Microphone when recording with audio, and Local Network for **Send to a device**. Shift checks Screen Recording before opening the overlay, so a denial surfaces an actionable error rather than a black screenshot. A denied Local Network grant is quieter: Shift still sends its beacons and still answers anyone who addresses it directly, but it receives no group traffic, so the device list simply stays empty. Ad-hoc signed builds get a new code identity on every rebuild and macOS keys these grants to that identity, so an upgrade can ask again; distribution with Developer ID keeps them stable. **Permissions (macOS).** Screen Recording for capture, Files & Folders for the output folders you choose, Microphone when recording with audio, and Local Network for **Send to a device**. Shift checks Screen Recording before opening the overlay, so a denial surfaces an actionable error rather than a black screenshot. A denied Local Network grant is quieter: Shift still sends its beacons and still answers anyone who addresses it directly, but it receives no group traffic, so the device list simply stays empty. Ad-hoc signed builds get a new code identity on every rebuild and macOS keys these grants to that identity, so an upgrade can ask again; distribution with Developer ID keeps them stable.

View File

@ -298,7 +298,7 @@ Shift 会持续维护局域网内其他 Shift 实例的列表,并据此提供
第一次安装?macOS 与 Windows 的安装步骤、首次运行授权与故障排查见 [`docs/INSTALL.md`](docs/INSTALL.md)。 第一次安装?macOS 与 Windows 的安装步骤、首次运行授权与故障排查见 [`docs/INSTALL.md`](docs/INSTALL.md)。
新的 macOS 机器请安装 **`Shift-0.1.15-macOS-universal.dmg`**:本项目的构建采用 ad-hoc 签名且未做公证,Gatekeeper 会把 Shift 判为身份不明的开发者。双击挂载镜像,把 `Shift.app` 拖进「应用程序」,然后允许首次启动一次(右键 → 打开,或在「系统设置 → 隐私与安全性」中点「允许」)。软件内升级自己下载的是同一个镜像、不经浏览器,因此不会弹窗。详见 `docs/RELEASE.md`。 新的 macOS 机器请安装 **`Shift-0.1.16-macOS-universal.dmg`**:本项目的构建采用 ad-hoc 签名且未做公证,Gatekeeper 会把 Shift 判为身份不明的开发者。双击挂载镜像,把 `Shift.app` 拖进「应用程序」,然后允许首次启动一次(右键 → 打开,或在「系统设置 → 隐私与安全性」中点「允许」)。软件内升级自己下载的是同一个镜像、不经浏览器,因此不会弹窗。详见 `docs/RELEASE.md`。
更新通道就是上游仓库:一条 `releases` 分支保存安装包以及 `shift-update.json` 清单,清单写明每个安装包的名称、体积与 SHA256。更新源地址在构建时由 git 远端推导——已适配 Gitea、GitHub、GitLab 三种形式,也可用 `SHIFT_UPDATE_URL` 覆盖——因此无需额外部署任何更新服务。 更新通道就是上游仓库:一条 `releases` 分支保存安装包以及 `shift-update.json` 清单,清单写明每个安装包的名称、体积与 SHA256。更新源地址在构建时由 git 远端推导——已适配 Gitea、GitHub、GitLab 三种形式,也可用 `SHIFT_UPDATE_URL` 覆盖——因此无需额外部署任何更新服务。
@ -372,7 +372,7 @@ pnpm mac:release
scripts/build-windows-release.sh scripts/build-windows-release.sh
``` ```
发布链只产出两个安装包:`Shift-0.1.15-macOS-universal.dmg` 与 `Shift-Setup-0.1.15-win-x64.exe`。macOS 是单个通用 Mach-O,内含通用版的拖拽、PDF 渲染与文档渲染伴生进程;Windows ARM64 通过更新清单的兼容回退使用 x64 安装包。完整步骤见 `docs/BUILD_WINDOWS.md` 与 `docs/RELEASE.md`。 发布链只产出两个安装包:`Shift-0.1.16-macOS-universal.dmg` 与 `Shift-Setup-0.1.16-win-x64.exe`。macOS 是单个通用 Mach-O,内含通用版的拖拽、PDF 渲染与文档渲染伴生进程;Windows ARM64 通过更新清单的兼容回退使用 x64 安装包。完整步骤见 `docs/BUILD_WINDOWS.md` 与 `docs/RELEASE.md`。
**权限(macOS)。** 截图与录屏需要「屏幕录制」,输出目录需要「文件与文件夹」授权,带声音录屏需要「麦克风」,「发送到设备」需要「本地网络」。Shift 会在打开截图遮罩前先检查屏幕录制权限,因此被拒绝时给出的是可操作的提示,而不是一张全黑的截图。「本地网络」被拒绝时比较安静:Shift 仍会发出广播、也能回应主动找它的实例,但收不到组播,设备列表于是始终为空。ad-hoc 签名每次重新构建都会得到新的代码身份,而 macOS 正是按这个身份记录上述授权,所以升级后可能重新询问;改用 Developer ID 签名即可保持稳定。 **权限(macOS)。** 截图与录屏需要「屏幕录制」,输出目录需要「文件与文件夹」授权,带声音录屏需要「麦克风」,「发送到设备」需要「本地网络」。Shift 会在打开截图遮罩前先检查屏幕录制权限,因此被拒绝时给出的是可操作的提示,而不是一张全黑的截图。「本地网络」被拒绝时比较安静:Shift 仍会发出广播、也能回应主动找它的实例,但收不到组播,设备列表于是始终为空。ad-hoc 签名每次重新构建都会得到新的代码身份,而 macOS 正是按这个身份记录上述授权,所以升级后可能重新询问;改用 Developer ID 签名即可保持稳定。

View File

@ -1,4 +1,4 @@
Shift 0.1.15 - macOS 通用(universal) Shift 0.1.16 - macOS 通用(universal)
本文件说明 macOS 安装包是怎么打出来的、在其它机器上会遇到什么,以及如何自己校验。 本文件说明 macOS 安装包是怎么打出来的、在其它机器上会遇到什么,以及如何自己校验。
完整细节见仓库 docs/RELEASE.md 的「macOS packaging」和 docs/ENGINEERING-NOTES.md 完整细节见仓库 docs/RELEASE.md 的「macOS packaging」和 docs/ENGINEERING-NOTES.md
@ -8,7 +8,7 @@ Shift 0.1.15 - macOS 通用(universal)
关于这个安装包 关于这个安装包
-------------- --------------
Shift 的 macOS 产物只有一个:Shift-0.1.15-macOS-universal.dmg,通用二进制,Apple silicon 与 Shift 的 macOS 产物只有一个:Shift-0.1.16-macOS-universal.dmg,通用二进制,Apple silicon 与
Intel 都能用。它既是新机器的首次安装方式,也是软件内升级的载体(更新清单里的 macos Intel 都能用。它既是新机器的首次安装方式,也是软件内升级的载体(更新清单里的 macos
键指向它)。清单的键必须是 .dmg,因为软件内升级的交接脚本要用 hdiutil 挂载镜像再 键指向它)。清单的键必须是 .dmg,因为软件内升级的交接脚本要用 hdiutil 挂载镜像再
取出应用包;早期曾随包发布的 .pkg 在验证过 DMG 可用后就撤掉了,不为它多维护一份 取出应用包;早期曾随包发布的 .pkg 在验证过 DMG 可用后就撤掉了,不为它多维护一份
@ -23,7 +23,7 @@ Intel 都能用。它既是新机器的首次安装方式,也是软件内升
---------------- ----------------
新机器首次安装 新机器首次安装
1. 下载并双击 Shift-0.1.15-macOS-universal.dmg 挂载镜像。 1. 下载并双击 Shift-0.1.16-macOS-universal.dmg 挂载镜像。
2. 把 Shift.app 拖进「应用程序」(或任何你有权限的位置)。 2. 把 Shift.app 拖进「应用程序」(或任何你有权限的位置)。
3. 首次启动会被拦:「无法打开,因为来自身份不明的开发者」。点取消,然后 3. 首次启动会被拦:「无法打开,因为来自身份不明的开发者」。点取消,然后
右键 Shift.app → 打开,或在「系统设置 → 隐私与安全性」中点「仍要打开」。 右键 Shift.app → 打开,或在「系统设置 → 隐私与安全性」中点「仍要打开」。
@ -70,7 +70,7 @@ macOS 权限
pnpm tauri build --target universal-apple-darwin --bundles app,dmg pnpm tauri build --target universal-apple-darwin --bundles app,dmg
`pnpm mac:release` 会构建、校验并复制为 artifacts/Shift-0.1.15-macOS-universal.dmg。 `pnpm mac:release` 会构建、校验并复制为 artifacts/Shift-0.1.16-macOS-universal.dmg。
发布流程(清单、签名、推送)见仓库 docs/RELEASE.md。 发布流程(清单、签名、推送)见仓库 docs/RELEASE.md。
若希望更新通道能校验来源,构建时把 ed25519 公钥编进去(发布流程见仓库 若希望更新通道能校验来源,构建时把 ed25519 公钥编进去(发布流程见仓库
@ -96,7 +96,7 @@ docs/RELEASE.md 的「Signing the channel」):
镜像完整性: 镜像完整性:
hdiutil verify Shift-0.1.15-macOS-universal.dmg hdiutil verify Shift-0.1.16-macOS-universal.dmg
校验后仍打不开的话,请确认不是在压缩包预览窗口里运行的,并按上面的「新机器首次安装」 校验后仍打不开的话,请确认不是在压缩包预览窗口里运行的,并按上面的「新机器首次安装」
处理首次允许:右键 → 打开,或在「系统设置 → 隐私与安全性」中点「仍要打开」。 处理首次允许:右键 → 打开,或在「系统设置 → 隐私与安全性」中点「仍要打开」。

View File

@ -12,8 +12,8 @@ An orphan branch named `releases` holds exactly one release:
releases/ releases/
├── shift-update.json ├── shift-update.json
├── shift-update.sig ├── shift-update.sig
├── Shift-0.1.15-macOS-universal.dmg ├── Shift-0.1.16-macOS-universal.dmg
└── Shift-Setup-0.1.15-win-x64.exe └── Shift-Setup-0.1.16-win-x64.exe
``` ```
`shift-update.json` names the version and, per platform, the artifact file, its size in `shift-update.json` names the version and, per platform, the artifact file, its size in
@ -22,12 +22,12 @@ bytes and its SHA256:
```json ```json
{ {
"schema": 1, "schema": 1,
"version": "0.1.15", "version": "0.1.16",
"date": "2026-10-26", "date": "2026-10-26",
"notes": "", "notes": "",
"artifacts": { "artifacts": {
"macos": { "file": "Shift-0.1.15-macOS-universal.dmg", "sha256": "…", "size": 0 }, "macos": { "file": "Shift-0.1.16-macOS-universal.dmg", "sha256": "…", "size": 0 },
"windows": { "file": "Shift-Setup-0.1.15-win-x64.exe", "sha256": "…", "size": 0 } "windows": { "file": "Shift-Setup-0.1.16-win-x64.exe", "sha256": "…", "size": 0 }
} }
} }
``` ```

View File

@ -1,7 +1,7 @@
{ {
"name": "shift", "name": "shift",
"private": true, "private": true,
"version": "0.1.15", "version": "0.1.16",
"license": "GPL-3.0-only", "license": "GPL-3.0-only",
"type": "module", "type": "module",
"scripts": { "scripts": {

2
src-tauri/Cargo.lock generated
View File

@ -3899,7 +3899,7 @@ dependencies = [
[[package]] [[package]]
name = "shift" name = "shift"
version = "0.1.15" version = "0.1.16"
dependencies = [ dependencies = [
"base64 0.22.1", "base64 0.22.1",
"calamine", "calamine",

View File

@ -1,6 +1,6 @@
[package] [package]
name = "shift" name = "shift"
version = "0.1.15" version = "0.1.16"
description = "A radial file utility with screenshot, recording and OCR." description = "A radial file utility with screenshot, recording and OCR."
authors = ["mula.liu"] authors = ["mula.liu"]
license = "GPL-3.0-only" license = "GPL-3.0-only"

View File

@ -273,7 +273,10 @@ mod tests {
// What 0.1.0 kept in localStorage: a path, a kind it guessed, and a // What 0.1.0 kept in localStorage: a path, a kind it guessed, and a
// timestamp. No pin, since that column did not exist yet. // timestamp. No pin, since that column did not exist yet.
let here = real_path(); let here = real_path();
let json = format!(r#"[{{"path":"{here}","kind":"image","at":1730000000000}}]"#); let json = serde_json::json!([
{ "path": here, "kind": "image", "at": 1_730_000_000_000u64 }
])
.to_string();
let legacy: Vec<HistoryEntry> = serde_json::from_str(&json).unwrap(); let legacy: Vec<HistoryEntry> = serde_json::from_str(&json).unwrap();
assert_eq!(legacy.len(), 1); assert_eq!(legacy.len(), 1);
assert!(!legacy[0].pinned); assert!(!legacy[0].pinned);

View File

@ -177,6 +177,8 @@ fn start_process(
{ {
// No audio input is wired into the ffmpeg grab yet; see `capabilities`. // No audio input is wired into the ffmpeg grab yet; see `capabilities`.
let _ = options.audio; let _ = options.audio;
let region = physical_region(app, state, rect)?;
let output = output_path(app, "mp4")?;
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
{ {
// Under Wayland there is no root window to grab, so ffmpeg's x11grab would // Under Wayland there is no root window to grab, so ffmpeg's x11grab would
@ -202,8 +204,6 @@ fn start_process(
} }
let ffmpeg = crate::files::resolve_tool("ffmpeg") let ffmpeg = crate::files::resolve_tool("ffmpeg")
.ok_or_else(|| "Screen recording needs ffmpeg on Windows and Linux.".to_string())?; .ok_or_else(|| "Screen recording needs ffmpeg on Windows and Linux.".to_string())?;
let region = physical_region(app, state, rect)?;
let output = output_path(app, "mp4")?;
let mut command = crate::process::command(ffmpeg); let mut command = crate::process::command(ffmpeg);
let size = format!( let size = format!(
"{}x{}", "{}x{}",

View File

@ -1,7 +1,7 @@
{ {
"$schema": "https://schema.tauri.app/config/2", "$schema": "https://schema.tauri.app/config/2",
"productName": "Shift", "productName": "Shift",
"version": "0.1.15", "version": "0.1.16",
"identifier": "app.nex.shift", "identifier": "app.nex.shift",
"build": { "build": {
"beforeDevCommand": "pnpm dev", "beforeDevCommand": "pnpm dev",

View File

@ -1451,16 +1451,6 @@ body[data-view="editor"] {
box-shadow: inset 0 0 0 1px rgba(96, 60, 39, 0.05); box-shadow: inset 0 0 0 1px rgba(96, 60, 39, 0.05);
} }
.home-recent-main {
display: flex;
flex: 1;
min-width: 0;
align-items: center;
gap: 11px;
width: 100%;
padding: 7px;
}
.home-recent-actions { .home-recent-actions {
flex: none; flex: none;
display: flex; display: flex;
@ -2752,9 +2742,23 @@ body[data-view="radial"] .share-backdrop {
} }
.home-recent-search { .home-recent-search {
flex: none;
margin-top: 12px; margin-top: 12px;
} }
.home-recent-main {
display: flex;
flex: 1 1 0%;
min-width: 0;
align-items: center;
justify-content: flex-start;
gap: 11px;
width: auto;
padding: 7px;
border: 0;
text-align: left;
}
.settings-output-actions .ui-button { .settings-output-actions .ui-button {
flex: 1; flex: 1;
} }
@ -2802,10 +2806,13 @@ body[data-view="radial"] .share-backdrop {
} }
.runtime-path.ui-code { .runtime-path.ui-code {
display: flex; display: block;
width: 100%; width: 100%;
margin-top: 7px; margin-top: 7px;
padding: 6px 8px; padding: 6px 8px;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-family: var(--ui-font-mono); font-family: var(--ui-font-mono);
font-size: var(--ui-text-3xs); font-size: var(--ui-text-3xs);
} }
@ -2822,6 +2829,16 @@ body[data-view="radial"] .share-backdrop {
display: flex; display: flex;
min-width: 0; min-width: 0;
align-items: center; align-items: center;
gap: 6px;
cursor: grab;
}
.share-file-row.ui-checkbox:active {
cursor: grabbing;
}
.share-file-row.ui-checkbox:has(input:disabled) {
cursor: default;
} }
.share-file-row { .share-file-row {
@ -2876,8 +2893,12 @@ body[data-view="radial"] .share-backdrop {
} }
.update-artifact.ui-surface { .update-artifact.ui-surface {
display: flex;
align-items: center;
gap: 7px;
margin-top: 12px; margin-top: 12px;
padding: 8px 10px; padding: 8px 10px;
font-size: var(--ui-text-2xs);
} }
.update-progress.ui-progress { .update-progress.ui-progress {
@ -2889,6 +2910,7 @@ body[data-view="radial"] .share-backdrop {
margin-top: 10px; margin-top: 10px;
padding: 0; padding: 0;
background: transparent; background: transparent;
word-break: break-all;
} }
.update-actions .ui-button { .update-actions .ui-button {
@ -2901,6 +2923,31 @@ body[data-view="radial"] .share-backdrop {
right: 36px; right: 36px;
} }
.radial-label.ui-button {
padding: 2px;
border: 0;
color: #2d1a11;
transform: translate(-50%, -50%);
}
.radial-label.ui-button:hover:not(:disabled),
.radial-label.ui-button:active:not(:disabled) {
color: #2d1a11;
transform: translate(-50%, -50%);
}
.radial-label.ui-button.is-active,
.radial-label.ui-button.is-active:hover:not(:disabled),
.radial-label.ui-button.is-active:active:not(:disabled) {
color: #24120a;
transform: translate(-50%, -50%) scale(1.08);
}
.ocr-output.ui-textarea {
min-height: 0;
resize: none;
}
.main-toast.ui-toast { .main-toast.ui-toast {
position: fixed; position: fixed;
left: 50%; left: 50%;