Squirrel / Squirrel.Windows

An installation and update framework for Windows desktop apps
MIT License
7.41k stars 1.03k forks source link

delta update for nuget is not created #1884

Open maoryadin opened 5 months ago

maoryadin commented 5 months ago

delta update for nuget is not created:

✖ [publisher-s3] Running the publish command [FAILED: ENOENT: no such file or directory, open 'C:\actions-runner_work\Wallets\Wallets\Wallets\MyProject{PROJECT}\out\make\squirrel.windows\x64{PROJECT}-14.0.0-delta.nupkg'] ✖ Publishing distributables [FAILED: ENOENT: no such file or directory, open 'C:\actions-runner_work\Wallets\Wallets\Wallets\MyProject{PROJECT}\out\make\squirrel.windows\x64{PROJECT}-14.0.0-delta.nupkg']

only a {PROJECT}-14.0.0-full-nupkg is created. the RELEASES file is empty in the aws.

tiecia commented 4 months ago

I just ran into this as well and the following worked for me.

For the first release:

  1. Create an empty file called RELEASES at the same path that the s3 publisher publishes the objects to. Note that @electron-forge/publisher-s3 uploads objects to this path by default.
  2. Point the Squirrel.Windows remoteReleases option to the same directory you created RELEASES in.
  3. Set the Squirrel.Windows option noDelta to true.

For subsequent releases:

  1. Set the Squirrel.Windows option noDelta to false.

The delta file will then be generated for all releases after the first.