mirror of
https://github.com/bitwarden/browser
synced 2025-12-13 06:43:35 +00:00
dont sign safari appex in browser tasks
This commit is contained in:
41
gulpfile.js
41
gulpfile.js
@@ -168,18 +168,8 @@ function edgeCopyAssets(source, dest) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function distSafariMas(cb) {
|
function distSafariApp(cb) {
|
||||||
return distSafariApp(cb, 'mas', '3rd Party Mac Developer Application: 8bit Solutions LLC');
|
const buildPath = paths.dist + 'Safari/';
|
||||||
}
|
|
||||||
|
|
||||||
function distSafariDmg(cb) {
|
|
||||||
return distSafariApp(cb, 'dmg', 'Developer ID Application: 8bit Solutions LLC');
|
|
||||||
}
|
|
||||||
|
|
||||||
function distSafariApp(cb, subBuildPath, devId) {
|
|
||||||
const buildPath = paths.dist + 'Safari/' + subBuildPath + '/';
|
|
||||||
const builtAppexPath = buildPath + 'build/Release/safari.appex';
|
|
||||||
const entitlementsPath = paths.safari + 'safari/safari.entitlements';
|
|
||||||
|
|
||||||
return del([buildPath + '**/*'])
|
return del([buildPath + '**/*'])
|
||||||
.then(() => safariCopyAssets(paths.safari + '**/*', buildPath))
|
.then(() => safariCopyAssets(paths.safari + '**/*', buildPath))
|
||||||
@@ -193,31 +183,6 @@ function distSafariApp(cb, subBuildPath, devId) {
|
|||||||
'Release']);
|
'Release']);
|
||||||
stdOutProc(proc);
|
stdOutProc(proc);
|
||||||
return new Promise((resolve) => proc.on('close', resolve));
|
return new Promise((resolve) => proc.on('close', resolve));
|
||||||
}).then(() => {
|
|
||||||
var args = subBuildPath === 'mas' ?
|
|
||||||
[
|
|
||||||
'--verbose',
|
|
||||||
'--force',
|
|
||||||
'--sign',
|
|
||||||
devId,
|
|
||||||
'--entitlements',
|
|
||||||
entitlementsPath,
|
|
||||||
builtAppexPath
|
|
||||||
] :
|
|
||||||
[
|
|
||||||
'--verbose',
|
|
||||||
'--force',
|
|
||||||
'-o',
|
|
||||||
'runtime',
|
|
||||||
'--sign',
|
|
||||||
devId,
|
|
||||||
'--entitlements',
|
|
||||||
entitlementsPath,
|
|
||||||
builtAppexPath
|
|
||||||
];
|
|
||||||
const proc = child.spawn('codesign', args);
|
|
||||||
stdOutProc(proc);
|
|
||||||
return new Promise((resolve) => proc.on('close', resolve));
|
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
return cb;
|
return cb;
|
||||||
}, () => {
|
}, () => {
|
||||||
@@ -287,7 +252,7 @@ exports['dist:firefox'] = distFirefox;
|
|||||||
exports['dist:chrome'] = distChrome;
|
exports['dist:chrome'] = distChrome;
|
||||||
exports['dist:opera'] = distOpera;
|
exports['dist:opera'] = distOpera;
|
||||||
exports['dist:edge'] = distEdge;
|
exports['dist:edge'] = distEdge;
|
||||||
exports['dist:safari'] = gulp.parallel(distSafariMas, distSafariDmg);
|
exports['dist:safari'] = distSafariApp;
|
||||||
exports.dist = gulp.parallel(distFirefox, distChrome, distOpera, distEdge);
|
exports.dist = gulp.parallel(distFirefox, distChrome, distOpera, distEdge);
|
||||||
exports['ci:coverage'] = ciCoverage;
|
exports['ci:coverage'] = ciCoverage;
|
||||||
exports.ci = ciCoverage;
|
exports.ci = ciCoverage;
|
||||||
|
|||||||
Reference in New Issue
Block a user