@vscode/gulp-electron 1.33.0 → 1.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/darwin.js +15 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vscode/gulp-electron",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.34.0",
|
|
4
4
|
"description": "gulp plugin for packaging Electron into VS Code",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"rimraf": "^2.4.2",
|
|
43
43
|
"semver": "^4.3.4",
|
|
44
44
|
"temp": "^0.8.3",
|
|
45
|
-
"vinyl": "^
|
|
45
|
+
"vinyl": "^3.0.0",
|
|
46
46
|
"vinyl-fs": "^3.0.3"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"gulp-buffer": "0.0.2",
|
|
50
|
-
"mocha": "^
|
|
50
|
+
"mocha": "^10.2.0"
|
|
51
51
|
}
|
|
52
52
|
}
|
package/src/darwin.js
CHANGED
|
@@ -323,6 +323,20 @@ function addCredits(opts) {
|
|
|
323
323
|
return es.duplex(input, es.merge(input, credits));
|
|
324
324
|
}
|
|
325
325
|
|
|
326
|
+
function moveChromiumLicense(opts) {
|
|
327
|
+
var newLicensePath = path.join(
|
|
328
|
+
getOriginalAppFullName(opts),
|
|
329
|
+
"Contents",
|
|
330
|
+
"Resources"
|
|
331
|
+
);
|
|
332
|
+
return es.mapSync(function (f) {
|
|
333
|
+
if (!f.isNull() && !f.isDirectory() && f.path === "LICENSES.chromium.html") {
|
|
334
|
+
f.dirname = newLicensePath;
|
|
335
|
+
}
|
|
336
|
+
return f;
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
|
|
326
340
|
function renameApp(opts) {
|
|
327
341
|
var originalAppName = getOriginalAppName(opts);
|
|
328
342
|
var originalAppNameRegexp = new RegExp("^" + getOriginalAppFullName(opts));
|
|
@@ -403,6 +417,7 @@ exports.patch = function (opts) {
|
|
|
403
417
|
.pipe(patchHelperInfoPlist(opts))
|
|
404
418
|
.pipe(createEntitlementsPlist(opts))
|
|
405
419
|
.pipe(addCredits(opts))
|
|
420
|
+
.pipe(moveChromiumLicense(opts))
|
|
406
421
|
.pipe(renameApp(opts))
|
|
407
422
|
.pipe(renameAppHelper(opts));
|
|
408
423
|
|