mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-18 01:41:27 +01:00
format child_process commands
This commit is contained in:
parent
30820b559f
commit
e637ba924f
34
gulpfile.js
34
gulpfile.js
@ -115,7 +115,17 @@ function distEdge(cb) {
|
|||||||
.then(() => edgeCopyAssets('./store/windows/**/*', edgePath))
|
.then(() => edgeCopyAssets('./store/windows/**/*', edgePath))
|
||||||
.then(() => {
|
.then(() => {
|
||||||
// makeappx.exe must be in your system's path already
|
// makeappx.exe must be in your system's path already
|
||||||
child.spawn('makeappx.exe', ['pack', '/h', 'SHA256', '/d', edgePath, '/p', appxPath]);
|
const proc = child.spawn('makeappx.exe', [
|
||||||
|
'pack',
|
||||||
|
'/h',
|
||||||
|
'SHA256',
|
||||||
|
'/d',
|
||||||
|
edgePath,
|
||||||
|
'/p',
|
||||||
|
appxPath]);
|
||||||
|
stdOutProc(proc);
|
||||||
|
return new Promise((resolve) => proc.on('close', resolve));
|
||||||
|
}).then(() => {
|
||||||
return cb;
|
return cb;
|
||||||
}, () => {
|
}, () => {
|
||||||
return cb;
|
return cb;
|
||||||
@ -168,11 +178,26 @@ function distSafari(cb) {
|
|||||||
.then(() => safariCopyAssets(paths.safari + '**/*', buildPath))
|
.then(() => safariCopyAssets(paths.safari + '**/*', buildPath))
|
||||||
.then(() => safariCopyBuild(paths.build + '**/*', buildPath + 'safari/app'))
|
.then(() => safariCopyBuild(paths.build + '**/*', buildPath + 'safari/app'))
|
||||||
.then(() => {
|
.then(() => {
|
||||||
const proc = child.spawn('xcodebuild', ['-project', buildPath + 'desktop.xcodeproj', '-target', 'safari', '-configuration', 'Release']);
|
const proc = child.spawn('xcodebuild', [
|
||||||
|
'-project',
|
||||||
|
buildPath + 'desktop.xcodeproj',
|
||||||
|
'-target',
|
||||||
|
'safari',
|
||||||
|
'-configuration',
|
||||||
|
'Release']);
|
||||||
stdOutProc(proc);
|
stdOutProc(proc);
|
||||||
return new Promise((resolve) => proc.on('close', resolve));
|
return new Promise((resolve) => proc.on('close', resolve));
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
const proc = child.spawn('codesign', ['--verbose', '--force', '-o', 'runtime', '--sign', devId, '--entitlements', entitlementsPath, builtAppexPath]);
|
const proc = child.spawn('codesign', [
|
||||||
|
'--verbose',
|
||||||
|
'--force',
|
||||||
|
'-o',
|
||||||
|
'runtime',
|
||||||
|
'--sign',
|
||||||
|
devId,
|
||||||
|
'--entitlements',
|
||||||
|
entitlementsPath,
|
||||||
|
builtAppexPath]);
|
||||||
stdOutProc(proc);
|
stdOutProc(proc);
|
||||||
return new Promise((resolve) => proc.on('close', resolve));
|
return new Promise((resolve) => proc.on('close', resolve));
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
@ -205,7 +230,8 @@ function safariCopyBuild(source, dest) {
|
|||||||
|
|
||||||
function stdOutProc(proc) {
|
function stdOutProc(proc) {
|
||||||
proc.stdout.on('data', (data) => console.log(data.toString()));
|
proc.stdout.on('data', (data) => console.log(data.toString()));
|
||||||
proc.stderr.on('data', (data) => console.error(data.toString()));}
|
proc.stderr.on('data', (data) => console.error(data.toString()));
|
||||||
|
}
|
||||||
|
|
||||||
function webfonts() {
|
function webfonts() {
|
||||||
return gulp.src('./webfonts.list')
|
return gulp.src('./webfonts.list')
|
||||||
|
Loading…
Reference in New Issue
Block a user