1 Star 0 Fork 24

老江 / seafile-client

forked from lins05 / seafile-client 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
sparkle-readme.md 1.28 KB
一键复制 编辑 原始数据 按行查看 历史
haidian6672 提交于 2017-04-08 11:07 . Add auto update feature (#889)

Setup WinSparkle environment

WinSparkle 是 Mac 上的 Sparkle 框架在 windows 上的实现,用于软件自动更新.

在编译时需要加上 BUILD_SPARKLE_SUPPORT flag:

cmake -DBUILD_SPARKLE_SUPPORT=ON .

更新 appcast.xml

winsparkle 根据下载下来的 appcast.xml 中的数据:

  • 判断当前是否有更新版本
  • 新版本的下载地址
  • 新版本的 release notes (展示给用户看)

发布新的版本时,需要更新appcast中的哪些字段:

  • pubDate 字段
  • enclosure 中新版本的下载地址 url 字段
  • enclosure 中新版本的版本号 sparkle:version 字段

本地开发时如何搭建一个简单的 server 来让 seafile-client 去获取 appcast.xml

  • 将 appcast.example.xml 修改一下
  • 然后本地启动一个 nginx 服务器
  • 设置 SEAFILE_CLIENT_APPCAST_URI 环境变量, 然后启动 seafile-applet.
export SEAFILE_CLIENT_APPCAST_URI=http://localhost:8888/appcast.xml
./seafile-applet.exe
C++
1
https://gitee.com/ahrz/seafile-client.git
git@gitee.com:ahrz/seafile-client.git
ahrz
seafile-client
seafile-client
master

搜索帮助