Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
aca5a2e
feat: add Windows MSI installation and verified updates
Aaaaamadeus Nov 18, 2026
344ed4e
docs: explain Windows installation and signing
Aaaaamadeus Nov 18, 2026
b10a57f
feat: add branded Windows Setup executable
Aaaaamadeus Nov 18, 2026
83c2e9c
docs: describe branded Windows Setup packaging
Aaaaamadeus Nov 18, 2026
5b5b713
feat: extend the comic translation workflow
Aaaaamadeus Nov 21, 2026
3fd335e
docs: record translation workflow verification
Aaaaamadeus Nov 21, 2026
d0e90bb
Merge pull request #36 from Aaaaamadeus/feat/ui-translation-workflow
Aaaaamadeus Nov 21, 2026
fa74a84
feat(ui): streamline editor toolbars with single-level menus and comp…
Aaaaamadeus Nov 22, 2026
6d51704
feat: merge UI menu layout
Aaaaamadeus Nov 22, 2026
d5714a7
docs: hand off menu layout integration
Aaaaamadeus Nov 22, 2026
a5438ec
perf: isolate desktop image model sessions from the Qt event loop
Aaaaamadeus Nov 23, 2026
b87ccfe
chore: merge desktop model startup fix
Aaaaamadeus Nov 23, 2026
3996482
feat: show newer stable releases beside model status
Aaaaamadeus Nov 23, 2026
116b60e
docs: describe update discovery for the 2.6.0 development build
Aaaaamadeus Nov 23, 2026
d3206f5
feat: integrate the 2.6.0 desktop and Windows installer
Aaaaamadeus Nov 23, 2026
91eef3a
docs: prepare 2.6.0 installation and release instructions
Aaaaamadeus Nov 23, 2026
ad2bb88
chore: record the verified UI workflow integration
Aaaaamadeus Nov 23, 2026
884530d
Merge 2.6.0 release preparation
Aaaaamadeus Nov 23, 2026
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
135 changes: 135 additions & 0 deletions .github/workflows/windows-installer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
name: Build and sign Windows installer

on:
workflow_dispatch:
inputs:
previous_version:
description: Previous signed Windows Setup release for upgrade testing and optional delta
type: string
required: false

permissions:
contents: read

