From 9dae003b9327c877cff6e9afbfee9735eaaef821 Mon Sep 17 00:00:00 2001 From: Misaki Date: Mon, 26 Oct 2026 21:57:08 +0800 Subject: [PATCH] build: add Linux AppImage packaging - Add reproducible linuxdeploy/appimagetool packaging script\n- Bundle Qt runtime, xcb/Wayland plugins, SQLite, TLS, and fcitx5 plugin\n- Add desktop icon, metadata, and direct-run AppImage\n- Fix release-mode scheduler warning and document Linux packaging --- .gitignore | 1 + README.md | 18 +- client/src/core/SchedulerEngine.cpp | 8 +- docs/PLAN.md | 10 +- docs/validation/appimage-build-phase-4-3.txt | 454 ++++++++++++++++++ docs/validation/appimage-sha256.txt | 1 + docs/validation/ctest-phase-4-3.txt | 29 ++ docs/validation/phase-4-3.md | 73 +++ packaging/linux/Schedule.desktop | 9 + .../linux/com.misaki.Schedule.appdata.xml | 15 + packaging/linux/schedule.png | Bin 0 -> 10243 bytes packaging/linux/schedule.svg | 8 + scripts/package-linux-appimage.sh | 169 +++++++ 13 files changed, 790 insertions(+), 5 deletions(-) create mode 100644 docs/validation/appimage-build-phase-4-3.txt create mode 100644 docs/validation/appimage-sha256.txt create mode 100644 docs/validation/ctest-phase-4-3.txt create mode 100644 docs/validation/phase-4-3.md create mode 100644 packaging/linux/Schedule.desktop create mode 100644 packaging/linux/com.misaki.Schedule.appdata.xml create mode 100644 packaging/linux/schedule.png create mode 100644 packaging/linux/schedule.svg create mode 100755 scripts/package-linux-appimage.sh diff --git a/.gitignore b/.gitignore index 555ac26..706dda9 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ android/.gradle/ android/local.properties android/app/build/ android/build/ +dist/ diff --git a/README.md b/README.md index 16b3b48..ec4e3b0 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ 细粒度个人日程 + AI 自然语言排程 + 自部署多设备同步。 -当前进度:**阶段 0–4 + 搜索 / 重复日程 / Windows 安装包 / 界面动画 + 桌面日程提醒 + Android 同步客户端 v1**。 +当前进度:**阶段 0–4 + 搜索 / 重复日程 / Windows 安装包 / Linux AppImage / 界面动画 + 桌面日程提醒 + Android 同步客户端 v1**。 本地模型 50 条指令回归已完成:完整 49/50(98%),失败项 #42 单独复测通过。 详细计划见 [`docs/PLAN.md`](docs/PLAN.md),验证记录见 [`docs/validation/`](docs/validation/)。 @@ -242,6 +242,22 @@ cmake --build --preset linux-gcc 安装包包含开始菜单项与桌面快捷方式,卸载信息写入 Windows 应用列表。 +### Linux AppImage + +可生成免安装的 AppImage: + +```bash +./scripts/package-linux-appimage.sh +chmod +x dist/AI-Schedule-0.1.0-x86_64.AppImage +./dist/AI-Schedule-0.1.0-x86_64.AppImage +``` + +- 产物:`dist/AI-Schedule-0.1.0-x86_64.AppImage`(约 34 MB)。 +- 已打包 Qt 库、xcb/Wayland 平台插件、SQLite 驱动、TLS 和 fcitx5 输入法插件。 +- 无 FUSE 环境使用:`./dist/AI-Schedule-0.1.0-x86_64.AppImage --appimage-extract-and-run`。 +- 可用 `QT_ROOT` 覆盖 Qt 路径,`TOOLS_DIR` 指定已下载的 linuxdeploy/appimagetool。 +- 详细验证见 [`docs/validation/phase-4-3.md`](docs/validation/phase-4-3.md)。 + ### Windows 多设备联调 1. 在服务端机器启动 `go run ./cmd/server`(或 Docker),设置随机 `SYNC_TOKEN_PEPPER`。 diff --git a/client/src/core/SchedulerEngine.cpp b/client/src/core/SchedulerEngine.cpp index d147d4c..17c0418 100644 --- a/client/src/core/SchedulerEngine.cpp +++ b/client/src/core/SchedulerEngine.cpp @@ -202,9 +202,11 @@ Result schedule(const std::vector& tasks, { const int clampedMinutes = std::clamp(task.durationMinutes, 5, 24 * 60); const std::chrono::seconds duration{clampedMinutes * 60}; - const std::optional deadline = - task.deadline.has_value() ? std::optional(std::min(*task.deadline, rangeEnd)) - : std::nullopt; + std::optional deadline; + if (task.deadline.has_value()) + { + deadline = std::min(*task.deadline, rangeEnd); + } if (deadline && *deadline <= rangeStart) { result.failures.push_back({task.id, "截止时间已经过去"}); diff --git a/docs/PLAN.md b/docs/PLAN.md index 7c92a7e..7f8f5ee 100644 --- a/docs/PLAN.md +++ b/docs/PLAN.md @@ -11,8 +11,9 @@ > 阶段 4(精力曲线 / 幽灵时间 / 每日复盘 / 主动建议)已验证:[`validation/phase-4.md`](validation/phase-4.md)。 > 阶段 4.1(搜索 / 重复日程 / Windows 安装包 / 动画)已验证:[`validation/phase-4-1.md`](validation/phase-4-1.md)。 > 阶段 4.2(桌面开始提醒 / 原生通知 / 点击定位)已验证:[`validation/phase-4-2.md`](validation/phase-4-2.md)。 -> 阶段 5.1(移动提醒 / 完成同步修复 / MinGW 修复)已验证:[`validation/phase-5-1.md`](validation/phase-5-1.md)。 +> 阶段 4.3(Linux AppImage)已验证:[`validation/phase-4-3.md`](validation/phase-4-3.md)。 > 阶段 5.0(Android 同步客户端)已构建验证:[`validation/phase-5.md`](validation/phase-5.md)。 +> 阶段 5.1(移动提醒 / 完成同步修复 / MinGW 修复)已验证:[`validation/phase-5-1.md`](validation/phase-5-1.md)。 ## 0. 当前环境 @@ -154,6 +155,13 @@ Schedule/ - [x] 设置页提前提醒选项、TOML `[reminders] lead_minutes` - 验收:`ctest --preset linux-gcc` 12/12;见 [`validation/phase-4-2.md`](validation/phase-4-2.md) +### 阶段 4.3:Linux AppImage(已完成) +- [x] linuxdeploy/appimagetool 打包脚本 +- [x] Qt 库、平台插件、SQLite、TLS、fcitx5 插件打包 +- [x] 桌面图标、.desktop 与 AppStream 元数据 +- [x] Xvfb/X11 与 offscreen 启动验证;产物约 34 MB +- 验收:见 [`validation/phase-4-3.md`](validation/phase-4-3.md) + ### 阶段 5.0:Android 同步客户端(已完成 v1) - [x] 独立 Kotlin/Android 工程,不依赖 Qt - [x] SQLite task/timeblock/outbox/sync_state、LWW、删除墓碑 diff --git a/docs/validation/appimage-build-phase-4-3.txt b/docs/validation/appimage-build-phase-4-3.txt new file mode 100644 index 0000000..a23e931 --- /dev/null +++ b/docs/validation/appimage-build-phase-4-3.txt @@ -0,0 +1,454 @@ +$ ./scripts/package-linux-appimage.sh + +Configuring release build... +Preset CMake variables: + + CMAKE_EXPORT_COMPILE_COMMANDS="ON" + CMAKE_PREFIX_PATH="/home/misaki/Qt6.3/6.6.3/gcc_64" + SCHEDULE_WARNINGS_AS_ERRORS="ON" + +-- Could NOT find WrapVulkanHeaders (missing: Vulkan_INCLUDE_DIR) +-- Configuring done (0.2s) +-- Generating done (0.0s) +-- Build files have been written to: /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release +[1/1] Building Go sync server +Installing application files... +-- Install configuration: "Release" +-- Installing: /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/./Schedule +-- Set non-toolchain portion of runtime path of "/home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/./Schedule" to "$ORIGIN:$ORIGIN/../lib" +-- Installing: /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/./README.md +-- Installing: /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/licenses/ElaWidgetTools-LICENSE +-- Installing: /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/licenses/tomlplusplus-LICENSE +Copying required Qt plugins... +Deploying shared library dependencies... +linuxdeploy version 1-alpha (git commit ID d2557d6), GitHub actions build 328 built on 2025-10-01 02:03:18 UTC + +-- Creating basic AppDir structure -- +Creating directory /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/bin/ +Creating directory /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/ +Creating directory /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/applications/ +Creating directory /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/icons/hicolor/ +Creating directory /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/pixmaps/ +Creating directory /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/icons/hicolor/16x16/apps/ +Creating directory /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/icons/hicolor/32x32/apps/ +Creating directory /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/icons/hicolor/64x64/apps/ +Creating directory /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/icons/hicolor/128x128/apps/ +Creating directory /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/icons/hicolor/256x256/apps/ +Creating directory /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/icons/hicolor/scalable/apps/ + +-- Deploying dependencies for existing files in AppDir -- +Deploying dependencies for ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/bin/Schedule +Deploying shared library /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6WebSockets.so.6 +WARNING: Could not find copyright files for file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6WebSockets.so.6 using dpkg-query +Deploying shared library /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6Sql.so.6 +WARNING: Could not find copyright files for file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6Sql.so.6 using dpkg-query +Deploying shared library /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6Network.so.6 +WARNING: Could not find copyright files for file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6Network.so.6 using dpkg-query +Deploying shared library /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6Widgets.so.6 +WARNING: Could not find copyright files for file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6Widgets.so.6 using dpkg-query +Deploying shared library /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6Gui.so.6 +WARNING: Could not find copyright files for file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6Gui.so.6 using dpkg-query +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libGLX.so.0 +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libOpenGL.so.0 +Deploying shared library /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6DBus.so.6 +WARNING: Could not find copyright files for file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6DBus.so.6 using dpkg-query +Deploying shared library /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6Core.so.6 +WARNING: Could not find copyright files for file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6Core.so.6 using dpkg-query +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libstdc++.so.6 +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libm.so.6 +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libgcc_s.so.1 +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libc.so.6 +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libpthread.so.0 +Deploying shared library /lib/x86_64-linux-gnu/libzstd.so.1 +Deploying copyright files for file /lib/x86_64-linux-gnu/libzstd.so.1 +Deploying shared library /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 +Deploying copyright files for file /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libz.so.1 +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libresolv.so.2 +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libGL.so.1 +Deploying shared library /lib/x86_64-linux-gnu/libxkbcommon.so.0 +Deploying copyright files for file /lib/x86_64-linux-gnu/libxkbcommon.so.0 +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libEGL.so.1 +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libfontconfig.so.1 +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libX11.so.6 +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libdl.so.2 +Deploying shared library /lib/x86_64-linux-gnu/libglib-2.0.so.0 +Deploying copyright files for file /lib/x86_64-linux-gnu/libglib-2.0.so.0 +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libfreetype.so.6 +Deploying shared library /lib/x86_64-linux-gnu/libgthread-2.0.so.0 +Deploying copyright files for file /lib/x86_64-linux-gnu/libgthread-2.0.so.0 +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libGLdispatch.so.0 +Deploying shared library /lib/x86_64-linux-gnu/libdbus-1.so.3 +Deploying copyright files for file /lib/x86_64-linux-gnu/libdbus-1.so.3 +Deploying shared library /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libicui18n.so.56 +WARNING: Could not find copyright files for file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libicui18n.so.56 using dpkg-query +Deploying shared library /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libicuuc.so.56 +WARNING: Could not find copyright files for file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libicuuc.so.56 using dpkg-query +Deploying shared library /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libicudata.so.56 +WARNING: Could not find copyright files for file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libicudata.so.56 using dpkg-query +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/librt.so.1 +Deploying shared library /lib/x86_64-linux-gnu/libkrb5.so.3 +Deploying copyright files for file /lib/x86_64-linux-gnu/libkrb5.so.3 +Deploying shared library /lib/x86_64-linux-gnu/libk5crypto.so.3 +Deploying copyright files for file /lib/x86_64-linux-gnu/libk5crypto.so.3 +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libcom_err.so.2 +Deploying shared library /lib/x86_64-linux-gnu/libkrb5support.so.0 +Deploying copyright files for file /lib/x86_64-linux-gnu/libkrb5support.so.0 +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libexpat.so.1 +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libxcb.so.1 +Deploying shared library /lib/x86_64-linux-gnu/libpcre2-8.so.0 +Deploying copyright files for file /lib/x86_64-linux-gnu/libpcre2-8.so.0 +Deploying shared library /lib/x86_64-linux-gnu/libbz2.so.1.0 +Deploying copyright files for file /lib/x86_64-linux-gnu/libbz2.so.1.0 +Deploying shared library /lib/x86_64-linux-gnu/libpng16.so.16 +Deploying copyright files for file /lib/x86_64-linux-gnu/libpng16.so.16 +Deploying shared library /lib/x86_64-linux-gnu/libbrotlidec.so.1 +Deploying copyright files for file /lib/x86_64-linux-gnu/libbrotlidec.so.1 +Deploying shared library /lib/x86_64-linux-gnu/libsystemd.so.0 +Deploying copyright files for file /lib/x86_64-linux-gnu/libsystemd.so.0 +Deploying shared library /lib/x86_64-linux-gnu/libkeyutils.so.1 +Deploying copyright files for file /lib/x86_64-linux-gnu/libkeyutils.so.1 +Deploying shared library /lib/x86_64-linux-gnu/libXau.so.6 +Deploying copyright files for file /lib/x86_64-linux-gnu/libXau.so.6 +Deploying shared library /lib/x86_64-linux-gnu/libXdmcp.so.6 +Deploying copyright files for file /lib/x86_64-linux-gnu/libXdmcp.so.6 +Deploying shared library /lib/x86_64-linux-gnu/libbrotlicommon.so.1 +Deploying copyright files for file /lib/x86_64-linux-gnu/libbrotlicommon.so.1 +Deploying shared library /lib/x86_64-linux-gnu/libcap.so.2 +Deploying copyright files for file /lib/x86_64-linux-gnu/libcap.so.2 +Deploying shared library /lib/x86_64-linux-gnu/libgcrypt.so.20 +Deploying copyright files for file /lib/x86_64-linux-gnu/libgcrypt.so.20 +Deploying shared library /lib/x86_64-linux-gnu/liblz4.so.1 +Deploying copyright files for file /lib/x86_64-linux-gnu/liblz4.so.1 +Deploying shared library /lib/x86_64-linux-gnu/liblzma.so.5 +Deploying copyright files for file /lib/x86_64-linux-gnu/liblzma.so.5 +Deploying shared library /lib/x86_64-linux-gnu/libbsd.so.0 +Deploying copyright files for file /lib/x86_64-linux-gnu/libbsd.so.0 +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libgpg-error.so.0 +Deploying shared library /lib/x86_64-linux-gnu/libmd.so.0 +Deploying copyright files for file /lib/x86_64-linux-gnu/libmd.so.0 +Deploying dependencies for ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6WaylandClient.so.6.6.3 +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libwayland-client.so.0 +Deploying shared library /lib/x86_64-linux-gnu/libwayland-cursor.so.0 +Deploying copyright files for file /lib/x86_64-linux-gnu/libwayland-cursor.so.0 +Deploying shared library /lib/x86_64-linux-gnu/libffi.so.8 +Deploying copyright files for file /lib/x86_64-linux-gnu/libffi.so.8 +Deploying dependencies for ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6WlShellIntegration.so.6.6.3 +Deploying shared library /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6WaylandClient.so.6 +WARNING: Could not find copyright files for file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6WaylandClient.so.6 using dpkg-query +Deploying dependencies for ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6OpenGL.so.6.6.3 +Deploying dependencies for ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6WaylandEglClientHwIntegration.so.6.6.3 +Deploying shared library /lib/x86_64-linux-gnu/libwayland-egl.so.1 +Deploying copyright files for file /lib/x86_64-linux-gnu/libwayland-egl.so.1 +Deploying shared library /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6OpenGL.so.6 +WARNING: Could not find copyright files for file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6OpenGL.so.6 using dpkg-query +Deploying dependencies for ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6XcbQpa.so.6.6.3 +Deploying shared library /lib/x86_64-linux-gnu/libxcb-cursor.so.0 +Deploying copyright files for file /lib/x86_64-linux-gnu/libxcb-cursor.so.0 +Deploying shared library /lib/x86_64-linux-gnu/libxcb-icccm.so.4 +Deploying copyright files for file /lib/x86_64-linux-gnu/libxcb-icccm.so.4 +Deploying shared library /lib/x86_64-linux-gnu/libxcb-image.so.0 +Deploying copyright files for file /lib/x86_64-linux-gnu/libxcb-image.so.0 +Deploying shared library /lib/x86_64-linux-gnu/libxcb-keysyms.so.1 +Deploying copyright files for file /lib/x86_64-linux-gnu/libxcb-keysyms.so.1 +Deploying shared library /lib/x86_64-linux-gnu/libxcb-randr.so.0 +Deploying copyright files for file /lib/x86_64-linux-gnu/libxcb-randr.so.0 +Deploying shared library /lib/x86_64-linux-gnu/libxcb-render.so.0 +Deploying copyright files for file /lib/x86_64-linux-gnu/libxcb-render.so.0 +Deploying shared library /lib/x86_64-linux-gnu/libxcb-render-util.so.0 +Deploying copyright files for file /lib/x86_64-linux-gnu/libxcb-render-util.so.0 +Deploying shared library /lib/x86_64-linux-gnu/libxcb-shape.so.0 +Deploying copyright files for file /lib/x86_64-linux-gnu/libxcb-shape.so.0 +Deploying shared library /lib/x86_64-linux-gnu/libxcb-shm.so.0 +Deploying copyright files for file /lib/x86_64-linux-gnu/libxcb-shm.so.0 +Deploying shared library /lib/x86_64-linux-gnu/libxcb-sync.so.1 +Deploying copyright files for file /lib/x86_64-linux-gnu/libxcb-sync.so.1 +Deploying shared library /lib/x86_64-linux-gnu/libxcb-xfixes.so.0 +Deploying copyright files for file /lib/x86_64-linux-gnu/libxcb-xfixes.so.0 +Deploying shared library /lib/x86_64-linux-gnu/libxcb-xkb.so.1 +Deploying copyright files for file /lib/x86_64-linux-gnu/libxcb-xkb.so.1 +Skipping deployment of blacklisted library /lib/x86_64-linux-gnu/libX11-xcb.so.1 +Deploying shared library /lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 +Deploying copyright files for file /lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 +Deploying shared library /lib/x86_64-linux-gnu/libxcb-util.so.1 +Deploying copyright files for file /lib/x86_64-linux-gnu/libxcb-util.so.1 + +-- Deploying executables -- +Deploying executable /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/bin/Schedule +WARNING: Could not find copyright files for file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/bin/Schedule using dpkg-query +Deploying dependencies for ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/bin/Schedule + +-- Copying files into AppDir -- +Copying file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/bin/Schedule to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/bin/Schedule +Copying file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6Core.so.6 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6Core.so.6 +Copying file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6DBus.so.6 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6DBus.so.6 +Copying file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6Gui.so.6 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6Gui.so.6 +Copying file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6Network.so.6 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6Network.so.6 +Copying file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6OpenGL.so.6 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6OpenGL.so.6 +Copying file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6Sql.so.6 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6Sql.so.6 +Copying file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6WaylandClient.so.6 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6WaylandClient.so.6 +Copying file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6WebSockets.so.6 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6WebSockets.so.6 +Copying file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libQt6Widgets.so.6 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6Widgets.so.6 +Copying file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libicudata.so.56 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libicudata.so.56 +Copying file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libicui18n.so.56 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libicui18n.so.56 +Copying file /home/misaki/Qt6.3/6.6.3/gcc_64/lib/libicuuc.so.56 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libicuuc.so.56 +Copying file /lib/x86_64-linux-gnu/libXau.so.6 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libXau.so.6 +Copying file /lib/x86_64-linux-gnu/libXdmcp.so.6 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libXdmcp.so.6 +Copying file /lib/x86_64-linux-gnu/libbrotlicommon.so.1 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libbrotlicommon.so.1 +Copying file /lib/x86_64-linux-gnu/libbrotlidec.so.1 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libbrotlidec.so.1 +Copying file /lib/x86_64-linux-gnu/libbsd.so.0 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libbsd.so.0 +Copying file /lib/x86_64-linux-gnu/libbz2.so.1.0 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libbz2.so.1.0 +Copying file /lib/x86_64-linux-gnu/libcap.so.2 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libcap.so.2 +Copying file /lib/x86_64-linux-gnu/libdbus-1.so.3 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libdbus-1.so.3 +Copying file /lib/x86_64-linux-gnu/libffi.so.8 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libffi.so.8 +Copying file /lib/x86_64-linux-gnu/libgcrypt.so.20 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libgcrypt.so.20 +Copying file /lib/x86_64-linux-gnu/libglib-2.0.so.0 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libglib-2.0.so.0 +Copying file /lib/x86_64-linux-gnu/libgssapi_krb5.so.2 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libgssapi_krb5.so.2 +Copying file /lib/x86_64-linux-gnu/libgthread-2.0.so.0 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libgthread-2.0.so.0 +Copying file /lib/x86_64-linux-gnu/libk5crypto.so.3 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libk5crypto.so.3 +Copying file /lib/x86_64-linux-gnu/libkeyutils.so.1 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libkeyutils.so.1 +Copying file /lib/x86_64-linux-gnu/libkrb5.so.3 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libkrb5.so.3 +Copying file /lib/x86_64-linux-gnu/libkrb5support.so.0 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libkrb5support.so.0 +Copying file /lib/x86_64-linux-gnu/liblz4.so.1 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/liblz4.so.1 +Copying file /lib/x86_64-linux-gnu/liblzma.so.5 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/liblzma.so.5 +Copying file /lib/x86_64-linux-gnu/libmd.so.0 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libmd.so.0 +Copying file /lib/x86_64-linux-gnu/libpcre2-8.so.0 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libpcre2-8.so.0 +Copying file /lib/x86_64-linux-gnu/libpng16.so.16 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libpng16.so.16 +Copying file /lib/x86_64-linux-gnu/libsystemd.so.0 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libsystemd.so.0 +Copying file /lib/x86_64-linux-gnu/libwayland-cursor.so.0 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libwayland-cursor.so.0 +Copying file /lib/x86_64-linux-gnu/libwayland-egl.so.1 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libwayland-egl.so.1 +Copying file /lib/x86_64-linux-gnu/libxcb-cursor.so.0 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-cursor.so.0 +Copying file /lib/x86_64-linux-gnu/libxcb-icccm.so.4 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-icccm.so.4 +Copying file /lib/x86_64-linux-gnu/libxcb-image.so.0 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-image.so.0 +Copying file /lib/x86_64-linux-gnu/libxcb-keysyms.so.1 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-keysyms.so.1 +Copying file /lib/x86_64-linux-gnu/libxcb-randr.so.0 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-randr.so.0 +Copying file /lib/x86_64-linux-gnu/libxcb-render-util.so.0 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-render-util.so.0 +Copying file /lib/x86_64-linux-gnu/libxcb-render.so.0 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-render.so.0 +Copying file /lib/x86_64-linux-gnu/libxcb-shape.so.0 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-shape.so.0 +Copying file /lib/x86_64-linux-gnu/libxcb-shm.so.0 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-shm.so.0 +Copying file /lib/x86_64-linux-gnu/libxcb-sync.so.1 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-sync.so.1 +Copying file /lib/x86_64-linux-gnu/libxcb-util.so.1 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-util.so.1 +Copying file /lib/x86_64-linux-gnu/libxcb-xfixes.so.0 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-xfixes.so.0 +Copying file /lib/x86_64-linux-gnu/libxcb-xkb.so.1 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-xkb.so.1 +Copying file /lib/x86_64-linux-gnu/libxkbcommon-x11.so.0 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxkbcommon-x11.so.0 +Copying file /lib/x86_64-linux-gnu/libxkbcommon.so.0 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxkbcommon.so.0 +Copying file /lib/x86_64-linux-gnu/libzstd.so.1 to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libzstd.so.1 +Copying file /usr/share/doc/libbrotli1/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libbrotli1/copyright +Copying file /usr/share/doc/libbsd0/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libbsd0/copyright +Copying file /usr/share/doc/libbz2-1.0/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libbz2-1.0/copyright +Copying file /usr/share/doc/libcap2/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libcap2/copyright +Copying file /usr/share/doc/libdbus-1-3/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libdbus-1-3/copyright +Copying file /usr/share/doc/libffi8/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libffi8/copyright +Copying file /usr/share/doc/libgcrypt20/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libgcrypt20/copyright +Copying file /usr/share/doc/libglib2.0-0t64/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libglib2.0-0t64/copyright +Copying file /usr/share/doc/libgssapi-krb5-2/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libgssapi-krb5-2/copyright +Copying file /usr/share/doc/libk5crypto3/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libk5crypto3/copyright +Copying file /usr/share/doc/libkeyutils1/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libkeyutils1/copyright +Copying file /usr/share/doc/libkrb5-3/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libkrb5-3/copyright +Copying file /usr/share/doc/libkrb5support0/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libkrb5support0/copyright +Copying file /usr/share/doc/liblz4-1/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/liblz4-1/copyright +Copying file /usr/share/doc/liblzma5/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/liblzma5/copyright +Copying file /usr/share/doc/libmd0/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libmd0/copyright +Copying file /usr/share/doc/libpcre2-8-0/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libpcre2-8-0/copyright +Copying file /usr/share/doc/libpng16-16t64/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libpng16-16t64/copyright +Copying file /usr/share/doc/libsystemd0/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libsystemd0/copyright +Copying file /usr/share/doc/libwayland-cursor0/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libwayland-cursor0/copyright +Copying file /usr/share/doc/libwayland-egl1/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libwayland-egl1/copyright +Copying file /usr/share/doc/libxau6/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libxau6/copyright +Copying file /usr/share/doc/libxcb-cursor0/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libxcb-cursor0/copyright +Copying file /usr/share/doc/libxcb-icccm4/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libxcb-icccm4/copyright +Copying file /usr/share/doc/libxcb-image0/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libxcb-image0/copyright +Copying file /usr/share/doc/libxcb-keysyms1/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libxcb-keysyms1/copyright +Copying file /usr/share/doc/libxcb-randr0/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libxcb-randr0/copyright +Copying file /usr/share/doc/libxcb-render-util0/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libxcb-render-util0/copyright +Copying file /usr/share/doc/libxcb-render0/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libxcb-render0/copyright +Copying file /usr/share/doc/libxcb-shape0/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libxcb-shape0/copyright +Copying file /usr/share/doc/libxcb-shm0/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libxcb-shm0/copyright +Copying file /usr/share/doc/libxcb-sync1/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libxcb-sync1/copyright +Copying file /usr/share/doc/libxcb-util1/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libxcb-util1/copyright +Copying file /usr/share/doc/libxcb-xfixes0/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libxcb-xfixes0/copyright +Copying file /usr/share/doc/libxcb-xkb1/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libxcb-xkb1/copyright +Copying file /usr/share/doc/libxdmcp6/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libxdmcp6/copyright +Copying file /usr/share/doc/libxkbcommon-x11-0/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libxkbcommon-x11-0/copyright +Copying file /usr/share/doc/libxkbcommon0/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libxkbcommon0/copyright +Copying file /usr/share/doc/libzstd1/copyright to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/doc/libzstd1/copyright +WARNING: Not calling strip on binary /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/bin/Schedule: rpath starts with $ +WARNING: Not calling strip on binary /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6Core.so.6: rpath starts with $ +WARNING: Not calling strip on binary /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6DBus.so.6: rpath starts with $ +WARNING: Not calling strip on binary /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6Gui.so.6: rpath starts with $ +WARNING: Not calling strip on binary /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6Network.so.6: rpath starts with $ +WARNING: Not calling strip on binary /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6OpenGL.so.6: rpath starts with $ +WARNING: Not calling strip on binary /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6Sql.so.6: rpath starts with $ +WARNING: Not calling strip on binary /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6WaylandClient.so.6: rpath starts with $ +WARNING: Not calling strip on binary /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6WebSockets.so.6: rpath starts with $ +WARNING: Not calling strip on binary /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6Widgets.so.6: rpath starts with $ +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libXau.so.6 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libXdmcp.so.6 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libbrotlicommon.so.1 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libbrotlidec.so.1 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libbsd.so.0 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libbz2.so.1.0 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libcap.so.2 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libdbus-1.so.3 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libffi.so.8 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libgcrypt.so.20 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libglib-2.0.so.0 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libgssapi_krb5.so.2 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libgthread-2.0.so.0 +WARNING: Not calling strip on binary /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libicudata.so.56: rpath starts with $ +WARNING: Not calling strip on binary /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libicui18n.so.56: rpath starts with $ +WARNING: Not calling strip on binary /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libicuuc.so.56: rpath starts with $ +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libk5crypto.so.3 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libkeyutils.so.1 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libkrb5.so.3 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libkrb5support.so.0 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/liblz4.so.1 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/liblzma.so.5 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libmd.so.0 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libpcre2-8.so.0 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libpng16.so.16 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libsystemd.so.0 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libwayland-cursor.so.0 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libwayland-egl.so.1 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-cursor.so.0 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-icccm.so.4 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-image.so.0 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-keysyms.so.1 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-randr.so.0 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-render-util.so.0 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-render.so.0 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-shape.so.0 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-shm.so.0 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-sync.so.1 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-util.so.1 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-xfixes.so.0 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-xkb.so.1 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxkbcommon-x11.so.0 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxkbcommon.so.0 +Calling strip on library /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libzstd.so.1 +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/bin/Schedule to $ORIGIN/../lib +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6Core.so.6 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6DBus.so.6 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6Gui.so.6 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6Network.so.6 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6OpenGL.so.6 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6OpenGL.so.6.6.3 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6Sql.so.6 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6WaylandClient.so.6 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6WaylandClient.so.6.6.3 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6WaylandEglClientHwIntegration.so.6.6.3 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6WebSockets.so.6 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6Widgets.so.6 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6WlShellIntegration.so.6.6.3 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libQt6XcbQpa.so.6.6.3 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libXau.so.6 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libXdmcp.so.6 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libbrotlicommon.so.1 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libbrotlidec.so.1 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libbsd.so.0 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libbz2.so.1.0 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libcap.so.2 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libdbus-1.so.3 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libffi.so.8 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libgcrypt.so.20 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libglib-2.0.so.0 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libgssapi_krb5.so.2 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libgthread-2.0.so.0 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libicudata.so.56 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libicui18n.so.56 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libicuuc.so.56 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libk5crypto.so.3 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libkeyutils.so.1 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libkrb5.so.3 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libkrb5support.so.0 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/liblz4.so.1 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/liblzma.so.5 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libmd.so.0 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libpcre2-8.so.0 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libpng16.so.16 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libsystemd.so.0 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libwayland-cursor.so.0 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libwayland-egl.so.1 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-cursor.so.0 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-icccm.so.4 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-image.so.0 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-keysyms.so.1 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-randr.so.0 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-render-util.so.0 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-render.so.0 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-shape.so.0 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-shm.so.0 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-sync.so.1 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-util.so.1 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-xfixes.so.0 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxcb-xkb.so.1 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxkbcommon-x11.so.0 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libxkbcommon.so.0 to $ORIGIN +Setting rpath in ELF file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/lib/libzstd.so.1 to $ORIGIN + +-- Deploying icons -- +Deploying icon /home/misaki/MisakiCodes/Schedule/packaging/linux/schedule.png +WARNING: Could not find copyright files for file /home/misaki/MisakiCodes/Schedule/packaging/linux/schedule.png using dpkg-query + +-- Deploying desktop files -- +Deploying desktop file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/applications/Schedule.desktop + +-- Copying files into AppDir -- +Copying file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/applications/Schedule.desktop to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/applications/Schedule.desktop +Copying file /home/misaki/MisakiCodes/Schedule/packaging/linux/schedule.png to /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/icons/hicolor/256x256/apps/schedule.png + +-- Deploying files into AppDir root directory -- +Deploying files to AppDir root using desktop file: /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/applications/Schedule.desktop +Deploying desktop file to AppDir root: /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/applications/Schedule.desktop +Creating symlink for file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/applications/Schedule.desktop in/as /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir +Deploying icon to AppDir root: /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/icons/hicolor/scalable/apps/schedule.svg +Creating symlink for file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/share/icons/hicolor/scalable/apps/schedule.svg in/as /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir +Deploying AppRun symlink for executable in AppDir root: /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/bin/Schedule +Creating symlink for file /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/usr/bin/Schedule in/as /home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir/AppRun +Creating /home/misaki/MisakiCodes/Schedule/dist/AI-Schedule-0.1.0-x86_64.AppImage... +appimagetool, continuous build (commit 5735cc5), build built on 2023-03-08 22:52:04 UTC +Using architecture x86_64 +WARNING: AppStream upstream metadata is missing, please consider creating it + in usr/share/metainfo/Schedule.appdata.xml + Please see https://www.freedesktop.org/software/appstream/docs/chap-Quickstart.html#sect-Quickstart-DesktopApps + for more information or use the generator at http://output.jsbin.com/qoqukof. +Generating squashfs... +Parallel mksquashfs: Using 12 processors +Creating 4.0 filesystem on /home/misaki/MisakiCodes/Schedule/dist/AI-Schedule-0.1.0-x86_64.AppImage, block size 131072. + +[===============================================================/] 746/746 100% + +Exportable Squashfs 4.0 filesystem, gzip compressed, data block size 131072 + compressed data, compressed metadata, compressed fragments, + compressed xattrs, compressed ids + duplicates are removed +Filesystem size 34362.88 Kbytes (33.56 Mbytes) + 41.71% of uncompressed filesystem size (82381.50 Kbytes) +Inode table size 4261 bytes (4.16 Kbytes) + 41.69% of uncompressed inode table size (10220 bytes) +Directory table size 2467 bytes (2.41 Kbytes) + 41.90% of uncompressed directory table size (5888 bytes) +Number of duplicate files found 13 +Number of inodes 232 +Number of files 147 +Number of fragments 30 +Number of symbolic links 11 +Number of device nodes 0 +Number of fifo nodes 0 +Number of socket nodes 0 +Number of directories 74 +Number of ids (unique uids + gids) 1 +Number of uids 1 + root (0) +Number of gids 1 + root (0) +Embedding ELF... +Marking the AppImage as executable... +Embedding MD5 digest +Success + +Please consider submitting your AppImage to AppImageHub, the crowd-sourced +central directory of available AppImages, by opening a pull request +at https://github.com/AppImage/appimage.github.io +/home/misaki/MisakiCodes/Schedule/build/linux-gcc-release/AppDir should be packaged as /home/misaki/MisakiCodes/Schedule/dist/AI-Schedule-0.1.0-x86_64.AppImage +AppImage created: /home/misaki/MisakiCodes/Schedule/dist/AI-Schedule-0.1.0-x86_64.AppImage diff --git a/docs/validation/appimage-sha256.txt b/docs/validation/appimage-sha256.txt new file mode 100644 index 0000000..0e19531 --- /dev/null +++ b/docs/validation/appimage-sha256.txt @@ -0,0 +1 @@ +2314cec2b9f09aaf9a69d4cf8725e6d68058f383bd9c0a6d419658ee51bdc9bb dist/AI-Schedule-0.1.0-x86_64.AppImage diff --git a/docs/validation/ctest-phase-4-3.txt b/docs/validation/ctest-phase-4-3.txt new file mode 100644 index 0000000..7da326a --- /dev/null +++ b/docs/validation/ctest-phase-4-3.txt @@ -0,0 +1,29 @@ +Test project /home/misaki/MisakiCodes/Schedule/build/linux-gcc + Start 1: go_server_tests + 1/12 Test #1: go_server_tests .................. Passed 0.21 sec + Start 2: storage + 2/12 Test #2: storage .......................... Passed 0.02 sec + Start 3: services + 3/12 Test #3: services ......................... Passed 0.05 sec + Start 4: grid + 4/12 Test #4: grid ............................. Passed 0.40 sec + Start 5: mainwindow + 5/12 Test #5: mainwindow ....................... Passed 1.28 sec + Start 6: compactwindow + 6/12 Test #6: compactwindow .................... Passed 4.33 sec + Start 7: config + 7/12 Test #7: config ........................... Passed 0.02 sec + Start 8: scheduler + 8/12 Test #8: scheduler ........................ Passed 0.01 sec + Start 9: energy + 9/12 Test #9: energy ........................... Passed 0.00 sec + Start 10: ai +10/12 Test #10: ai ............................... Passed 0.12 sec + Start 11: openai_provider +11/12 Test #11: openai_provider .................. Passed 0.21 sec + Start 12: sync_integration +12/12 Test #12: sync_integration ................. Passed 9.12 sec + +100% tests passed, 0 tests failed out of 12 + +Total Test time (real) = 15.76 sec diff --git a/docs/validation/phase-4-3.md b/docs/validation/phase-4-3.md new file mode 100644 index 0000000..ac4d578 --- /dev/null +++ b/docs/validation/phase-4-3.md @@ -0,0 +1,73 @@ +# 阶段 4.3 验证报告:Linux AppImage 打包 + +> 日期:2026-10-26 +> 环境:Ubuntu 24.04 / Qt 6.6.3 / linuxdeploy 2025-10 / appimagetool 2023 + +## 1. 本次交付 + +新增 Linux AppImage 打包: + +- `scripts/package-linux-appimage.sh` +- `packaging/linux/Schedule.desktop` +- `packaging/linux/schedule.svg` + `schedule.png` +- `packaging/linux/com.misaki.Schedule.appdata.xml` + +产物: + +```text +dist/AI-Schedule-0.1.0-x86_64.AppImage +大小:约 34 MB +SHA-256:2314cec2b9f09aaf9a69d4cf8725e6d68058f383bd9c0a6d419658ee51bdc9bb +``` + +脚本会: + +1. 使用 `linux-gcc-release` preset,并强制 `CMAKE_BUILD_TYPE=Release`; +2. 安装到临时 AppDir; +3. 部署 Qt 库、平台插件、SQLite 驱动、TLS、图标主题和 fcitx5 输入法插件; +4. 打包 Qt6XcbQpa / Qt6OpenGL / Wayland 客户端等平台插件依赖; +5. 使用 `linuxdeploy` 收集系统依赖,`appimagetool` 生成 AppImage; +6. 首次运行时自动下载 linuxdeploy/appimagetool 到用户缓存,也可用 `TOOLS_DIR` 指定现成工具目录。 + +## 2. 验证 + +```bash +./scripts/package-linux-appimage.sh +./dist/AI-Schedule-0.1.0-x86_64.AppImage --appimage-version +``` + +| 项目 | 结果 | +|---|---| +| AppImage 构建 | 成功,约 34 MB | +| `--appimage-version` | 正常输出 | +| Xvfb/X11 启动 | 成功运行至超时退出(exit 124),无缺失库/插件错误 | +| offscreen 启动 | 成功创建临时配置与 SQLite 数据库 | +| 内置 Qt | WebSockets / DBus / SQL / Widgets 等已部署 | +| 内置插件 | platforms(xcb/wayland/offscreen)、imageformats、sqldrivers(sqlite)、platforminputcontexts(含 fcitx5) | + +构建日志见 [`appimage-build-phase-4-3.txt`](appimage-build-phase-4-3.txt),校验值见 [`appimage-sha256.txt`](appimage-sha256.txt),桌面回归测试见 [`ctest-phase-4-3.txt`](ctest-phase-4-3.txt)。 + +## 3. 使用 + +```bash +chmod +x dist/AI-Schedule-0.1.0-x86_64.AppImage +./dist/AI-Schedule-0.1.0-x86_64.AppImage +``` + +文件管理器通常可直接双击运行。 + +- 如果系统没有 FUSE: + ```bash + ./dist/AI-Schedule-0.1.0-x86_64.AppImage --appimage-extract-and-run + ``` + 或 `APPIMAGE_EXTRACT_AND_RUN=1 ./...AppImage` +- 配置与数据库仍保存在用户目录,不由 AppImage 内部保存;与普通安装版共享同一设备 ID/配置。 +- 通过 `QT_ROOT` 指定 Qt 安装路径;通过 `TOOLS_DIR` 复用已下载的 linuxdeploy/appimagetool。 + +## 4. 已知限制 + +1. AppImage 在 Ubuntu 24.04 上构建,较旧的发行版可能缺少更新的 glibc 而无法运行。 +2. 直接运行需要 FUSE;无 FUSE 环境使用 `--appimage-extract-and-run`。 +3. 首次打包需要联网下载 linuxdeploy/appimagetool;离线环境可预先放入 `TOOLS_DIR`。 +4. AppImage 未提交到 git(`dist/` 已忽略),当前产物在本地 `dist/` 目录。 +5. 未做代码签名/AppImage 更新元数据;系统级通知仍依赖桌面通知服务。 diff --git a/packaging/linux/Schedule.desktop b/packaging/linux/Schedule.desktop new file mode 100644 index 0000000..efbb4e2 --- /dev/null +++ b/packaging/linux/Schedule.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Name=AI 日程 +Comment=AI-driven personal schedule and calendar +Exec=Schedule +Icon=schedule +Terminal=false +Categories=Office;Calendar; +StartupWMClass=Schedule diff --git a/packaging/linux/com.misaki.Schedule.appdata.xml b/packaging/linux/com.misaki.Schedule.appdata.xml new file mode 100644 index 0000000..9d1c469 --- /dev/null +++ b/packaging/linux/com.misaki.Schedule.appdata.xml @@ -0,0 +1,15 @@ + + + com.misaki.Schedule + AI 日程 + AI 驱动的个人日程与日历 + CC0-1.0 + +

