iccfish/FSLib.App.SimpleUpdater

如何达到完全同步的状态

NeverMore-Father opened this issue · 2 comments

从nuget获取的4.3版本
使用如下地址 https://www.nuget.org/packages/fishlee.net.simpleupdater/4.3.0?_src=template
自动更新包生成工具4.3.0.0
打包配置

<?xml version="1.0"?>
<AuProject xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <UpdateInfo>
    <AppName>Test</AppName>
    <AppVersion>4.3.0.0</AppVersion>
    <ExecuteTimeout>0</ExecuteTimeout>
    <TreatErrorAsNotUpdated>false</TreatErrorAsNotUpdated>
    <PromptUserBeforeAutomaticUpgrade>true</PromptUserBeforeAutomaticUpgrade>
    <AutoCloseSucceedWindow>true</AutoCloseSucceedWindow>
    <DeleteMethod>None</DeleteMethod>
    <PackageSize>0</PackageSize>
    <ForceUpdate>false</ForceUpdate>
    <Packages />
    <HideBeforeExecuteWindow>false</HideBeforeExecuteWindow>
    <HideAfterExecuteWindow>false</HideAfterExecuteWindow>
    <MustUpdate>false</MustUpdate>
    <AutoExitCurrentProcess>false</AutoExitCurrentProcess>
    <AutoEndProcessesWithinAppDir>true</AutoEndProcessesWithinAppDir>
    <AutoKillProcesses>false</AutoKillProcesses>
    <RequreAdminstrorPrivilege>false</RequreAdminstrorPrivilege>
  </UpdateInfo>
  <DefaultFileVerificationLevel>Size Hash</DefaultFileVerificationLevel>
  <DefaultUpdateMethod>VersionCompare</DefaultUpdateMethod>
  <Files />
  <ApplicationDirectory>Test</ApplicationDirectory>
  <DestinationDirectory>Update</DestinationDirectory>
  <CreateCompatiblePackage>false</CreateCompatiblePackage>
  <CompressPackage>true</CompressPackage>
  <EnableIncreaseUpdate>true</EnableIncreaseUpdate>
  <VersionUpdateSrc>Test\Test.exe</VersionUpdateSrc>
  <PackageExtension>zip</PackageExtension>
  <UseRandomPackageNaming>true</UseRandomPackageNaming>
  <CleanBeforeBuild>true</CleanBeforeBuild>
  <ComponentFlags />
</AuProject>

举例
版本1: filea fileb filec
版本2: filea filed
更新版本2后,本地有了 filea fileb filec filed
想要的效果是 本地只有 filea filed

有计划加入完全同步功能,但目前并未实现。现在要实现这个效果(删除多余文件)可以在打包的时候设置删除对应的文件。

@iccfish 好的,等你更新哈,这个库真不错