本文整理汇总了TypeScript中out.Platform.OSX类的典型用法代码示例。如果您正苦于以下问题:TypeScript Platform.OSX类的具体用法?TypeScript Platform.OSX怎么用?TypeScript Platform.OSX使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Platform.OSX类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: assertPack
test.ifOsx("custom mas", () => {
let platformPackager: CheckingOsXPackager = null
return assertPack("test-app-one", signed({
targets: Platform.OSX.createTarget(),
platformPackagerFactory: (packager, platform, cleanupTasks) => platformPackager = new CheckingOsXPackager(packager, cleanupTasks),
devMetadata: {
build: {
osx: {
target: ["mas"],
identity: "Test Test",
},
mas: {
entitlements: "mas-entitlements file path",
entitlementsInherit: "mas-entitlementsInherit file path",
}
}
}
}), {
packed: () => {
assertThat(platformPackager.effectiveSignOptions).has.properties({
identity: "Test Test",
entitlements: "mas-entitlements file path",
"entitlements-inherit": "mas-entitlementsInherit file path",
})
return BluebirdPromise.resolve(null)
}
})
})
示例2: createTargetTest
function createTargetTest(target: Array<string>, expectedContents: Array<string>) {
let options: PackagerOptions = {
targets: Platform.OSX.createTarget(),
devMetadata: {
build: {
osx: {
target: target
}
}
}
}
if (target.includes("mas")) {
options = signed(options)
}
return () => assertPack("test-app-one", options, {
expectedContents: expectedContents
})
}