Skip to content

Commit 82e1c59

Browse files
committed
Prepare Windows v1.4.0
1 parent 6922978 commit 82e1c59

5 files changed

Lines changed: 16 additions & 16 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,17 +253,17 @@ The default install does **not** create shortcuts or change login autostart. Ava
253253
- Uninstall preserves `%LOCALAPPDATA%\TokenClock` settings unless `-RemoveUserData` is explicitly supplied.
254254
- A missing checksum aborts installation. `-AllowUnsigned` is an explicit escape hatch for a package you already trust.
255255

256-
Windows release archives are built with `pwsh scripts/build-windows.ps1 -Zip`; the ZIP contains `TokenClock.exe`, its Swift/VC++ runtime DLLs, and resources. Publishing uses an independent tag on `windows-port`: after the shared release `v1.3.8` exists, tag the corresponding Windows commit as `windows-v1.3.8` and push that tag. The workflow definition and source are then both present in the immutable Windows tag; it maps `windows-v1.3.8` back to the existing `v1.3.8` release and only attaches the ZIP plus checksum. It never creates a Windows-only release or requires Windows source to be merged into main.
256+
Windows release archives are built with `pwsh scripts/build-windows.ps1 -Zip`; the ZIP contains `TokenClock.exe`, its Swift/VC++ runtime DLLs, and resources. Publishing uses an independent tag on `windows-port`: after the shared release `v1.4.0` exists, tag the corresponding Windows commit as `windows-v1.4.0` and push that tag. The workflow definition and source are then both present in the immutable Windows tag; it maps `windows-v1.4.0` back to the existing `v1.4.0` release and only attaches the ZIP plus checksum. It never creates a Windows-only release or requires Windows source to be merged into main.
257257

258258
```bash
259-
gh release view v1.3.8 --repo Neo-Isshin/TokenClock
259+
gh release view v1.4.0 --repo Neo-Isshin/TokenClock
260260
git switch windows-port
261261
git pull --ff-only origin windows-port
262-
git tag -a windows-v1.3.8 -m "Windows assets for v1.3.8"
263-
git push origin windows-v1.3.8
262+
git tag -a windows-v1.4.0 -m "Windows assets for v1.4.0"
263+
git push origin windows-v1.4.0
264264
```
265265

266-
With `-Version latest`, the installer selects the newest stable release that already has both Windows assets, so a newer macOS/Linux release still waiting for its Windows upload is skipped; an explicit `-Version` resolves that exact shared tag (for example `v1.3.8`, not `windows-v1.3.8`). Current distribution is x86_64 only. The executable is not Microsoft Store/MSIX packaged, so Windows reputation warnings may appear until releases are code-signed. Portable ZIP use remains supported, but shortcuts, updates, and uninstall tracking are then the user's responsibility.
266+
With `-Version latest`, the installer selects the newest stable release that already has both Windows assets, so a newer macOS/Linux release still waiting for its Windows upload is skipped; an explicit `-Version` resolves that exact shared tag (for example `v1.4.0`, not `windows-v1.4.0`). Current distribution is x86_64 only. The executable is not Microsoft Store/MSIX packaged, so Windows reputation warnings may appear until releases are code-signed. Portable ZIP use remains supported, but shortcuts, updates, and uninstall tracking are then the user's responsibility.
267267

268268
### Linux normal build
269269

README.zh-CN.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -252,17 +252,17 @@ irm https://raw.githubusercontent.com/Neo-Isshin/TokenClock/windows-port/cli/ins
252252
- 卸载默认保留 `%LOCALAPPDATA%\TokenClock` 设置;仅 `-RemoveUserData` 会一并删除。
253253
- release 缺少校验文件时默认中止;`-AllowUnsigned` 仅用于用户明确确认可信的本地/自定义包。
254254

255-
Windows release 包通过 `pwsh scripts/build-windows.ps1 -Zip` 生成,包含 `TokenClock.exe`、Swift/VC++ 运行时 DLL 和资源。发布时使用指向 `windows-port` 的独立 tag:共享 release `v1.3.8` 已存在后,把对应 Windows 提交标记为 `windows-v1.3.8` 并推送。这样 workflow 定义和源码都存在于不可变的 Windows tag 中;workflow 会把 `windows-v1.3.8` 映射回已存在的 `v1.3.8` release,只附加 ZIP 和校验文件。它不会创建 Windows-only release,也不需要把 Windows 源码合并进 main。
255+
Windows release 包通过 `pwsh scripts/build-windows.ps1 -Zip` 生成,包含 `TokenClock.exe`、Swift/VC++ 运行时 DLL 和资源。发布时使用指向 `windows-port` 的独立 tag:共享 release `v1.4.0` 已存在后,把对应 Windows 提交标记为 `windows-v1.4.0` 并推送。这样 workflow 定义和源码都存在于不可变的 Windows tag 中;workflow 会把 `windows-v1.4.0` 映射回已存在的 `v1.4.0` release,只附加 ZIP 和校验文件。它不会创建 Windows-only release,也不需要把 Windows 源码合并进 main。
256256

