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
c0b0897
Inspect extracted LibreOffice dependencies for an offline conversion …
YMXKNebula Nov 11, 2026
8de157f
Cross-build a minimal offline FFmpeg with pinned source and codecs
YMXKNebula Nov 11, 2026
4ed0125
Stage checksum-pinned app-local office dependencies and fix source bu…
YMXKNebula Nov 11, 2026
38d27ca
Verify prepared engine inventories and resolve static zlib and Window…
YMXKNebula Nov 11, 2026
724e00f
Bundle offline conversion engines and verify portable and installed p…
YMXKNebula Nov 11, 2026
1179abf
Bound the private office probe and verify portable Chinese font embed…
YMXKNebula Nov 11, 2026
fc0dac8
Capture read-only diagnostics from the owned office startup probe
YMXKNebula Nov 11, 2026
1048fb1
Keep the upstream profile presets required for standalone office init…
YMXKNebula Nov 11, 2026
1212449
Keep shared office configuration, preserve runtime terms and reject u…
YMXKNebula Nov 11, 2026
a87bef4
Preserve FFmpeg release metadata and drain version output before chec…
YMXKNebula Nov 11, 2026
34c3039
Retain common movie audio decoders and verify packaged worker shutdown
YMXKNebula Nov 11, 2026
785b34a
Use identical component inventory ordering on Linux and Windows
YMXKNebula Nov 11, 2026
913e12d
Include WebP output in the offline converter build
YMXKNebula Nov 11, 2026
9662c6b
Check all Office output families and report package sizes
YMXKNebula Nov 11, 2026
5b9dc2a
Bound diagnostic uploads after required package checks
YMXKNebula Nov 11, 2026
09d7d59
Prepare the requested 0.9.2 offline conversion release notes
YMXKNebula Nov 12, 2026
7940abd
Synchronize native cancellation fixtures before archive commit
YMXKNebula Nov 12, 2026
58f18bf
Remove empty conversion caches on uninstall while retaining added files
YMXKNebula Nov 12, 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
43 changes: 31 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ permissions:
contents: read

