Skip to content

Commit 7cc1615

Browse files
Merge branch 'canary'
2 parents ef5419b + 3f430e2 commit 7cc1615

21 files changed

+1716
-1236
lines changed

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ assets
99
website
1010
bin
1111
dist
12-
target
12+
target
13+
cache

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
# Initializes the CodeQL tools for scanning.
4141
- name: Initialize CodeQL
42-
uses: github/codeql-action/init@v1
42+
uses: github/codeql-action/init@v2
4343
with:
4444
languages: ${{ matrix.language }}
4545
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -50,10 +50,10 @@ jobs:
5050
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5151
# If this step fails, then you should remove it and run the build manually (see below)
5252
- name: Autobuild
53-
uses: github/codeql-action/autobuild@v1
53+
uses: github/codeql-action/autobuild@v2
5454

5555
# ℹ️ Command-line programs to run using the OS shell.
56-
# 📚 https://git.io/JvXDl
56+
# 📚 https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
5757

5858
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
5959
# and modify them (or add more) to build your code if your project
@@ -64,4 +64,4 @@ jobs:
6464
# make release
6565

6666
- name: Perform CodeQL Analysis
67-
uses: github/codeql-action/analyze@v1
67+
uses: github/codeql-action/analyze@v2

.github/workflows/e2e_comment.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
WORKFLOW_RUN_INFO: ${{ toJSON(github.event.workflow_run) }}
1515
run: echo "$WORKFLOW_RUN_INFO"
1616
- name: Download Artifacts
17-
uses: dawidd6/action-download-artifact@v2.17.0
17+
uses: dawidd6/action-download-artifact@v2.22.0
1818
with:
1919
github_token: ${{ secrets.GITHUB_TOKEN }}
2020
workflow: nodejs.yml
2121
run_id: ${{ github.event.workflow_run.id }}
2222
name: e2e
2323
- name: Get PR number
24-
uses: dawidd6/action-download-artifact@v2.17.0
24+
uses: dawidd6/action-download-artifact@v2.22.0
2525
with:
2626
github_token: ${{ secrets.GITHUB_TOKEN }}
2727
workflow: nodejs.yml

