{"id":17993872,"url":"https://github.com/timandy/fy_update","last_synced_at":"2025-06-18T18:08:21.695Z","repository":{"id":97064187,"uuid":"70385426","full_name":"timandy/fy_update","owner":"timandy","description":"A update program powered by directui","archived":false,"fork":false,"pushed_at":"2021-07-30T05:50:17.000Z","size":19961,"stargazers_count":16,"open_issues_count":2,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-27T04:07:36.494Z","etag":null,"topics":["csharp","directui","update","winform"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timandy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-09T07:28:07.000Z","updated_at":"2023-01-09T03:41:52.000Z","dependencies_parsed_at":"2023-03-13T16:19:45.767Z","dependency_job_id":null,"html_url":"https://github.com/timandy/fy_update","commit_stats":null,"previous_names":[],"tags_count":102,"template":false,"template_full_name":null,"purl":"pkg:github/timandy/fy_update","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timandy%2Ffy_update","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timandy%2Ffy_update/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timandy%2Ffy_update/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timandy%2Ffy_update/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timandy","download_url":"https://codeload.github.com/timandy/fy_update/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timandy%2Ffy_update/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260606509,"owners_count":23035353,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","directui","update","winform"],"created_at":"2024-10-29T20:13:18.624Z","updated_at":"2025-06-18T18:08:16.681Z","avatar_url":"https://github.com/timandy.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!--自述文件--\u003e\n\n## Update\n\n### 编译\n- 默认支持 .Net4.0 。\n- 静态导入了 fy_directui(UI) 和 SharpCompress(解压) 库 。\n\n*Debug*\n- 仅用来调试，无法实现自更新。\n- 调试时，更新目标位于 _Output\\Debug\\Test 目录下 。\n\n*Release*\n- 发布版本，可以实现自更新。\n- 一般由主程序检测到可用更新后，启动更新程序并将主程序自身的启动路径作为第一个参数传递给更新程序。\n\n### 部署目录\n- 服务端要求使用 packages.txt 存放更新包列表。\n- packages.txt 文件跟更新包文件夹必须为同一文件夹。\n\n### 更新包格式\n- 更新包为单文件压缩包，支持格式由 SharpCompress 库决定。主要有：zip、rar、7z、gz 等。\n- 更新包必须包含新版的主程序，否则会出现循环更新的情况。\n- 实际部署的时候扩展名可以带也可不带。如果带扩展名，扩展名不能为纯数字。否则会当作版本号，导致解析错误。\n- 压缩时不要在外层嵌套文件夹，直接选中要更新的多个文件压缩即可。\n- 更新程序可自更新，所以更新程序可也压缩到更新包中。\n- 更新包内顶层目录中 delete.txt 可指定要删除的过时文件或目录，每行一个，使用相对路径。\n\n### 更新包命名\n#### 增量更新包\n```\n格式：\u003cFROM\u003e_[to_]\u003cTO\u003e[.EXT | _EXT]\n```\n- \u003c\u003e 表示必选项。[] 表示可选项。\n- [.EXT | _EXT] 表示一串用 '.' 或 '__' 连接的字符串，每个子串不能为纯数字。\n\n\u003e 正确：\n```\n1.0.0_1.0.1\n1.0.0_to_1.0.1\n1.0.0_1.0.1.7z\n1.0.0_1.0.1.a1.7z\n1.0.0_1.0.1_a1_zip\n```\n\u003e 错误：\n```\n1.0.0-1.1.1                 //版本分割符为半角 ‘_’\n1.0.0_1.1.1.zip.77          //[.EXT | _EXT] 有一段为纯数字\n1.0.0_1.1.1.zip_77_7z       //同上\n```\n\u003e 推荐：\n```\n1.0.0.0_to_1.0.0.1.rar\n1.0.0.0_to_1.0.0.1_diff.rar\n```\n\n#### 全量更新包\n```\n格式：\u003cTO\u003e[.EXT | _EXT]\n```\n- 要求同增量更新包。\n\n\u003e 正确：\n```\n1.0.1\n_1.0.1.7z\n1.0.1.a1.7z\n1.0.1_a1_zip\n```\n\u003e 错误：\n```\n-1.1.1                //版本分割符为半角 ‘_’\n1.1.1.zip.77          //[.EXT | _EXT] 有一段为纯数字\n1.1.1.zip_77_7z       //同上\n```\n\u003e 推荐：\n```\n1.0.0.1.rar\n1.0.0.1_full.rar\n```\n\n### packages.txt 内容\n- 每行一个更新包文件名，必须完全一致，包含扩展名，区分大小写。\n- 可以存在空行，空行会被自动忽略。\n- 顺序无关，可随意排序。\n\n\u003e 正确\n```\n1.0.0.1_to_1.0.2.rar\n1.0.0.0_to_1.0.1_diff.zip\n```\n\n### 更新顺序\n- 先查找最新的全量包，如果 TO 比当前版本高，则先下载该包，然后逐个增量包开始更新。\n- 如果没有可用的全量包，则直接逐个增量包开始更新。\n\n### 注意事项\n- 增量更新包 FROM 必须唯一，但 TO 可以有多个。\n- 全量更新包 TO 必须唯一。\n- 增量包和全量包之间互不影响。\n\n\u003e 正确：\n```\n1.0.0.0_to_1.0.3_diff.zip\n1.0.0.1_to_1.0.3.rar\n```\n\u003e 错误：\n```\n1.0.0.1_to_1.0.3_diff.zip   //增量 FROM 重复\n1.0.0.1_to_1.0.2.rar\n```\n\u003e 错误：\n```\n1.0.3_full.zip              //全量 TO 重复\n1.0.3.7z\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimandy%2Ffy_update","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimandy%2Ffy_update","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimandy%2Ffy_update/lists"}