jobs:
conversion-engines:
if: github.event_name != 'schedule'
uses: ./.github/workflows/conversion-bundle.yml
windows:
needs: conversion-engines
if: github.event_name != 'schedule'
runs-on: windows-latest
timeout-minutes: 30
Expand All @@ -39,7 +43,15 @@ jobs:
& ./tests/DailyToolkit.Desktop.Tests/bin/Release/net10.0-windows10.0.26100.0/DailyToolkit.Desktop.Tests.exe --clipboard-native-filepack-ipc-checks
if ($LASTEXITCODE -ne 0) { throw 'Explorer IPC fixture failed; see its bounded protocol trace.' }
}
- name: Prepare local conversion test engines
- uses: actions/download-artifact@v8
with:
name: conversion-ffmpeg-win-x64
path: .local/conversion-tools/tools/ffmpeg
- uses: actions/download-artifact@v8
with:
name: conversion-office-win-x64
path: .local/conversion-tools/tools/libreoffice
- name: Prepare bundled conversion test engines
timeout-minutes: 12
shell: pwsh
run: ./scripts/prepare-conversion-checks.ps1
Expand All @@ -55,20 +67,14 @@ jobs:
- name: Retain direct and transitive dependency audit
shell: pwsh
run: ./scripts/audit-dependencies.ps1
- name: Keep quality reports, logs and fixture images
if: always()
uses: actions/upload-artifact@v7
with:
name: quality-check-diagnostics
path: |
.local/quality-checks/**
.local/dependency-audit/**
.local/conversion-test-engines/**
if-no-files-found: warn
retention-days: 14
- name: Package portable app
shell: pwsh
run: ./scripts/publish.ps1
- name: Check actual portable engines offline
shell: pwsh
run: |
[xml]$properties = Get-Content -LiteralPath Directory.Build.props -Raw
./scripts/test-conversion-bundle.ps1 -PayloadDirectory "artifacts/DailyToolkit-$($properties.Project.PropertyGroup.Version)-win-x64"
- name: Package installer
shell: pwsh
run: ./scripts/package-installer.ps1 -Compiler (Join-Path ${env:ProgramFiles(x86)} 'Inno Setup 6\ISCC.exe')
Expand All @@ -81,6 +87,19 @@ jobs:
artifacts/SHA256SUMS.txt
if-no-files-found: error
retention-days: 14
- name: Keep quality reports, logs and fixture images
if: always()
timeout-minutes: 2
continue-on-error: true
uses: actions/upload-artifact@v7
with:
name: quality-check-diagnostics
path: |
.local/quality-checks/**
.local/dependency-audit/**
.local/conversion-test-engines/**
if-no-files-found: warn
retention-days: 14
installer:
needs: windows
runs-on: windows-latest
Expand Down
74 changes: 74 additions & 0 deletions .github/workflows/conversion-bundle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
name: Prepare offline conversion engines
on:
workflow_call:
permissions:
contents: read
jobs:
ffmpeg:
runs-on: ubuntu-latest
timeout-minutes: 35
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/cache@v5
id: cache
with:
path: .local/conversion-tools/tools/ffmpeg
key: conversion-ffmpeg-x64-${{ runner.os }}-${{ hashFiles('scripts/build-conversion-ffmpeg.sh', 'scripts/conversion-sources.json', 'scripts/conversion-manifest.py') }}
- name: Prepare cross compiler
if: steps.cache.outputs.cache-hit != 'true'
run: |
sudo apt-get update -qq
sudo apt-get install -y --no-install-recommends gcc-mingw-w64-x86-64-posix g++-mingw-w64-x86-64-posix nasm cmake ninja-build meson pkg-config make
- name: Build only the conversion engine
if: steps.cache.outputs.cache-hit != 'true'
run: bash scripts/build-conversion-ffmpeg.sh
- name: Verify engine source and inventory
run: python3 scripts/conversion-manifest.py verify .local/conversion-tools/tools/ffmpeg ffmpeg scripts/build-conversion-ffmpeg.sh scripts/conversion-sources.json
- uses: actions/upload-artifact@v7
with:
name: conversion-ffmpeg-win-x64
path: .local/conversion-tools/tools/ffmpeg/**
retention-days: 14
- uses: actions/upload-artifact@v7
if: failure()
with:
name: conversion-ffmpeg-build-logs
path: |
.local/conversion-ffmpeg/**/*.log
.local/conversion-ffmpeg/**/config.log
retention-days: 7
office:
runs-on: windows-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- uses: actions/cache@v5
id: cache
with:
path: .local/conversion-tools/tools/libreoffice
key: conversion-office-x64-${{ runner.os }}-${{ hashFiles('scripts/prepare-conversion-office.ps1', 'scripts/stage-conversion-office.py', 'scripts/conversion-manifest.py') }}
- shell: pwsh
if: steps.cache.outputs.cache-hit != 'true'
run: ./scripts/prepare-conversion-office.ps1
- name: Verify office source and inventory
shell: pwsh
run: |
python scripts/conversion-manifest.py verify .local/conversion-tools/tools/libreoffice libreoffice scripts/prepare-conversion-office.ps1 scripts/stage-conversion-office.py
if ($LASTEXITCODE -ne 0) { throw 'Prepared office component verification failed.' }
- uses: actions/upload-artifact@v7
with:
name: conversion-office-win-x64
path: .local/conversion-tools/tools/libreoffice/**
retention-days: 14
- uses: actions/upload-artifact@v7
if: always()
with:
name: conversion-office-selection
path: |
.local/conversion-office/**/*.json
.local/conversion-office/**/*.log
retention-days: 7
3 changes: 2 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
- 当前项目接续指定 `gpt-6.1-sol`、`xhigh`,不自行切换模型或推理强度;不能确认云端所选配置时如实说明。没有本次任务的明确要求时,不创建子代理。
- `scripts/check-cloud.ps1` 仅构建和检查 Core;通过不代表 Windows 桌面功能、管理员拖放或安装已验证。完整 Windows 检查继续使用现有工作流。
- 未获当前任务授权,不发布版本、不安装更新、不操作实际用户数据、自启、网络或 VPN,不关闭用户程序,不执行实机键鼠或 UAC 测试。保留已有未跟踪文件和本地证据。
- 版本号遵循 `docs/VERSIONING.md`:`a` 为大版本,`b=0` 为大版本首个优化阶段、`b=1–9` 为功能阶段,`c` 为无固定硬上限的补丁号。本轮格式转换按用户指定为 `0.9.1`。
- 版本号遵循 `docs/VERSIONING.md`:`a` 为大版本,`b=0` 为大版本首个优化阶段、`b=1–9` 为功能阶段,`c` 为无固定硬上限的补丁号。格式转换首发按用户指定为 `0.9.1`;离线内置作为 `0.9.2` 补丁开发,源码、构建包与公开发布分别核对。
- 格式转换必须随软件离线可用、可携带,不要求用户另装引擎、运行库或选择程序路径。依赖只保留转换所需部分及许可、源码材料;精简后实际检查全部已有转换类型和进程退出,不能用开发机已安装的程序掩盖缺失项。详见 `docs/CONVERSION_BUNDLE.md`。

