This task signs application bundle.
상속: Signing
예제 #1
0
        public void TestCodeSignBundle()
        {
            Copy("/Applications/Calculator.app", "/tmp/");

            CodeSigning task = new CodeSigning();
            task.BuildEngine = new ShallowBuildEngine();
            task.Identity = IDENTITY;
            task.Bundle = new TaskItem("/tmp/Calculator.app");
            bool result = task.Execute();
            Assert.IsTrue(result);
        }
예제 #2
0
        public void TestCodeSignFramework()
        {
            Copy("/System/Library/Frameworks/TWAIN.framework", "/tmp/");

            CodeSigning task = new CodeSigning();
            task.BuildEngine = new ShallowBuildEngine();
            task.Identity = IDENTITY;
            task.Target = new TaskItem("/tmp/TWAIN.framework");
            task.Versioned = true;
            bool result = task.Execute();
            Assert.IsTrue(result);
        }
예제 #3
0
        public void TestCodeSignLibraries()
        {
            Copy("/usr/lib/libffi.dylib", "/tmp/");
            Copy("/usr/lib/libobjc.dylib", "/tmp/");

            CodeSigning task = new CodeSigning();
            task.BuildEngine = new ShallowBuildEngine();
            task.Identity = IDENTITY;
            task.Targets = new ITaskItem[] { new TaskItem("/tmp/libffi.dylib"), new TaskItem("/tmp/libobjc.dylib") };
            bool result = task.Execute();
            Assert.IsTrue(result);
        }