mirror of
https://github.com/velopack/velopack.git
synced 2025-10-25 15:19:22 +00:00
verify only works if package is notarized
This commit is contained in:
@@ -131,9 +131,11 @@ namespace Squirrel.CommandLine.OSX
|
||||
HelperExe.Notarize(zipPath, options.notaryProfile);
|
||||
} else if (SquirrelRuntimeInfo.IsOSX && !String.IsNullOrEmpty(options.signAppIdentity)) {
|
||||
HelperExe.CodeSign(options.signAppIdentity, options.signEntitlements, appBundlePath);
|
||||
Log.Warn("Package was signed but will not be notarized. Must supply the --notaryProfile option.");
|
||||
Log.Warn("Package was signed but will not be notarized or verified. Must supply the --notaryProfile option.");
|
||||
} else if (SquirrelRuntimeInfo.IsOSX) {
|
||||
Log.Warn("Package will not be signed or notarized. Requires the --signAppIdentity and --notaryProfile options.");
|
||||
} else {
|
||||
Log.Warn("Package will not be signed or notarized. Only supported on OSX with the --signAppIdentity and --notaryProfile options.");
|
||||
Log.Warn("Package will not be signed or notarized. Only supported on OSX.");
|
||||
}
|
||||
|
||||
// create a portable zip package from signed/notarized bundle
|
||||
|
||||
@@ -44,6 +44,11 @@ namespace Squirrel.CommandLine.OSX
|
||||
|
||||
Console.WriteLine(InvokeAndThrowIfNonZero("codesign", args, null));
|
||||
|
||||
Log.Info("codesign completed successfully");
|
||||
}
|
||||
|
||||
public static void SpctlAssess(string filePath)
|
||||
{
|
||||
var args2 = new List<string> {
|
||||
"--assess",
|
||||
"-vvvv",
|
||||
@@ -51,8 +56,6 @@ namespace Squirrel.CommandLine.OSX
|
||||
};
|
||||
|
||||
Console.WriteLine(InvokeAndThrowIfNonZero("spctl", args2, null));
|
||||
|
||||
Log.Info("codesign completed successfully");
|
||||
}
|
||||
|
||||
[SupportedOSPlatform("osx")]
|
||||
|
||||
Reference in New Issue
Block a user