forked from ecnepsnai/p3u
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.linux.js
More file actions
23 lines (20 loc) · 817 Bytes
/
Copy pathbuild.linux.js
File metadata and controls
23 lines (20 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
const packager = require('./build.package.js');
const info = require('./package.json');
async function build(arch) {
await packager.app('linux', arch);
await packager.exec('tar', ['-czf', 'P3U_linux_' + info.version + '_' + arch + '.tar.gz', 'PlayStation 3 Updater-linux-' + arch], { cwd: 'package/' });
await packager.exec('mkdir', ['-p', 'package/artifacts']);
await packager.exec('mv', ['package/P3U_linux_' + info.version + '_' + arch + '.tar.gz', 'package/artifacts']);
}
async function make_pkg() {
await packager.exec('./build.sh', [info.version], { cwd: 'docker/' });
}
(async function main() {
try {
await packager.exec('mkdir', ['-p', 'package/artifacts']);
await build('x64');
await make_pkg();
} catch (err) {
console.error(err);
}
})();