forked from nowsecure/node-applesign
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.ts
More file actions
23 lines (20 loc) · 686 Bytes
/
example.ts
File metadata and controls
23 lines (20 loc) · 686 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import Applesign from "./index.js";
const as = new Applesign({
/* bin/applesign -L to list all available identities in your system */
identity: "67CF8DCD3BA1E7241FFCFCE66FA6C0F58D17F795",
/* clone the entitlements from the mobile provisioning */
cloneEntitlements: false,
mobileProvisioning: "/tmp/embedded.mobileprovision",
});
if (process.argv.length < 3) {
console.error("Usage: example.js [path/to/ipa]");
process.exit(1);
}
as.events.on("message", (msg: any) => {
console.log("message", msg);
}).on("warning", (msg: any) => {
console.error("warning", msg);
});
as.signIPA!(process.argv[2]!).then((_) => {
console.log("ios-deploy -b", as.config.outfile);
});