.github/workflows/nodejs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
run: yarn run test:e2e
6565
- name: Archive E2E test screenshot
6666
if: runner.os != 'Linux'
67-
uses: actions/upload-artifact@v2
67+
uses: actions/upload-artifact@v3
6868
with:
6969
name: e2e
7070
path: dist/tmp/*.png
@@ -74,7 +74,7 @@ jobs:
7474
PR_NUM: ${{ github.event.number }}
7575
run: echo $PR_NUM > pr_num.txt
7676
- name: Upload the pr num
77-
uses: actions/upload-artifact@v2
77+
uses: actions/upload-artifact@v3
7878
if: github.event_name == 'pull_request'
7979
with:
8080
name: pr_num

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ dist
33
app/renderer
44
target
55
bin/cli.*
6+
cache
67

78
# dependencies
89
node_modules

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ make sure its build process is working correctly by running `yarn run rebuild-no
9999
If you are on macOS, this typically is related to Xcode issues (like not having agreed
100100
to the Terms of Service by running `sudo xcodebuild` after a fresh Xcode installation).
101101

102-
##### Error with `c++` on macOS when running `yarn`
102+
##### Error with `C++` on macOS when running `yarn`
103103

104104
If you are getting compiler errors when running `yarn` add the environment variable `export CXX=clang++`
105105

app/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,30 @@
1313
"@electron/remote": "2.0.8",
1414
"async-retry": "1.3.3",
1515
"chokidar": "^3.5.3",
16-
"color": "4.2.1",
16+
"color": "4.2.3",
1717
"default-shell": "1.0.1",
1818
"electron-fetch": "1.7.4",
1919
"electron-is-dev": "2.0.0",
20-
"electron-store": "8.0.1",
21-
"fs-extra": "10.0.1",
22-
"git-describe": "4.1.0",
20+
"electron-store": "8.1.0",
21+
"fs-extra": "10.1.0",
22+
"git-describe": "4.1.1",
2323
"lodash": "4.17.21",
2424
"mkdirp": "1.0.4",
2525
"ms": "2.1.3",
2626
"native-process-working-directory": "^1.0.2",
2727
"node-pty": "0.10.1",
2828
"os-locale": "5.0.0",
29-
"parse-url": "5.0.7",
29+
"parse-url": "7.0.2",
3030
"pify": "5.0.0",
3131
"queue": "6.0.2",
3232
"react": "17.0.2",
3333
"react-dom": "17.0.2",
34-
"semver": "7.3.5",
34+
"semver": "7.3.7",
3535
"shell-env": "3.0.1",
3636
"sudo-prompt": "^9.2.1",
3737
"uuid": "8.3.2"
3838
},
3939
"optionalDependencies": {
40-
"native-reg": "1.0.0"
40+
"native-reg": "1.1.0"
4141
}
4242
}

app/yarn.lock

Lines changed: 60 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,18 @@ color-string@^1.9.0:
101101
color-name "^1.0.0"
102102
simple-swizzle "^0.2.2"
103103

104-
105-
version "4.2.1"
106-
resolved "https://registry.npmjs.org/color/-/color-4.2.1.tgz#498aee5fce7fc982606c8875cab080ac0547c884"
107-
integrity sha512-MFJr0uY4RvTQUKvPq7dh9grVOTYSFeXja2mBXioCGjnjJoXrAp9jJ1NQTDR73c9nwBSAQiNKloKl5zq9WB9UPw==
104+
105+
version "4.2.3"
106+
resolved "https://registry.npmjs.org/color/-/color-4.2.3.tgz#d781ecb5e57224ee43ea9627560107c0e0c6463a"
107+
integrity sha512-1rXeuUUiGGrykh+CeBdu5Ie7OJwinCgQY0bc7GCRxy5xVHy+moaqkpL/jqQq0MtQOeYcrqEz4abc5f0KtU7W4A==
108108
dependencies:
109109
color-convert "^2.0.1"
110110
color-string "^1.9.0"
111111

112-
conf@^10.0.3:
113-
version "10.0.3"
114-
resolved "https://registry.npmjs.org/conf/-/conf-10.0.3.tgz#af266186cc754daefd2749398861ec538c50da17"
115-
integrity sha512-4gtQ/Q36qVxBzMe6B7gWOAfni1VdhuHkIzxydHkclnwGmgN+eW4bb6jj73vigCfr7d3WlmqawvhZrpCUCTPYxQ==
112+
conf@^10.2.0:
113+
version "10.2.0"
114+
resolved "https://registry.npmjs.org/conf/-/conf-10.2.0.tgz#838e757be963f1a2386dfe048a98f8f69f7b55d6"
115+
integrity sha512-8fLl9F04EJqjSqH+QjITQfJF8BrOVaYr1jewVgSRAEWePfxT0sku4w2hrGQ60BC/TNLGQ2pgxNlTbWQmMPFvXg==
116116
dependencies:
117117
ajv "^8.6.3"
118118
ajv-formats "^2.1.1"
@@ -176,13 +176,13 @@ [email protected]:
176176
resolved "https://registry.npmjs.org/electron-is-dev/-/electron-is-dev-2.0.0.tgz#833487a069b8dad21425c67a19847d9064ab19bd"
177177
integrity sha512-3X99K852Yoqu9AcW50qz3ibYBWY79/pBhlMCab8ToEWS48R0T9tyxRiQhwylE7zQdXrMnx2JKqUJyMPmt5FBqA==
178178

179-
electron-store@8.0.1:
180-
version "8.0.1"
181-
resolved "https://registry.npmjs.org/electron-store/-/electron-store-8.0.1.tgz#9b598c1d2edeffebee9d8c1cd957ad368c528925"
182-
integrity sha512-ZyLvNywiqSpbwC/pp89O/AycVWY/UJIkmtyzF2Bd0Nm/rLmcFc0NTGuLdg6+LE8mS8qsiK5JMoe4PnrecLHH5w==
179+
electron-store@8.1.0:
180+
version "8.1.0"
181+
resolved "https://registry.npmjs.org/electron-store/-/electron-store-8.1.0.tgz#46a398f2bd9aa83c4a9daaae28380e2b3b9c7597"
182+
integrity sha512-2clHg/juMjOH0GT9cQ6qtmIvK183B39ZXR0bUoPwKwYHJsEF3quqyDzMFUAu+0OP8ijmN2CbPRAelhNbWUbzwA==
183183
dependencies:
184-
conf "^10.0.3"
185-
type-fest "^1.0.2"
184+
conf "^10.2.0"
185+
type-fest "^2.17.0"
186186

187187
encoding@^0.1.13:
188188
version "0.1.13"
@@ -250,10 +250,10 @@ find-up@^3.0.0:
250250
dependencies:
251251
locate-path "^3.0.0"
252252

253-
fs-extra@10.0.1:
254-
version "10.0.1"
255-
resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-10.0.1.tgz#27de43b4320e833f6867cc044bfce29fdf0ef3b8"
256-
integrity sha512-NbdoVMZso2Lsrn/QwLXOy6rm0ufY2zEOKCDzJR/0kBsb0E6qed0P3iYK+Ath3BfvXEeu4JhEtXLgILx5psUfag==
253+
fs-extra@10.1.0:
254+
version "10.1.0"
255+
resolved "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz#02873cfbc4084dde127eaa5f9905eef2325d1abf"
256+
integrity sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==
257257
dependencies:
258258
graceful-fs "^4.2.0"
259259
jsonfile "^6.0.1"
@@ -278,10 +278,10 @@ get-stream@^5.0.0:
278278
dependencies:
279279
pump "^3.0.0"
280280

281-
282-
version "4.1.0"
283-
resolved "https://registry.npmjs.org/git-describe/-/git-describe-4.1.0.tgz#0c50fa1ec5ead55932b6e875b2299b17ce5e07d3"
284-
integrity sha512-NM7JSseVK4Z0r505+2TIrgPQKPvqbOowHP73IY5y69v/t/PmoMleJdij1vTO3qVm1qSvqb6342p1MYSxsnV8QA==
281+
282+
version "4.1.1"
283+
resolved "https://registry.npmjs.org/git-describe/-/git-describe-4.1.1.tgz#a2a2882e442aa68abd0b3cb467459c83ed2f96ef"
284+
integrity sha512-JC8ganO5kO80G8+XE98TDDjnMXQN3Estk3qdJuG2EGRF/l6zuMTMcN+8OSfQZ5FWpqIRLB015anWX4aSRgnxAQ==
285285
dependencies:
286286
"@types/semver" "^7.3.8"
287287
lodash "^4.17.21"
@@ -356,12 +356,12 @@ is-obj@^2.0.0:
356356
resolved "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982"
357357
integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==
358358

359-
is-ssh@^1.3.0:
360-
version "1.3.2"
361-
resolved "https://registry.npmjs.org/is-ssh/-/is-ssh-1.3.2.tgz#a4b82ab63d73976fd8263cceee27f99a88bdae2b"
362-
integrity sha512-elEw0/0c2UscLrNG+OAorbP539E3rhliKPg+hDMWN9VwrDXfYK+4PBEykDPfxlYYtQvl84TascnQyobfQLHEhQ==
359+
is-ssh@^1.4.0:
360+
version "1.4.0"
361+
resolved "https://registry.npmjs.org/is-ssh/-/is-ssh-1.4.0.tgz#4f8220601d2839d8fa624b3106f8e8884f01b8b2"
362+
integrity sha512-x7+VxdxOdlV3CYpjvRLBv5Lo9OJerlYanjwFrPR9fuGPjCiNiCzFgAWpiLAohSbsnH4ZAys3SBh+hq5rJosxUQ==
363363
dependencies:
364-
protocols "^1.1.0"
364+
protocols "^2.0.1"
365365

366366
is-stream@^1.1.0:
367367
version "1.1.0"
@@ -489,10 +489,10 @@ native-process-working-directory@^1.0.2:
489489
dependencies:
490490
node-addon-api "^3.1.0"
491491

492-
native-reg@1.0.0:
493-
version "1.0.0"
494-
resolved "https://registry.npmjs.org/native-reg/-/native-reg-1.0.0.tgz#77f9acbf59eda02680c00b0b1b9d1e0078b7820d"
495-
integrity sha512-MxukmqY7jOeiS9+b4TAlfG9cvaQ03oLET35nUGYGHDRcLx0NFk7eeoWqX4wAXaFiMW50ZiFalOA6W8q3fprcsw==
492+
native-reg@1.1.0:
493+
version "1.1.0"
494+
resolved "https://registry.npmjs.org/native-reg/-/native-reg-1.1.0.tgz#caa7a21c8e537c977cf481296d5675edebcbcbe2"
495+
integrity sha512-nykrWHVAp9E6oLUypAVDFj+kq5J4AMd7VA5CVOqMw/k4w7Mhuc6p/1tLTqDLJbQsFs85qT1ElQw8Yn/RayUupg==
496496
dependencies:
497497
node-gyp-build "4"
498498

@@ -523,10 +523,10 @@ normalize-path@^3.0.0, normalize-path@~3.0.0:
523523
resolved "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65"
524524
integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==
525525

526-
normalize-url@4.5.1:
527-
version "4.5.1"
528-
resolved "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.1.tgz#0dd90cf1288ee1d1313b87081c9a5932ee48518a"
529-
integrity sha512-9UZCFRHQdNrfTpGg8+1INIg93B6zE0aXMVFkw1WFwvO4SlZywU6aLg5Of0Ap/PgcbSw4LNxvMWXMeugwMCX0AA==
526+
normalize-url@^6.1.0:
527+
version "6.1.0"
528+
resolved "https://registry.npmjs.org/normalize-url/-/normalize-url-6.1.0.tgz#40d0885b535deffe3f3147bec877d05fe4c5668a"
529+
integrity sha512-DlL+XwOy3NxAQ8xuC0okPgK46iuVNAK01YN7RueYBqqFeGsBjV9XmCAzAdgt+667bCl5kPh9EqKKDwnaPG1I7A==
530530

531531
npm-run-path@^2.0.0:
532532
version "2.0.2"
@@ -604,23 +604,22 @@ p-try@^2.0.0:
604604
resolved "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6"
605605
integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==
606606

607-
parse-path@^4.0.0:
608-
version "4.0.2"
609-
resolved "https://registry.npmjs.org/parse-path/-/parse-path-4.0.2.tgz#ef14f0d3d77bae8dd4bc66563a4c151aac9e65aa"
610-
integrity sha512-HSqVz6iuXSiL8C1ku5Gl1Z5cwDd9Wo0q8CoffdAghP6bz8pJa1tcMC+m4N+z6VAS8QdksnIGq1TB6EgR4vPR6w==
607+
parse-path@^5.0.0:
608+
version "5.0.0"
609+
resolved "https://registry.npmjs.org/parse-path/-/parse-path-5.0.0.tgz#f933152f3c6d34f4cf36cfc3d07b138ac113649d"
610+
integrity sha512-qOpH55/+ZJ4jUu/oLO+ifUKjFPNZGfnPJtzvGzKN/4oLMil5m9OH4VpOj6++9/ytJcfks4kzH2hhi87GL/OU9A==
611611
dependencies:
612-
is-ssh "^1.3.0"
613-
protocols "^1.4.0"
612+
protocols "^2.0.0"
614613

615-
parse-url@5.0.7:
616-
version "5.0.7"
617-
resolved "https://registry.npmjs.org/parse-url/-/parse-url-5.0.7.tgz#2ca3c32816f1a092c35e1f2afe63bb7924dde261"
618-
integrity sha512-CgbjyWT6aOh2oNSUS0cioYQsGysj9hQ2IdbOfeNwq5KOaKM7dOw/yTupiI0cnJhaDHJEIGybPkQz7LF9WNIhyw==
614+
parse-url@7.0.2:
615+
version "7.0.2"
616+
resolved "https://registry.npmjs.org/parse-url/-/parse-url-7.0.2.tgz#d21232417199b8d371c6aec0cedf1406fd6393f0"
617+
integrity sha512-PqO4Z0eCiQ08Wj6QQmrmp5YTTxpYfONdOEamrtvK63AmzXpcavIVQubGHxOEwiIoDZFb8uDOoQFS0NCcjqIYQg==
619618
dependencies:
620-
is-ssh "^1.3.0"
621-
normalize-url "4.5.1"
622-
parse-path "^4.0.0"
623-
protocols "^1.4.0"
619+
is-ssh "^1.4.0"
620+
normalize-url "^6.1.0"
621+
parse-path "^5.0.0"
622+
protocols "^2.0.1"
624623

625624
path-exists@^3.0.0:
626625
version "3.0.0"
@@ -654,10 +653,10 @@ pkg-up@^3.1.0:
654653
dependencies:
655654
find-up "^3.0.0"
656655

657-
protocols@^1.1.0, protocols@^1.4.0:
658-
version "1.4.8"
659-
resolved "https://registry.npmjs.org/protocols/-/protocols-1.4.8.tgz#48eea2d8f58d9644a4a32caae5d5db290a075ce8"
660-
integrity sha512-IgjKyaUSjsROSO8/D49Ab7hP8mJgTYcqApOqdPhLoPxAplXmkp+zRvsrSQjFn5by0rhm4VH0GAUELIPpx7B1yg==
656+
protocols@^2.0.0, protocols@^2.0.1:
657+
version "2.0.1"
658+
resolved "https://registry.npmjs.org/protocols/-/protocols-2.0.1.tgz#8f155da3fc0f32644e83c5782c8e8212ccf70a86"
659+
integrity sha512-/XJ368cyBJ7fzLMwLKv1e4vLxOju2MNAIokcr7meSaNcVbWz/CPcW22cP04mwxOErdA5mwjA8Q6w/cdAQxVn7Q==
661660

662661
pump@^3.0.0:
663662
version "3.0.0"
@@ -726,10 +725,10 @@ scheduler@^0.20.2:
726725
loose-envify "^1.1.0"
727726
object-assign "^4.1.1"
728727

729-
[email protected].5, semver@^7.3.5:
730-
version "7.3.5"
731-
resolved "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz#0b621c879348d8998e4b0e4be94b3f12e6018ef7"
732-
integrity sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==
728+
[email protected].7, semver@^7.3.5:
729+
version "7.3.7"
730+
resolved "https://registry.npmjs.org/semver/-/semver-7.3.7.tgz#12c5b649afdbf9049707796e22a4028814ce523f"
731+
integrity sha512-QlYTucUYOews+WeEujDoEGziz4K6c47V/Bd+LjSSYcA94p+DmINdf7ncaUinThfvZyu13lN9OY1XDxt8C0Tw0g==
733732
dependencies:
734733
lru-cache "^6.0.0"
735734

@@ -817,10 +816,10 @@ to-regex-range@^5.0.1:
817816
dependencies:
818817
is-number "^7.0.0"
819818

820-
type-fest@^1.0.2:
821-
version "1.0.2"
822-
resolved "https://registry.npmjs.org/type-fest/-/type-fest-1.0.2.tgz#3f9c39982859f385c77c38b7e5f1432b8a3661c6"
823-
integrity sha512-a720oz3Kjbp3ll0zkeN9qjRhO7I34MKMhPGQiQJAmaZQZQ1lo+NWThK322f7sXV+kTg9B1Ybt16KgBXWgteT8w==
819+
type-fest@^2.17.0:
820+
version "2.18.0"
821+
resolved "https://registry.npmjs.org/type-fest/-/type-fest-2.18.0.tgz#fdef3a74e0a9e68ebe46054836650fb91ac3881e"
822+
integrity sha512-pRS+/yrW5TjPPHNOvxhbNZexr2bS63WjrMU8a+VzEBhUi9Tz1pZeD+vQz3ut0svZ46P+SRqMEPnJmk2XnvNzTw==
824823

825824
universalify@^2.0.0:
826825
version "2.0.0"

bin/cp-snapshot.js

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
const path = require('path');
2+
const fs = require('fs');
3+
const {Arch} = require('electron-builder');
4+
5+
function copySnapshot(pathToElectron, archToCopy) {
6+
const snapshotFileName = 'snapshot_blob.bin';
7+
const v8ContextFileName = getV8ContextFileName(archToCopy);
8+
const pathToBlob = path.resolve(__dirname, '..', 'cache', archToCopy, snapshotFileName);
9+
const pathToBlobV8 = path.resolve(__dirname, '..', 'cache', archToCopy, v8ContextFileName);
10+
11+
console.log('Copying v8 snapshots from', pathToBlob, 'to', pathToElectron);
12+
fs.copyFileSync(pathToBlob, path.join(pathToElectron, snapshotFileName));
13+
fs.copyFileSync(pathToBlobV8, path.join(pathToElectron, v8ContextFileName));
14+
}
15+
16+
function getPathToElectron() {
17+
switch (process.platform) {
18+
case 'darwin':
19+
return path.resolve(
20+
__dirname,
21+
'..',
22+
'node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Resources'
23+
);
24+
case 'win32':
25+
case 'linux':
26+
return path.resolve(__dirname, '..', 'node_modules', 'electron', 'dist');
27+
}
28+
}
29+
30+
function getV8ContextFileName(archToCopy) {
31+
if (process.platform === 'darwin') {
32+
return `v8_context_snapshot${archToCopy === 'arm64' ? '.arm64' : '.x86_64'}.bin`;
33+
} else {
34+
return `v8_context_snapshot.bin`;
35+
}
36+
}
37+
38+
exports.default = async (context) => {
39+
const archToCopy = Arch[context.arch];
40+
const pathToElectron =
41+
process.platform === 'darwin'
42+
? `${context.appOutDir}/Hyper.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Resources`
43+
: context.appOutDir;
44+
copySnapshot(pathToElectron, archToCopy);
45+
};
46+
47+
if (require.main === module) {
48+
const archToCopy = process.env.npm_config_arch;
49+
const pathToElectron = getPathToElectron();
50+
if ((process.arch.startsWith('arm') ? 'arm64' : 'x64') === archToCopy) {
51+
copySnapshot(pathToElectron, archToCopy);
52+
}
53+
}

0 commit comments

Comments
 (0)