forked from wf021325/ipatool.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
24 lines (21 loc) · 670 Bytes
/
main.js
File metadata and controls
24 lines (21 loc) · 670 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import 'dotenv/config';
import {Ipa} from './src/ipa.js';
(async () => {
try {
const app = new Ipa({
APPLE_ID: process.env.APPLE_ID,
PASSWORD: process.env.APPLE_PWD,
CODE: process.env.APPLE_CODE || '',
});
await app.login();
await app.run({
dir: process.env.DOWNLOAD_DIR || './app',
APPID: process.env.DOWNLOAD_APPID,
appVerId: process.env.DOWNLOAD_VERSION_ID || '',
});
console.log('* 任务全部完成! *');
} catch (err) {
console.error(err.message || String(err));
process.exit(1);
}
})();