Skip to content

v1.4.0 — 应用内更新与 Android 配置备份 / In-app updates and Android config backups

Choose a tag to compare

@github-actions github-actions released this 03 Dec 11:41
· 93 commits to main since this release
1a3a9c4

Image Studio v1.4.0 加入了应用内更新:有新版本时,应用会显示更新内容,在后台下载、校验后一键安装。这一版仍需手动下载安装,从下一个版本起就可以在应用内更新。Android 版新增配置自动备份,卸载重装后可以恢复上游配置和设置;导出和导入也已修复。

Image Studio v1.4.0 adds in-app updates: when a new version is out, the app shows what changed, downloads and verifies it in the background, and installs it in one step. This version still needs a manual install; from the next release on, updates happen in the app. On Android, settings and upstream configs are now backed up automatically and can be restored after a reinstall, and export and import work again.

Android 用户请先看 / Android users, read this first

从 v1.4.0 起,Android 安装包改用固定的签名证书。旧版本的签名不同,v1.4.0 不能直接覆盖安装,需要先卸载旧版。之后的版本可以直接覆盖安装,也可以在应用内更新。

卸载会清空旧版里的上游配置、API Key 和历史记录,而旧版在 Android 上无法导出这些内容。卸载前请:

  • 记下上游配置(接口地址、模型)和 API Key,装好 v1.4.0 后重新填写。
  • 想保留的图片,先在画布上用“另存为”保存到相册。Android 10 及以上会保存到 Pictures/ImageStudio,卸载后仍然保留。

From v1.4.0, Android packages are signed with a permanent certificate. Older versions were signed differently, so v1.4.0 cannot install over them: uninstall the old version first. Later versions install over v1.4.0 directly or update in the app.

Uninstalling deletes the old version's upstream configs, API keys and history, and older Android versions cannot export them. Before uninstalling, write down your upstream settings and API keys, and save images you want to keep with “另存为” (Save as). On Android 10 and later they go to Pictures/ImageStudio and stay after the uninstall.

新功能 / What's new

  • 应用内更新:启动后检查一次,之后每 6 小时检查一次。更新窗口显示新版本号、安装包大小和更新内容,可以选择“取消”“跳过此版本”或“立即更新”。安装包在后台下载,中断后可以接着下载;更新信息带数字签名,安装包下载后还会核对 SHA-256,校验不通过不会安装。下载优先使用 update.imagestudio.ink,失败时改用 GitHub。

    • Windows 安装版、Windows 便携版、macOS 和 Linux:下载后一键安装并自动重启。Windows 安装版更新时会请求管理员权限。
    • Android:下载后交给系统安装界面确认。第一次更新时需要允许 Image Studio 安装应用。
    • MSIX 等其他安装方式会打开发布页,手动下载。
    • 在 设置 → 关于与反馈 → 检查更新(Android 为 设置 → 应用更新)里可以手动检查,或关闭自动检查。
  • Android 配置备份:上游配置和设置会自动备份到 Documents/ImageStudio/image-studio-config.json,卸载应用后这个文件仍然保留。重装后在首页或 设置 → 配置备份 点“从备份恢复”,选中这个文件即可。备份里没有 API Key 和历史记录,恢复后需要重新填写 API Key。Android 9 需要先在 设置 → 配置备份 点一次“立即备份”并选择保存位置,之后才会自动备份。

  • 启动不再等待检查更新:以前网络不好时,启动最多要多等 8 秒。

  • In-app updates: the app checks at launch and every 6 hours. The update window shows the new version, package size and release notes, with Cancel, Skip this version and Update now. Packages download in the background and pick up where they left off after an interruption. Update information is signed and each package is checked against its SHA-256, and nothing is installed unless both checks pass. Downloads come from update.imagestudio.ink first, with GitHub as the fallback.

    • The Windows installer and portable builds, macOS and Linux install in one step and restart. The Windows installer build asks for administrator approval when it updates.
    • Android hands the package to the system installer. The first update asks you to allow Image Studio to install apps.
    • MSIX and other install types open the download page instead.
    • Check by hand or turn off automatic checks in 设置 → 关于与反馈 → 检查更新 (Settings → About → Check for updates), or 设置 → 应用更新 (Settings → App updates) on Android.
  • Android config backups: upstream configs and settings are backed up to Documents/ImageStudio/image-studio-config.json, which stays after an uninstall. After reinstalling, tap “从备份恢复” (Restore from backup) on the home screen or in 设置 → 配置备份 (Settings → Config backup) and pick that file. Backups never include API keys or history, so re-enter your API keys after restoring. On Android 9, tap “立即备份” (Back up now) once and choose where to save before automatic backups start.

  • Faster startup: launching no longer waits for the update check, which could add up to 8 seconds on a slow network.

修复 / Fixes

  • Android:导出历史记录和上游配置改为打开系统的“保存到”界面,可以自己选择位置和文件名。之前导出历史会报错,导出上游配置提示成功却没有保存文件。

  • Android:导入上游配置、选择自定义提示音恢复可用,之前点了没有反应。

  • Android:首页“先接入可用上游”卡片里,“配置上游”按钮恢复正常的内边距。

  • Android: exporting history and upstream configs opens the system “Save to” screen, where you choose the folder and file name. Previously history export failed, and upstream config export reported success without saving anything.

  • Android: importing upstream configs and choosing a custom completion sound work again; the buttons did nothing before.

  • Android: the “配置上游” button on the home screen's setup card has its padding back.

下载 / Downloads

  • Windows 用户可下载通用安装程序 / Windows installer。已安装 WebView2 的 x64 设备也可使用 Windows x64 EXE。
  • macOS 使用通用 ZIP,Linux 选择对应架构的压缩包,Android 手机和平板使用 APK。macOS, Linux and Android packages are available under Assets.
  • 所有平台附件的 SHA-256 校验值见 SHA256SUMS.txt。

源码与验证 / Source and validation

GitHub Actions 从正式标签构建了此版本。Windows 便携版的应用内更新已用测试构建在本机完整跑通:检查、下载、校验、替换、重启,并提示更新成功;被篡改的安装包会被拒绝。Windows 安装版、macOS 和 Linux 的安装步骤,以及 Android 的配置备份和导出导入,目前经过了自动化测试和界面预览,还没有在真机上完整走过。遇到问题请在 Issues 反馈。

This release was built by GitHub Actions from the release tag. In-app updates of the Windows portable build ran end to end with test builds: check, download, verify, replace, restart and the “updated” notice. A tampered package was rejected. The Windows installer, macOS and Linux install steps, and Android config backups and export/import, have automated tests and UI previews but have not yet run in full on real devices. Please report problems in Issues.

PR #67 · #68 · #69 · #70 · #71 · 完整变更 / Full changelog