electron-mksnapshot 20.0.0 → 21.3.3
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/.circleci/config.yml +1 -1
- package/.github/CODEOWNERS +1 -0
- package/.github/workflows/release.yml +12 -3
- package/README.md +5 -6
- package/mksnapshot.js +3 -1
- package/package.json +4 -4
package/.circleci/config.yml
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @electron/wg-releases
|
|
@@ -18,10 +18,10 @@ jobs:
|
|
|
18
18
|
runs-on: ${{ matrix.os }}
|
|
19
19
|
steps:
|
|
20
20
|
- uses: actions/checkout@v3
|
|
21
|
-
- name: Install Dependencies
|
|
22
|
-
run: npm i
|
|
23
21
|
- name: Update Version
|
|
24
22
|
run: node script/update-version.js ${{ github.event.inputs.version }}
|
|
23
|
+
- name: Install Dependencies
|
|
24
|
+
run: npm i
|
|
25
25
|
- name: Run Tests
|
|
26
26
|
run: npm test
|
|
27
27
|
create_new_version:
|
|
@@ -29,6 +29,15 @@ jobs:
|
|
|
29
29
|
needs: run_tests
|
|
30
30
|
steps:
|
|
31
31
|
- uses: actions/checkout@v3
|
|
32
|
+
- name: Use Node.js v16
|
|
33
|
+
uses: actions/setup-node@v3
|
|
34
|
+
with:
|
|
35
|
+
node-version: 16.x
|
|
36
|
+
registry-url: 'https://registry.npmjs.org'
|
|
37
|
+
- name: Check npm credentials
|
|
38
|
+
run: npm whoami
|
|
39
|
+
env:
|
|
40
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
|
32
41
|
- name: Set Git Credentials
|
|
33
42
|
run: |
|
|
34
43
|
git config user.name electron-bot
|
|
@@ -50,4 +59,4 @@ jobs:
|
|
|
50
59
|
- name: Publish to npm
|
|
51
60
|
run: npm publish
|
|
52
61
|
env:
|
|
53
|
-
|
|
62
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
package/README.md
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
# Electron mksnapshot
|
|
2
2
|
|
|
3
|
-
[](https://ci.appveyor.com/project/electron-bot/mksnapshot/branch/main)
|
|
4
|
+
[](https://circleci.com/gh/electron/mksnapshot/tree/main)
|
|
5
5
|
<br>
|
|
6
6
|
[](http://standardjs.com/)
|
|
7
|
-
[](https://david-dm.org/electron/mksnapshot)
|
|
8
|
-
<br>
|
|
9
7
|
[](https://opensource.org/licenses/MIT)
|
|
10
|
-
|
|
11
|
-
[](https://www.npmjs.com/package/electron-mksnapshot)
|
|
10
|
+
[](https://www.npmjs.com/package/electron-mksnapshot)
|
|
12
11
|
|
|
13
12
|
Simple node module to download the `mksnapshot` binaries compatible with
|
|
14
13
|
Electron for creating v8 snapshots.
|
package/mksnapshot.js
CHANGED
|
@@ -58,8 +58,10 @@ if (fs.existsSync(argsFile)) {
|
|
|
58
58
|
// Use args from args file if it is provided as these match what is used to generate the original snapshot
|
|
59
59
|
const mksnapshotArgsFile = fs.readFileSync(argsFile, 'utf8')
|
|
60
60
|
const newlineRegEx = /(\r\n|\r|\n)/g
|
|
61
|
+
const turboProfileRegEx = /--turbo-profiling/g
|
|
62
|
+
const builtinsRegEx = /.*builtins-pgo.*/g
|
|
61
63
|
const mksnapshotArgsFromFile = mksnapshotArgsFile.split(newlineRegEx).filter((arg) => {
|
|
62
|
-
return (!arg.match(newlineRegEx) && arg !== '')
|
|
64
|
+
return (!arg.match(newlineRegEx) && !arg.match(turboProfileRegEx) && !arg.match(builtinsRegEx) && arg !== '')
|
|
63
65
|
})
|
|
64
66
|
const mksnapshotBinaryPath = path.parse(mksnapshotArgsFromFile[0])
|
|
65
67
|
if (mksnapshotBinaryPath.dir) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "electron-mksnapshot",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.3.3",
|
|
4
4
|
"description": "Electron version of the mksnapshot binary",
|
|
5
5
|
"repository": "https://github.com/electron/mksnapshot",
|
|
6
6
|
"bin": {
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
},
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@electron/get": "^
|
|
16
|
+
"@electron/get": "^2.0.1",
|
|
17
17
|
"extract-zip": "^2.0.0",
|
|
18
18
|
"fs-extra": "^7.0.1",
|
|
19
19
|
"temp": "^0.8.3"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"mocha": "^
|
|
22
|
+
"mocha": "^10.1.0",
|
|
23
23
|
"standard": "^14.3.1"
|
|
24
24
|
},
|
|
25
25
|
"standard": {
|
|
@@ -30,4 +30,4 @@
|
|
|
30
30
|
"engines": {
|
|
31
31
|
"node": ">=10.5.0"
|
|
32
32
|
}
|
|
33
|
-
}
|
|
33
|
+
}
|