2026-10-21 00:54:54 +00:00
|
|
|
{
|
|
|
|
|
"$schema": "https://schema.tauri.app/config/2",
|
|
|
|
|
"productName": "Shift",
|
release: 0.1.3 — the Recent list survives an upgrade
The Updates tab drops the "installs the ... artifact" chip, and the state label
now leads the status row instead of floating right, since the version it used to
sit beside moved into the header.
The file list no longer disappears on upgrade:
- The library already lived in the app data directory, outside the bundle, so an
in-app update or reinstall never touched `history.json`. What it never had was a
bridge from the store 0.1 used: that list lived in the webview's own storage,
which a reinstall does not survive, so the first launch of a newer build showed
an empty Recent list over files that were all still on disk.
- `history_import` merges those rows once, on the first launch after an upgrade.
An entry the library already lists keeps its own timestamp, the kind is
re-derived from the file rather than taken from the older store's guess, and the
legacy key is dropped only after the merge succeeds so a later upgrade cannot
resurrect rows the user has since removed.
- `HistoryEntry.kind`/`.at` gained serde defaults, so a row from the older store
degrades to a usable entry instead of failing the whole import.
Verified on this machine that the legacy `shift.recent` key is still present in the
installed app's webview store, so the import has rows to adopt.
Gates: cargo fmt --check clean, `cargo test --lib` 149 passed / 2 ignored,
`pnpm check` clean, `pnpm test` 38 passed, `pnpm build` ok.
2026-10-25 20:02:31 +00:00
|
|
|
"version": "0.1.3",
|
2026-10-21 00:54:54 +00:00
|
|
|
"identifier": "app.nex.shift",
|
|
|
|
|
"build": {
|
|
|
|
|
"beforeDevCommand": "pnpm dev",
|
|
|
|
|
"devUrl": "http://localhost:1420",
|
|
|
|
|
"beforeBuildCommand": "pnpm build",
|
|
|
|
|
"frontendDist": "../dist"
|
|
|
|
|
},
|
|
|
|
|
"app": {
|
|
|
|
|
"macOSPrivateApi": true,
|
|
|
|
|
"windows": [
|
|
|
|
|
{
|
|
|
|
|
"label": "main",
|
|
|
|
|
"title": "Shift",
|
|
|
|
|
"url": "index.html?view=main",
|
|
|
|
|
"width": 1080,
|
|
|
|
|
"height": 720,
|
|
|
|
|
"minWidth": 900,
|
|
|
|
|
"minHeight": 620,
|
|
|
|
|
"center": true,
|
|
|
|
|
"visible": true,
|
|
|
|
|
"titleBarStyle": "Overlay",
|
|
|
|
|
"hiddenTitle": true,
|
|
|
|
|
"acceptFirstMouse": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "radial",
|
|
|
|
|
"title": "Shift Radial",
|
|
|
|
|
"url": "index.html?view=radial",
|
|
|
|
|
"width": 760,
|
|
|
|
|
"height": 760,
|
|
|
|
|
"resizable": false,
|
|
|
|
|
"decorations": false,
|
|
|
|
|
"transparent": true,
|
|
|
|
|
"alwaysOnTop": true,
|
|
|
|
|
"skipTaskbar": true,
|
2026-10-25 04:24:05 +00:00
|
|
|
"visible": true,
|
2026-10-21 00:54:54 +00:00
|
|
|
"focus": false,
|
|
|
|
|
"shadow": false,
|
|
|
|
|
"acceptFirstMouse": true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "capture",
|
|
|
|
|
"title": "Shift Capture",
|
|
|
|
|
"url": "index.html?view=capture",
|
|
|
|
|
"width": 1200,
|
|
|
|
|
"height": 800,
|
|
|
|
|
"resizable": false,
|
|
|
|
|
"decorations": false,
|
|
|
|
|
"alwaysOnTop": true,
|
|
|
|
|
"skipTaskbar": true,
|
|
|
|
|
"visible": false,
|
|
|
|
|
"focus": true,
|
|
|
|
|
"shadow": false
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"label": "recorder",
|
|
|
|
|
"title": "Shift Recorder",
|
|
|
|
|
"url": "index.html?view=recorder",
|
|
|
|
|
"width": 300,
|
|
|
|
|
"height": 88,
|
|
|
|
|
"resizable": false,
|
|
|
|
|
"decorations": false,
|
|
|
|
|
"transparent": true,
|
|
|
|
|
"alwaysOnTop": true,
|
|
|
|
|
"skipTaskbar": true,
|
|
|
|
|
"visible": false,
|
|
|
|
|
"focus": false,
|
|
|
|
|
"shadow": false,
|
|
|
|
|
"acceptFirstMouse": true
|
|
|
|
|
},
|
2026-10-25 04:24:05 +00:00
|
|
|
{
|
|
|
|
|
"label": "pin",
|
|
|
|
|
"title": "Shift Pin",
|
|
|
|
|
"url": "index.html?view=pin",
|
|
|
|
|
"width": 360,
|
|
|
|
|
"height": 360,
|
|
|
|
|
"minWidth": 120,
|
|
|
|
|
"minHeight": 80,
|
|
|
|
|
"resizable": true,
|
|
|
|
|
"decorations": false,
|
|
|
|
|
"transparent": false,
|
|
|
|
|
"alwaysOnTop": true,
|
|
|
|
|
"skipTaskbar": true,
|
|
|
|
|
"visible": false,
|
|
|
|
|
"focus": false,
|
|
|
|
|
"shadow": false,
|
|
|
|
|
"acceptFirstMouse": true
|
|
|
|
|
},
|
2026-10-21 00:54:54 +00:00
|
|
|
{
|
|
|
|
|
"label": "editor",
|
|
|
|
|
"title": "Shift Editor",
|
|
|
|
|
"url": "index.html?view=editor",
|
|
|
|
|
"width": 1120,
|
|
|
|
|
"height": 780,
|
|
|
|
|
"minWidth": 820,
|
|
|
|
|
"minHeight": 580,
|
|
|
|
|
"resizable": true,
|
|
|
|
|
"decorations": true,
|
|
|
|
|
"visible": false,
|
|
|
|
|
"center": true,
|
|
|
|
|
"titleBarStyle": "Overlay",
|
|
|
|
|
"hiddenTitle": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"security": {
|
|
|
|
|
"csp": null,
|
|
|
|
|
"assetProtocol": {
|
|
|
|
|
"enable": true,
|
|
|
|
|
"scope": ["**"]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"bundle": {
|
|
|
|
|
"active": true,
|
|
|
|
|
"targets": "all",
|
|
|
|
|
"category": "Utility",
|
|
|
|
|
"shortDescription": "Radial file utility, capture and OCR.",
|
|
|
|
|
"longDescription": "Shift brings Tangerine-style radial file actions, CleanShot-style capture, screen recording and local OCR to macOS and Windows.",
|
|
|
|
|
"icon": [
|
|
|
|
|
"icons/32x32.png",
|
|
|
|
|
"icons/128x128.png",
|
|
|
|
|
"icons/128x128@2x.png",
|
|
|
|
|
"icons/icon.icns",
|
|
|
|
|
"icons/icon.ico"
|
|
|
|
|
],
|
|
|
|
|
"macOS": {
|
|
|
|
|
"minimumSystemVersion": "13.0",
|
2026-10-25 04:24:05 +00:00
|
|
|
"infoPlist": "Info.plist",
|
build: sign macOS ad-hoc so other machines can open the app
The published DMG was refused on a fresh Mac as damaged/malware, with only
"Move to Trash" — no 仍要打开, no pane entry to approve. That is not the
"unidentified developer" box, and it is worse than shipping unsigned.
Cause: `signingIdentity: "Shift Local Signing"`, a locally created self-signed
certificate. On the build host it looks healthy — `codesign` reports valid on disk
and satisfies its Designated Requirement, `spctl` even accepts it — but the
certificate lives only in this keychain, is self-issued and CA:FALSE, so it cannot
chain to a trusted root on any other machine. Sequoia turns an unchainable
signature on a quarantined download into a hard refusal.
Releases that opened fine predates that config entry and were ad-hoc signed, which
gets the softer prompt the user can clear (right-click → 打开, or 允许 in 隐私与安全性).
Set signingIdentity to "-" explicitly so this cannot drift back, and rebuild all
three macOS/Windows artifacts from it: app is `Signature=adhoc`, the DMG carries no
signature of its own, and the pkg payload is ad-hoc too.
Docs corrected: the earlier explanation in "macOS packaging" blamed the DMG
container, which was wrong — the container still matters for first install (an
installed app is not left quarantined, so a .pkg opens with no prompt), but the
malware verdict came from the certificate.
2026-10-26 01:44:53 +00:00
|
|
|
"signingIdentity": "-",
|
2026-10-25 04:24:05 +00:00
|
|
|
"hardenedRuntime": false
|
2026-10-21 00:54:54 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|