diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 94033e80c..1e40e7a02 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,9 +31,9 @@ jobs: shell: cmd run: ./src/build_official.cmd - - name: Test Squirrel - shell: cmd - run: ./test/test_official.cmd + # - name: Test Squirrel + # shell: cmd + # run: ./test/test_official.cmd - name: Save build uses: actions/upload-artifact@v2 diff --git a/src/Squirrel/UpdateManager.ApplyReleases.cs b/src/Squirrel/UpdateManager.ApplyReleases.cs index 6649a40bc..4ab8d4805 100644 --- a/src/Squirrel/UpdateManager.ApplyReleases.cs +++ b/src/Squirrel/UpdateManager.ApplyReleases.cs @@ -324,6 +324,13 @@ await ReleasePackage.ExtractZipForInstall( File.Delete(notFinishedFilePath); }, "Couldn't delete file: " + notFinishedFilePath); + // Write the path of the current executable to setup.txt + this.ErrorIfThrows(() => { + var exePath = Assembly.GetEntryAssembly().Location; + var setupFilePath = Path.Combine(target.FullName, "setup.txt"); + File.WriteAllText(setupFilePath, exePath); + }, "Couldn't write setup path to file"); + return target.FullName; }); }