當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript codeSign.createKeychain函數代碼示例

本文整理匯總了TypeScript中out/codeSign.createKeychain函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript createKeychain函數的具體用法?TypeScript createKeychain怎麽用?TypeScript createKeychain使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了createKeychain函數的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: async

test.ifOsx("create keychain with installers", async () => {
  const keychainName = generateKeychainName()
  await executeFinally(createKeychain(keychainName, CSC_LINK, process.env.CSC_KEY_PASSWORD)
    .then(result => {
      assertThat(result.keychainName).not.empty()
    }), () => all([deleteKeychain(keychainName)]))
})
開發者ID:SimplyAhmazing,項目名稱:electron-builder,代碼行數:7,代碼來源:CodeSignTest.ts

示例2: async

test.ifOsx("create keychain with installers", async () => {
  const keychainName = generateKeychainName()
  await executeFinally(createKeychain(keychainName, CSC_LINK, CSC_KEY_PASSWORD, CSC_INSTALLER_LINK, CSC_INSTALLER_KEY_PASSWORD)
    .then(result => {
      assertThat(result.keychainName).not.empty()
      assertThat(result.name).equal(CSC_NAME)
    }), () => all([deleteKeychain(keychainName)]))
})
開發者ID:TheAlphaNerd,項目名稱:electron-builder,代碼行數:8,代碼來源:CodeSignTest.ts

示例3: async

test.ifOsx("create keychain", async (t) => {
  const keychainName = generateKeychainName()
  await executeFinally(createKeychain(keychainName, CSC_LINK, CSC_KEY_PASSWORD)
    .then(result => {
      assertThat(result.cscKeychainName).not.empty()
      assertThat(result.cscName).equal(CSC_NAME)
    }), () => all([deleteKeychain(keychainName)]))
})
開發者ID:EvgeneOskin,項目名稱:electron-builder,代碼行數:8,代碼來源:CodeSignTest.ts

示例4: async

test.ifMac("create keychain with installers", async () => {
  const result = await createKeychain(tmpDir, CSC_LINK, process.env.CSC_KEY_PASSWORD)
  assertThat(result.keychainName).isNotEmpty()
})
開發者ID:heinzbeinz,項目名稱:electron-builder,代碼行數:4,代碼來源:CodeSignTest.ts


注:本文中的out/codeSign.createKeychain函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。