Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何达到完全同步的状态 #39

Open
NeverMore-Father opened this issue Dec 25, 2021 · 2 comments
Open

如何达到完全同步的状态 #39

NeverMore-Father opened this issue Dec 25, 2021 · 2 comments

Comments

@NeverMore-Father
Copy link

从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
Copy link
Owner

iccfish commented Jan 5, 2022

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

@NeverMore-Father
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants