Samuel Attard
122685194a
build: add import/order eslint rule ( #44085 )
...
* build: add import/order eslint rule
* chore: run lint:js --fix
2024-10-02 19:10:44 -07:00
Samuel Attard
74af96da16
build: update some build dependencies ( #43882 )
...
* build: update some build dependencies
* build: fix eslint issues after updating
* build: disable ts check on busted js example
* build: update internal types for stricter event handling
* restore url.parse behavior
* fix typing issues
* sigh
* build: update easy deps
* build: skip woa engines check
2024-09-26 00:12:11 -07:00
Ninglo
f526206095
feat: configure use remote checksums via rc ( #40253 )
...
* feat: support for configuring use_remote_checksums via .npmrc
* docs: support for configuring use_remote_checksums via .npmrc
---------
Co-authored-by: jiujianian <jiujianian@bytedance.com>
2023-10-31 16:51:59 -04:00
hyrious
9c48992e21
chore: fix dangling promise in npm install ( #36379 )
...
* Fix dangling promise introduced in #33979
* fix reject in callback
* simplify code
Co-authored-by: Black-Hole <158blackhole@gmail.com>
Co-authored-by: Black-Hole <158blackhole@gmail.com>
2022-11-18 15:21:11 -08:00
Felix Rieseberg
74d59af3c5
fix: Handle an electron.d.ts file in a custom build ( #33979 )
...
* Handle an electron.d.ts file in a custom build
* Fix linter issues
Co-authored-by: Felix Rieseberg <felixr@stripe.com>
2022-09-26 14:39:26 -04:00
Samuel Maddock
ff5f66395e
chore: upgrade extract-zip for installer ( #34166 )
2022-05-12 10:18:42 +02:00
Tommy MacWilliam
824c909e2a
fix: Allow npm_config_arch override on mac ( #32266 )
...
If the npm_config_arch environment variable is set on Mac, then use the
specified architecture rather than overriding it to x64.
2022-01-07 17:53:15 +09:00
Samuel Attard
aab5ea5f9d
build: embed binary checksums in the npm package ( #30611 )
...
* build: embed binary checksums in the npm package
* Update docs/tutorial/installation.md
Co-authored-by: Jeremy Rose <jeremya@chromium.org>
* refactor: replace reduce with loop
Co-authored-by: Jeremy Rose <jeremya@chromium.org>
2021-08-19 11:26:17 -07:00
Samuel Attard
7169734470
fix: download the arm64 version of Electron when running node under rosetta ( #29953 )
2021-07-06 10:40:26 +09:00
David Sanders
2aa5a1f494
build: lint the npm folder ( #26085 )
2020-10-21 15:43:52 -07:00
leonllrmc
c97f8109c2
chore: update import for use new ECMA features ( #24987 )
2020-08-25 09:23:44 -07:00
Max
ae49b8be42
fix: npm download failed when define 'npm_config_platform=mas' ( #21801 )
2020-01-17 14:44:21 +09:00
David Sanders
85382d8f1d
fix: improve error handling in npm install ( #21589 )
...
* fix: improve error handling in npm install
* chore: simplify logic
2019-12-30 09:48:54 -08:00
Robert Nagy
1f43af5cea
feat: add openbsd support in the node module ( #19860 )
2019-08-22 12:09:15 -07:00
Samuel Attard
a6637fbce9
chore: update the npm package to use @electron/get ( #18413 )
...
* chore: update the npm package to use @electron/get
* chore: update node requirement for got
2019-05-24 13:40:53 -07:00
Joshua Westerheide
a59dc56fa6
feat: add env variable to skip binary download on npm install ( #17627 )
...
* feat: add env variable to skip binary download on npm install
* docs: add "Skip binary download" section to install tutorial
2019-05-03 10:17:15 -07:00
Samuel Attard
558fff69e7
chore: update to standard 12
2018-09-14 14:57:01 +10:00
Keerthi Niranjan
59e118925a
fix: electron path for postinstall ( #14177 )
...
* fix #14127 issue caused by #12426
* add ELECTRON_OVERRIDE_DIST_PATH check for install.js
2018-08-19 09:40:12 -07:00
Samuel Attard
2e5cb930de
Provide an easy way to use a local build of Electron ( #12426 )
...
* Provide an easy way to use a local build of Electron
For instance from ~/projects/electron/out/D
* document ELECTRON_OVERRIDE_DIST_PATH
* Make the linter happy
* Tweak ELECTRON_OVERRIDE_DIST_PATH docs
2018-03-25 00:03:17 -04:00
Felix Rieseberg
2b510d7a06
Update install.js
2017-10-11 11:10:38 -07:00
Felix Rieseberg
d07529feca
🔧 Don't be quiet on default loglevel
2017-10-11 10:56:40 -07:00
Vanessa Yuen
b54804d449
change `process.versions.electron` to reflect suffixes in version name.
2017-08-29 19:37:49 -04:00
Jordan Piepkow
ffc22ef926
switched to the more standard approach in this file
...
Switched to defaulting back to string 'false' as that is how it was already doing strictSSL and electron-download treats and checks both against bools so would make sense to keep it the same across the document.
2017-05-23 16:16:01 -04:00
Jordan Piepkow
28100a8695
added force option in electron-download.
...
Downloading from cache causes a checksum check that causes some builds to fail(see https://github.com/electron/electron/issues/8653 ) that that rely on stable electron releases(pre electron v1.7.0 beta) where chromedrive is not named based on electron version. This will add the option to always force a redownload.
2017-05-23 15:26:22 -04:00
Volodymyr Bezuglyy
ba39adde36
Use process.env.electron_config_cache to get prepared zip file.
2017-02-09 15:15:15 +02:00
Kevin Sawicki
8d4660158a
err -> ignored
2016-12-27 11:51:00 -08:00
Kevin Sawicki
ed8260e4d9
Inline platform variable
2016-12-27 11:51:00 -08:00
Kevin Sawicki
d5bb1d87cc
Add getPath helper
2016-12-27 11:13:15 -08:00
Kevin Sawicki
d2df641b0d
Write path.txt after extraction
2016-12-27 11:03:51 -08:00
Mathias Buus
537203469e
log level is missing http
2016-11-11 15:38:02 +09:00
Flynn Joffray
95cd9d718d
print progress for proper loglevels
2016-10-20 12:20:25 +01:00
Kevin Sawicki
83ffe03825
Merge pull request #162 from EmilyFranklin/correct-platform-path
...
Change platform path to match downloaded one
2016-09-22 08:51:31 -07:00
Kevin Sawicki
557d062b7f
Remove trailing comma
2016-09-19 14:36:07 -07:00
Kevin Sawicki
fb2f4ae528
Set quiet to true when loglevel is silent
2016-09-19 14:32:11 -07:00
Kevin Sawicki
7dc95671cd
Tweak unknown platform error message
2016-07-28 13:47:03 -07:00
Emily
dfde9ea814
added or to handle undefined
2016-07-15 13:09:12 +09:00
Emily
4f20a15907
change platform path to match downloaded one
2016-07-15 11:17:54 +09:00
Matthew Amato
9295aa6103
Fix strict-ssl detection.
...
When `strict-ssl` is set to a truthy value, npm always turns the
environment variable into the string `true`, when the value is falsy, npm
always sets it to a blank string. This fixes strict-ssl detection by
always comparing the value of npm_config_strict_ssl to the string `"true"`
2016-03-02 16:45:48 -05:00
Rodrigo Nascimento
fc78d2d8f5
Allow download builds for MAS
2016-02-22 23:56:27 -03:00
Jonathan Creekmore
7922082090
Allow specifying StrictSSL in the NPM config file
...
The standard way of specifying whether you want strict-ssl or not
is to add an entry into your npm config file for strict-ssl. Use
that entry (which is passed to the install.js as an environment
variable) to set the option for strictSSL in electron-download.
2015-12-21 11:28:03 -06:00
Teran McKinney
23c928afc9
Add FreeBSD path to install.js
2015-12-12 22:14:09 +00:00
Yoyo Zhou
999a998469
Don't save __dirname into path.txt.
...
Allows install to work even if our directory is moved later.
2015-12-10 14:43:35 -08:00
Mathias Buus
b152f6d215
be standard
2015-12-09 16:30:46 +01:00
Mathias Buus
3ce46663b9
allow rebuilds. fixes #78
2015-12-09 16:16:56 +01:00
Tom Hughes
dd59736393
Clean up target arch support based on pull request #55 comments.
2015-09-22 10:34:52 -07:00
Attila Sukosd
f1f061e1e3
Added target arch support
...
Previously electron-prebuilt would download the prebuilt binaries
for the architecture native to the platform. However there are
cases where being able to download for another architecture is
favourable.
This patch adds support for setting the architecture through
npm's --arch= parameter. (Issue #53 )
2015-09-22 10:17:36 -07:00
Lars-Magnus Skog
efd51295c9
use version from package.json
2015-06-09 20:59:04 +02:00
Matt DesLauriers
811935b3b2
bump to 0.27.3
2015-06-09 10:42:26 -04:00
Max Ogden
740849270c
0.27.2
2015-06-01 15:38:17 -07:00
Max Ogden
1d8a289ed2
0.27.1
2015-05-28 11:17:04 -07:00