verify only works if package is notarized

This commit is contained in:
caesay
2022-07-04 16:42:55 +01:00
parent 27d73f0d07
commit bdcc078ef8
2 changed files with 9 additions and 4 deletions

View File

@@ -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

View File

@@ -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")]