AI 日程是一款本地优先的日程管理应用,支持自然语言排程、日/月/年视图、精力曲线、幽灵时间、每日复盘以及自部署多设备同步。

+
+ Schedule.desktop + Misaki + + + +
diff --git a/packaging/linux/schedule.png b/packaging/linux/schedule.png new file mode 100644 index 0000000000000000000000000000000000000000..dad853e4c455ca287175b904aac799820477449a GIT binary patch literal 10243 zcma)ic|4Tw_xC+RSwhB=EQ9PRYqD=;7`tSv2!&)F>l714ib2N5E=zj zmVMtcmh8LdroNx=?|ELY=k+}IKR4H$`#R@b=UnHU>w2Hi8~R9EYBp*B0BE%|5jOz< z0{#gB=ud+$nh7s{@WpMTc~cJnd<6gi`wRef!6ED%0Cq_rdTeQhI!@LPDT&=|9YbQX$WNLx%1r)t%>ViTO$)fE5Sls zoC3|kD&d6REE&#HpLb_b;e>W>!`>88?W6OCzNBbBON1?oe^UKrxpr*d+pyKxWgc2>|kpaQ}}R>`zL(DgDvNes>tG>FP$7 z(4-2C>e|5lewdts0D$I^_lVy?Ud3a_eo!pZt@l@JxRt^@VGDc6VWRA+LB~vH^F{2*SsG zUZC^$*;oAd=zO&U(sn2=#pnjyP#}$Pco<-COfW=={W$*Z`NUjMZN>`+zGIc69U{DW zGYm0b8?g>gNjOr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}LP8Dhnyrka0Urmw?ZR|Hh+3hGjhf literal 0 HcmV?d00001 diff --git a/packaging/linux/schedule.svg b/packaging/linux/schedule.svg new file mode 100644 index 0000000..e5a5454 --- /dev/null +++ b/packaging/linux/schedule.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/scripts/package-linux-appimage.sh b/scripts/package-linux-appimage.sh new file mode 100755 index 0000000..de3d486 --- /dev/null +++ b/scripts/package-linux-appimage.sh @@ -0,0 +1,169 @@ +#!/usr/bin/env bash +set -euo pipefail + +ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" +BUILD_DIR="${BUILD_DIR:-$ROOT/build/linux-gcc-release}" +DIST_DIR="${DIST_DIR:-$ROOT/dist}" +QT_ROOT="${QT_ROOT:-/home/misaki/Qt6.3/6.6.3/gcc_64}" +VERSION="${VERSION:-0.1.0}" +ARCH="${ARCH:-x86_64}" +CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/schedule-appimage-tools" + +if [[ -n "${TOOLS_DIR:-}" ]]; then + CACHE_DIR="$TOOLS_DIR" +fi + +mkdir -p "$CACHE_DIR" "$DIST_DIR" + +download_tool() { + local name="$1" + local url="$2" + local target="$CACHE_DIR/$name" + if [[ ! -x "$target" ]]; then + echo "Downloading $name..." + curl -fL --retry 3 --max-time 300 -o "$target" "$url" + chmod +x "$target" + fi +} + +download_tool linuxdeploy-x86_64.AppImage \ + "https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage" +download_tool appimagetool-x86_64.AppImage \ + "https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" + +LINUXDEPLOY="$CACHE_DIR/linuxdeploy-x86_64.AppImage" +APPIMAGETOOL="$CACHE_DIR/appimagetool-x86_64.AppImage" +export PATH="$CACHE_DIR:$PATH" +export APPIMAGE_EXTRACT_AND_RUN=1 +export QMAKE="$QT_ROOT/bin/qmake" +export LD_LIBRARY_PATH="$QT_ROOT/lib:${LD_LIBRARY_PATH:-}" +export VERSION +export ARCH + +if [[ ! -x "$QT_ROOT/bin/qmake" ]]; then + echo "Qt qmake not found: $QT_ROOT/bin/qmake" >&2 + echo "Set QT_ROOT to the Qt 6.6.3 gcc_64 directory." >&2 + exit 1 +fi + +echo "Configuring release build..." +cmake --preset linux-gcc-release -DCMAKE_BUILD_TYPE=Release +cmake --build --preset linux-gcc-release -j"$(nproc)" + +APPDIR="$BUILD_DIR/AppDir" +rm -rf "$APPDIR" +mkdir -p "$APPDIR" + +echo "Installing application files..." +DESTDIR="$APPDIR" cmake --install "$BUILD_DIR" --prefix /usr +mkdir -p "$APPDIR/usr/bin" +if [[ -f "$APPDIR/usr/Schedule" ]]; then + mv "$APPDIR/usr/Schedule" "$APPDIR/usr/bin/Schedule" +fi +if command -v strip >/dev/null 2>&1; then + strip --strip-unneeded "$APPDIR/usr/bin/Schedule" || true +fi + +install -Dm644 "$ROOT/packaging/linux/Schedule.desktop" \ + "$APPDIR/usr/share/applications/Schedule.desktop" +install -Dm644 "$ROOT/packaging/linux/schedule.png" \ + "$APPDIR/usr/share/icons/hicolor/256x256/apps/schedule.png" +install -Dm644 "$ROOT/packaging/linux/schedule.svg" \ + "$APPDIR/usr/share/icons/hicolor/scalable/apps/schedule.svg" +install -Dm644 "$ROOT/packaging/linux/com.misaki.Schedule.appdata.xml" \ + "$APPDIR/usr/share/metainfo/com.misaki.Schedule.appdata.xml" +cp "$ROOT/packaging/linux/Schedule.desktop" "$APPDIR/Schedule.desktop" +cp "$ROOT/packaging/linux/schedule.png" "$APPDIR/schedule.png" +cp "$ROOT/packaging/linux/schedule.png" "$APPDIR/.DirIcon" + +echo "Copying required Qt plugins..." +copy_plugin_dir() { + local name="$1" + if [[ -d "$QT_ROOT/plugins/$name" ]]; then + mkdir -p "$APPDIR/usr/plugins/$name" + cp -a "$QT_ROOT/plugins/$name/." "$APPDIR/usr/plugins/$name/" + fi +} +for plugin_dir in \ + platforms \ + platformthemes \ + platforminputcontexts \ + imageformats \ + iconengines \ + styles \ + tls \ + xcbglintegrations \ + wayland-shell-integration \ + wayland-decoration-client \ + accessible; do + copy_plugin_dir "$plugin_dir" +done +mkdir -p "$APPDIR/usr/plugins/sqldrivers" +if [[ -e "$QT_ROOT/plugins/sqldrivers/libqsqlite.so" ]]; then + cp "$QT_ROOT/plugins/sqldrivers/libqsqlite.so" "$APPDIR/usr/plugins/sqldrivers/" +fi +find "$APPDIR/usr/plugins" -name '*.debug' -delete + +# Copy Qt libraries required by the X11/Wayland platform plugins. The core +# deployment handles the application's direct Qt dependencies, but not these +# plugin-only modules. +mkdir -p "$APPDIR/usr/lib" +for lib in \ + libQt6XcbQpa \ + libQt6OpenGL \ + libQt6WaylandClient \ + libQt6WaylandEglClientHwIntegration \ + libQt6WlShellIntegration; do + cp -a "$QT_ROOT/lib/$lib.so"* "$APPDIR/usr/lib/" 2>/dev/null || true +done + +echo "Deploying shared library dependencies..." +"$LINUXDEPLOY" \ + --appdir "$APPDIR" \ + --executable "$APPDIR/usr/bin/Schedule" \ + --desktop-file "$APPDIR/usr/share/applications/Schedule.desktop" \ + --icon-file "$ROOT/packaging/linux/schedule.png" + +cat > "$APPDIR/usr/bin/qt.conf" <<'QT_CONF' +[Paths] +Prefix=.. +Plugins=plugins +Libraries=lib +QT_CONF + +# Bundle a few newer xcb helpers that are not guaranteed on older desktops. +copy_system_library() { + local soname="$1" + local path + path="$(ldconfig -p 2>/dev/null | awk -v name="$soname" '$1 == name { print $NF; exit }')" + if [[ -n "$path" && -f "$path" ]]; then + cp -L "$path" "$APPDIR/usr/lib/" + fi +} +for lib in \ + libxcb-cursor.so.0 \ + libxcb-icccm.so.4 \ + libxcb-image.so.0 \ + libxcb-keysyms.so.1 \ + libxcb-render-util.so.0 \ + libxcb-xinerama.so.0 \ + libxcb-util.so.1 \ + libxkbcommon-x11.so.0; do + copy_system_library "$lib" +done + +rm -f "$APPDIR/AppRun" +cat > "$APPDIR/AppRun" <<'APPRUN' +#!/bin/sh +HERE="$(dirname "$(readlink -f "$0")")" +export LD_LIBRARY_PATH="$HERE/usr/lib:${LD_LIBRARY_PATH:-}" +export QT_PLUGIN_PATH="$HERE/usr/plugins" +exec "$HERE/usr/bin/Schedule" "$@" +APPRUN +chmod +x "$APPDIR/AppRun" + +OUTPUT="$DIST_DIR/AI-Schedule-${VERSION}-${ARCH}.AppImage" +echo "Creating $OUTPUT..." +ARCH="$ARCH" VERSION="$VERSION" "$APPIMAGETOOL" "$APPDIR" "$OUTPUT" +chmod +x "$OUTPUT" +echo "AppImage created: $OUTPUT"