## UI 一致性

Expand Down
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Deterministic>true</Deterministic>
<Version>0.9.1</Version>
<Version>0.9.2</Version>
<Authors>YMXKNebula</Authors>
<Description>Windows 桌面工具集,提供放大镜、浮笺、剪贴回溯、文件集装箱、格式转换和电脑信息查看。</Description>
<RepositoryUrl>https://github.com/YMXKNebula/DailyToolkit</RepositoryUrl>
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Windows 桌面工具集:放大镜、浮笺、剪贴回溯、文件集装箱、格式转换和电脑信息。

[下载最新版](https://github.com/YMXKNebula/DailyToolkit/releases/latest) · [安装与更新](docs/INSTALLATION.md) · [更新说明](docs/RELEASE_091.md)
[下载最新版](https://github.com/YMXKNebula/DailyToolkit/releases/latest) · [安装与更新](docs/INSTALLATION.md) · [更新说明](docs/RELEASE_092.md)

## 下载

Expand Down Expand Up @@ -37,7 +37,7 @@ Windows 桌面工具集:放大镜、浮笺、剪贴回溯、文件集装箱、

剪贴回溯默认关闭,开启后持续记录剪贴板,仅在本机加密保存。复制敏感内容前请暂停记录或排除来源应用,无法自动识别所有密码。文件默认只记路径,开启缓存后可保存文件副本。

格式转换不调用在线服务或 AI,原文件保留。文档转换需要本机 LibreOffice,WebP 和部分音视频格式需要 FFmpeg;引擎不随程序捆绑,也不会自动下载。
格式转换组件已内置,无需另装程序,不调用在线服务或 AI。原文件保留,携带时保留完整软件目录。

> 放大镜用于带反作弊的游戏时可能导致封号,请谨慎使用。

Expand Down
19 changes: 19 additions & 0 deletions THIRD_PARTY_NOTICES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,25 @@ https://www.7-zip.org/
https://github.com/ip7z/7zip/releases/tag/26.04
Corresponding source: https://github.com/ip7z/7zip/releases/download/26.04/7z2604-src.7z

FFmpeg 9.0.2 (custom Windows x64 conversion build, separate process)
Copyright (c) the FFmpeg developers and codec library contributors.
GPL-2.0-or-later; x264 GPL, LAME LGPL, and BSD/Zlib codec libraries.
Only the exposed conversion targets are included; no player, ffprobe, network
protocols, capture devices or neural/AI processing is built.
License: tools/ffmpeg/LICENSE.txt and tools/ffmpeg/licenses/.
Complete pinned source archives and build recipe: tools/ffmpeg/sources/.
https://ffmpeg.org/
https://github.com/FFmpeg/FFmpeg/commit/946fcce07b6dcd0331c8cc609192aeff5e1924f8

LibreOffice 26.2.6.3 (selected unmodified local conversion runtime)
Copyright (c) The Document Foundation and contributors.
MPL-2.0 and third-party licenses; includes the app-local Microsoft Visual C++ CRT.
No LibreOffice installation, updater, shell integration, Java/Python runtime,
dictionaries, help package or independent office entry points are installed.
Original notices: tools/libreoffice/license.txt, LICENSE.html and NOTICE.
Exact upstream binary, source access and runtime terms: tools/libreoffice/SOURCE.txt.
https://www.libreoffice.org/licenses/

The application packages include the following components under the MIT License:

AMD FidelityFX Contrast Adaptive Sharpening (adapted CAS filter weights)
Expand Down
36 changes: 36 additions & 0 deletions docs/CONVERSION_BUNDLE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 格式转换内置组件

0.9.2 补丁将转换组件放入安装版和便携版。正式 0.9.1 的标签、附件和校验文件保持原样;本页描述源码和构建方案,不代表 0.9.2 已公开发布。

## 运行与携带

保留完整软件目录即可运行,不要求用户安装 FFmpeg、LibreOffice、.NET 或 Java,也不下载模型、插件和运行库。程序按自身目录寻找 `tools/ffmpeg/ffmpeg.exe` 和 `tools/libreoffice/program/soffice.com`,旧设置中的绝对路径不参与启动。

转换程序只在任务中启动。结束、取消或停用后,等待自有进程、文件和管道释放;关闭或收起主窗口继续已提交任务。主程序及其他已启用工具仍有正常运行成本。

沿用主窗口 `FeatureSwitch`、`Card`、`SectionTitle`、`MutedText`、`AccentButton` 和输入、选择、列表模板;本补丁没有新增样式。移除外部程序路径配置,将“保存设置”放回转换选项。

## 组件选择

| 组件 | 固定来源与许可 | 随包内容 |
| --- | --- | --- |
| FFmpeg 9.0.2 | 官方源码 `946fcce07b6dcd0331c8cc609192aeff5e1924f8`;本构建 GPL-2.0-or-later | 一个静态转换程序、当前格式所需编码器及常用解码器、完整源码包、构建脚本和许可 |
| LibreOffice 26.2.6.3 | 官方 Windows x64 包,SHA-256 `f9877032fd908beb9c0ddf06df4af5c2e85f419c42e14876c4cce5aae5fb2660`;MPL-2.0 与第三方许可 | 文字、表格、演示转换所需运行库、注册表数据、共享控件配置、初始配置和字体 |
| Noto Sans CJK SC 2.004 | 官方固定源码版本,字体 SHA-256 `2c76254f6fc379fddfce0a7e84fb5385bb135d3e399294f6eeb6680d0365b74b`;OFL-1.1 | 一份常规中文字体及原许可;由 LibreOffice 私有加载,不注册系统字体 |
| Microsoft Visual C++ CRT | 已许可构建环境的 `VC/Redist/MSVC/.../x64/Microsoft.VC*.CRT`;Microsoft 条款 | 依赖检查实际需要的、签名有效且未改动的 DLL,放在转换程序目录;不运行运行库安装器 |

FFmpeg 禁用网络协议、设备采集、硬件加速和未使用的输出功能,不构建播放器、探测工具或 AI 过滤器;Opus 的神经网络选项关闭。精简解码器仍保留常见电影音轨、Windows 录屏和无损输入,避免只按容器扩展名削减兼容性。

LibreOffice 不带帮助包、词典、扩展、图库、模板、Java/Python 运行时、独立办公入口、更新程序或系统集成。公共 DLL 的静态与延迟导入逐项检查,缺失依赖直接失败。共享控件配置及首次启动配置属于转换所需数据:缺少前者会使文档无法加载,缺少后者会使独立用户配置初始化失败。

许可证、版权和源码取得方式随各组件提供。FFmpeg 保留全部静态链接库的固定源码和构建配方;LibreOffice 保留官方许可、版权与对应源码说明;Microsoft DLL 的再分发遵循构建环境的 Visual Studio Distributable Code 条款。

## 构建与检查

`.github/workflows/conversion-bundle.yml` 准备两套固定组件。FFmpeg 在 Linux 交叉编译,输入摘要见 `scripts/conversion-sources.json`;LibreOffice 在可丢弃 Windows 环境中仅提取官方归档,再按依赖筛选。两者生成包含逐文件摘要和配方摘要的 `bundle.json`,不接纳额外文件。构建缓存按配方变化更新。

`scripts/publish.ps1` 验证组件及精确载荷后打包;安装版与便携版必须使用相同组件字节。`.local`、开发工具、报告、测试素材和实际用户数据不进入载荷。

Windows 检查保留原有完整质量门禁,并用实际便携目录和隔离安装目录运行 `scripts/test-conversion-bundle.ps1`:仅阻止测试自有程序出站联网,清除 PATH 中的外部程序目录,检查空路径和旧路径设置、WebP 透明度、现有音视频输出、文档往返及 PDF、私有中文字体嵌入、文件独占重开和进程退出。失败不能改用电脑上另装的引擎。

深浅主题、宽窄页面和 100/150/200% DPI 检查属于 WPF 渲染验收。Core 通过不能代表 Windows 桌面;隔离 Windows CI 也不代表 Windows 10/11 实机、混合 DPI、管理员拖放、真实安装、自启或用户电脑内存场景已验收。
Loading
Loading