Revert the revert of the sq.version change

This commit is contained in:
Kevin Bost
2025-09-20 23:28:39 -07:00
parent 173a8e6d8d
commit 0ff10b095f

View File

@@ -1,4 +1,4 @@
using System.Runtime.Versioning;
using System.Runtime.Versioning;
using Microsoft.Extensions.Logging;
using Velopack.Core;
using Velopack.Core.Abstractions;
@@ -46,7 +46,6 @@ public class OsxPackCommandRunner : PackageBuilder<OsxPackOptions>
var structure = new OsxStructureBuilder(dir.FullName);
var macosdir = structure.MacosDirectory;
File.WriteAllText(Path.Combine(macosdir, CoreUtil.SpecVersionFileName), GenerateNuspecContent());
File.Copy(HelperFile.GetUpdatePath(Options.TargetRuntime, Log), Path.Combine(macosdir, "UpdateMac"), true);
foreach (var f in Directory.GetFiles(macosdir, "*", SearchOption.AllDirectories)) {
@@ -102,9 +101,6 @@ public class OsxPackCommandRunner : PackageBuilder<OsxPackOptions>
var structure = new OsxStructureBuilder(packDir);
var updateMacPath = Path.Combine(structure.MacosDirectory, "UpdateMac");
helper.CodeSign(Options.SignAppIdentity, entitlements, updateMacPath, false, keychainPath);
signProgress(25);
var versionPath = Path.Combine(structure.MacosDirectory, CoreUtil.SpecVersionFileName);
helper.CodeSign(Options.SignAppIdentity, entitlements, versionPath, false, keychainPath);
signProgress(50);
Log.Info("Code signing application bundle...");