257257
```bash
258-
gh release view v1.3.8 --repo Neo-Isshin/TokenClock
258+
gh release view v1.4.0 --repo Neo-Isshin/TokenClock
259259
git switch windows-port
260260
git pull --ff-only origin windows-port
261-
git tag -a windows-v1.3.8 -m "Windows assets for v1.3.8"
262-
git push origin windows-v1.3.8
261+
git tag -a windows-v1.4.0 -m "Windows assets for v1.4.0"
262+
git push origin windows-v1.4.0
263263
```
264264

265-
使用 `-Version latest` 时,安装器会选择最新且已同时包含 Windows ZIP 和 SHA-256 的稳定 release;若更新的 macOS/Linux release 仍在等待 Windows 资产,会先跳过它。显式 `-Version` 则严格解析共享 tag(例如 `v1.3.8`,而不是 `windows-v1.3.8`)。当前发行包仅提供 x86_64。由于尚非 Microsoft Store/MSIX 包且可能未签名,Windows 信誉保护可能弹出提示。也可直接使用便携 ZIP,但快捷方式、更新与卸载需自行管理。
265+
使用 `-Version latest` 时,安装器会选择最新且已同时包含 Windows ZIP 和 SHA-256 的稳定 release;若更新的 macOS/Linux release 仍在等待 Windows 资产,会先跳过它。显式 `-Version` 则严格解析共享 tag(例如 `v1.4.0`,而不是 `windows-v1.4.0`)。当前发行包仅提供 x86_64。由于尚非 Microsoft Store/MSIX 包且可能未签名,Windows 信誉保护可能弹出提示。也可直接使用便携 ZIP,但快捷方式、更新与卸载需自行管理。
266266

267267
### Linux normal 版
268268

Sources/TokenClock/Views/AboutView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ struct AboutView: View {
55
let onDone: () -> Void
66

77
// ⚠️ 发版时同步版本号(与 cli/install.sh 的 RELEASE_TAG、cli/tokenclock 的 CLI_VERSION 一致)
8-
private let version = "v1.3.8"
8+
private let version = "v1.4.0"
99
private let issuesURL = URL(string: "https://github.com/Neo-Isshin/TokenClock/issues")!
1010
// 作者 GitHub 头像(置顶居中展示)。github.com/<user>.png 会 302 跳转到 avatars.githubusercontent.com 的真实头像。
1111
private let avatarURL = URL(string: "https://github.com/Neo-Isshin.png")!

Sources/TokenClock/Windows/WindowsApp.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ final class WindowsApp: @unchecked Sendable {
765765
defer { aboutDlg = nil; dlg_destroy(dlg) }
766766
dlg_add_brand_logo(dlg, 136, 22, 88, 88)
767767
dlg_add_title(dlg, "TokenClock", 112, 120, 180, 30)
768-
dlg_add_static(dlg, "v1.3.8", 154, 154, 90, 22)
768+
dlg_add_static(dlg, "v1.4.0", 154, 154, 90, 22)
769769
dlg_add_sep(dlg, 28, 188, 304)
770770
dlg_add_static(dlg, "Copyright © 2026 Neo-Isshin", 78, 210, 250, 22)
771771
dlg_add_static(dlg, L10n.shared.tr("about.license"), 128, 238, 180, 22)

Sources/Win32Shim/TokenClock.rc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
1 VERSIONINFO
2-
FILEVERSION 1,3,8,0
3-
PRODUCTVERSION 1,3,8,0
2+
FILEVERSION 1,4,0,0
3+
PRODUCTVERSION 1,4,0,0
44
FILEFLAGSMASK 0x3fL
55
FILEFLAGS 0x0L
66
FILEOS 0x40004L
@@ -13,12 +13,12 @@ BEGIN
1313
BEGIN
1414
VALUE "CompanyName", "Neo-Isshin\0"
1515
VALUE "FileDescription", "TokenClock normal for Windows\0"
16-
VALUE "FileVersion", "1.3.8.0\0"
16+
VALUE "FileVersion", "1.4.0.0\0"
1717
VALUE "InternalName", "TokenClock\0"
1818
VALUE "LegalCopyright", "Copyright (C) 2026 Neo-Isshin\0"
1919
VALUE "OriginalFilename", "TokenClock.exe\0"
2020
VALUE "ProductName", "TokenClock\0"
21-
VALUE "ProductVersion", "1.3.8\0"
21+
VALUE "ProductVersion", "1.4.0\0"
2222
END
2323
END
2424
BLOCK "VarFileInfo"

0 commit comments

Comments
 (0)