jobs:
installer:
runs-on: windows-2022
if: github.ref_type == 'tag'
environment: windows-release-signing
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: '3.12.10'
- name: Check release tag and install build dependencies
id: release
shell: pwsh
run: |
$version = python -c 'from comic_translate_desktop import __version__; print(__version__)'
if ($env:GITHUB_REF_NAME -cne "v$version") { throw 'Tag and application version differ.' }
"version=$version" >> $env:GITHUB_OUTPUT
python -m venv .venv
.\.venv\Scripts\python.exe -m pip install -r requirements-build.txt
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
choco install nsis --version=3.13 --yes --no-progress
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
- name: Test and build the application, service and NSIS uninstaller
shell: powershell
run: |
.\.venv\Scripts\python.exe -m unittest -v tests.test_nsis_installer tests.test_release_update
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
.\build_app.ps1
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
.\.venv\Scripts\python.exe installer/build.py --stage-only --include-models --output build/unsigned
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
New-Item -ItemType Directory -Force build/signing | Out-Null
foreach ($name in 'ComiTrans.exe', 'ComiTransReleaseService.exe', 'Uninstall.exe') {
Copy-Item -LiteralPath "build/unsigned/payload/$name" -Destination build/signing
}
- name: Stage executables for verified signing
id: unsigned
uses: actions/upload-artifact@v4
with:
name: unsigned-windows-payload
path: build/signing/*.exe
if-no-files-found: error
compression-level: 0
- name: Sign the application, service and uninstaller
uses: signpath/github-action-submit-signing-request@f6d04783b4569d051e0c80105fe66e82819d0092 # v3
with:
api-token: ${{ secrets.SIGNPATH_API_TOKEN }}
organization-id: ${{ vars.SIGNPATH_ORGANIZATION_ID }}
project-slug: ${{ vars.SIGNPATH_PROJECT_SLUG }}
signing-policy-slug: ${{ vars.SIGNPATH_SIGNING_POLICY_SLUG }}
artifact-configuration-slug: windows-payload
parameters: |
version: ${{ toJSON(steps.release.outputs.version) }}
github-artifact-id: ${{ steps.unsigned.outputs.artifact-id }}
wait-for-completion: true
output-artifact-directory: build/signed-payload
- name: Build NSIS Setup with the signed executables
shell: pwsh
run: |
Copy-Item -Path build/signed-payload/*.exe -Destination build/unsigned/payload -Force
.\.venv\Scripts\python.exe installer/build.py --payload build/unsigned/payload --output release/unsigned
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
- uses: actions/upload-artifact@v4
id: unsigned-setup
with:
name: unsigned-windows-setup
path: release/unsigned/*-Setup.exe
if-no-files-found: error
compression-level: 0
- name: Sign the final Setup EXE
uses: signpath/github-action-submit-signing-request@f6d04783b4569d051e0c80105fe66e82819d0092 # v3
with:
api-token: ${{ secrets.SIGNPATH_API_TOKEN }}
organization-id: ${{ vars.SIGNPATH_ORGANIZATION_ID }}
project-slug: ${{ vars.SIGNPATH_PROJECT_SLUG }}
signing-policy-slug: ${{ vars.SIGNPATH_SIGNING_POLICY_SLUG }}
artifact-configuration-slug: windows-setup
parameters: |
version: ${{ toJSON(steps.release.outputs.version) }}
github-artifact-id: ${{ steps.unsigned-setup.outputs.artifact-id }}
wait-for-completion: true
output-artifact-directory: release/signed
- name: Verify signatures, test Setup and prepare the release files
shell: pwsh
env:
PREVIOUS_VERSION: ${{ inputs.previous_version }}
GH_TOKEN: ${{ github.token }}
run: |
function Confirm-ComiTransSignature($path) {
$signature = Get-AuthenticodeSignature -LiteralPath $path
if ($signature.Status -ne 'Valid' -or !$signature.TimeStamperCertificate -or
$signature.SignerCertificate.GetNameInfo('SimpleName', $false) -ne 'SignPath Foundation') {
throw "Windows could not verify the timestamped SignPath Foundation signature: $path"
}
}
foreach ($name in 'ComiTrans.exe', 'ComiTransReleaseService.exe', 'Uninstall.exe') {
Confirm-ComiTransSignature "build/unsigned/payload/$name"
}
$stem = "ComiTrans-$($env:GITHUB_REF_NAME)-x64"
$setup = (Get-Item "release/signed/$stem-Setup.exe").FullName
Confirm-ComiTransSignature $setup
$test = @{ Setup = $setup; Version = $env:GITHUB_REF_NAME.Substring(1); LogDirectory = $env:RUNNER_TEMP }
if ($env:PREVIOUS_VERSION) {
if ($env:PREVIOUS_VERSION -notmatch '^[0-9]+\.[0-9]+\.[0-9]+$') { throw 'Invalid base version.' }
$name = "ComiTrans-v$env:PREVIOUS_VERSION-x64-Setup.exe"
gh release download "v$env:PREVIOUS_VERSION" --pattern $name --dir build/previous
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
Confirm-ComiTransSignature "build/previous/$name"
$test.PreviousSetup = (Resolve-Path "build/previous/$name").Path
.\.venv\Scripts\python.exe installer/build.py --delta "build/previous/$name" $setup
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
}
& installer/Test-Setup.ps1 @test
.\.venv\Scripts\python.exe -c "from pathlib import Path; from package_release import write_checksums; p=Path('release/signed'); write_checksums(p, sorted(p.glob('ComiTrans-*')))"
- uses: actions/upload-artifact@v4
with:
name: signed-windows-release
path: release/signed/*
if-no-files-found: error
compression-level: 0
47 changes: 47 additions & 0 deletions .github/workflows/windows-release-verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Verify Windows release

on:
workflow_dispatch:
inputs:
tag:
description: Release tag to verify, including draft releases
required: true
type: string

permissions:
contents: read

jobs:
verify:
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
- name: Download and verify release files
shell: pwsh
env:
GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ inputs.tag }}
run: |
if ($env:RELEASE_TAG -notmatch '^v[0-9]+\.[0-9]+\.[0-9]+$') { throw 'Invalid release tag.' }
gh release download $env:RELEASE_TAG --repo $env:GITHUB_REPOSITORY --pattern '*-Setup.exe' --pattern 'SHA256SUMS.txt' --dir package
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
foreach ($line in Get-Content package/SHA256SUMS.txt) {
if ($line -notmatch '^([a-fA-F0-9]{64}) ([^/\\]+)$') { throw 'Invalid checksum entry.' }
$actual = (Get-FileHash -Algorithm SHA256 -LiteralPath (Join-Path package $Matches[2])).Hash
if ($actual -ine $Matches[1]) { throw 'Release checksum mismatch.' }
}
- name: Install, reinstall and uninstall on a clean Windows runner
shell: pwsh
env:
RELEASE_TAG: ${{ inputs.tag }}
run: |
$setup = (Resolve-Path "package/ComiTrans-$env:RELEASE_TAG-x64-Setup.exe").Path
& installer/Test-Setup.ps1 -Setup $setup -Version $env:RELEASE_TAG.Substring(1) -LogDirectory $env:RUNNER_TEMP
- uses: actions/upload-artifact@v4
if: always()
with:
name: windows-release-verification
path: |
${{ runner.temp }}/comitrans-nsis-install.log
${{ runner.temp }}/comitrans-installed-smoke/smoke-result.json
if-no-files-found: ignore
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ pip-delete-this-directory.txt
dist/
build/
release/
/.wix/

# Only the current audited ONNX model set is tracked (weights use Git LFS).
comic-translate-ai/models/*
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

本文件记录当前源码与发布版本的主要变化。英文摘要见 [README_en.md](README_en.md#changelog)。

## v2.6.0(2026-11-23)

- Windows x64 安装向导包含桌面程序与默认模型。正式发布包附 SHA-256,未签名版本通过 GitHub 发布页手动安装。
- 模型在独立进程中预热。启动时按版本号检查正式更新,发现更高版本后在顶栏模型状态左侧显示「有更新」。
- 新增作品术语库、试译与用量报告。精修支持全书译稿、单气泡重译和 CBZ 导出。[安装与升级说明](docs/RELEASE-v2.6.0.md)

## v2.5.2 — 2026-11-17

- 翻译工作流改为 Fork-Join 并行流水线,并用实时拓扑图重绘自动处理页进度面板(支持并发在途页角标、后台修补就绪、上下文统计、断点续传标注及底部逐页状态矩阵,适配纸白/夜墨双主题)。
Expand Down
17 changes: 17 additions & 0 deletions ComiTrans.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ from pathlib import Path
import PySide6
import shiboken6
from PyInstaller.utils.hooks import collect_data_files, copy_metadata
from PyInstaller.utils.win32.versioninfo import (
FixedFileInfo, StringFileInfo, StringStruct, StringTable, VarFileInfo, VarStruct, VSVersionInfo,
)
from comic_translate_desktop import __version__

# Resolve DLLs from this Python/Qt installation and Windows, not unrelated
# tools on PATH (e.g. Poppler's ICU exports do not match Qt's Windows ICU ABI).
Expand Down Expand Up @@ -108,13 +112,26 @@ a.binaries = [entry for entry in a.binaries

pyz = PYZ(a.pure)

version_tuple = (*map(int, __version__.split('.')), 0)
version_info = VSVersionInfo(
ffi=FixedFileInfo(filevers=version_tuple, prodvers=version_tuple, mask=0x3f,
flags=0, OS=0x40004, fileType=1, subtype=0, date=(0, 0)),
kids=[StringFileInfo([StringTable('040904B0', [
StringStruct('FileDescription', 'ComiTrans'),
StringStruct('FileVersion', __version__),
StringStruct('ProductName', 'ComiTrans'),
StringStruct('ProductVersion', __version__),
])]), VarFileInfo([VarStruct('Translation', [1033, 1200])])],
)

exe = EXE(
pyz,
a.scripts,
[],
exclude_binaries=True,
name="ComiTrans",
icon="assets/ComiTrans.ico",
version=version_info,
debug=False,
bootloader_ignore_signals=False,
strip=False,
Expand Down
Loading
Loading