474 Commits

Author SHA1 Message Date
Sergio Padrino
6b696d6329 Use the new naming format for snapshots on macOS 2022-11-22 16:56:11 +01:00
sadick254
842125f291 Change to github refs 2022-10-28 09:10:28 +03:00
steven nguyen
ee56b4ba7b separate getLocalNpmBinPath for install-apm.js 2022-02-28 14:44:12 +00:00
icecream17
790511ac51 Fix npm ENOENT error in install-script-runner-dependencies
Despite what https://github.com/atom/atom/pull/23322 is named,
the pull request actually makes install-script-dependencies
use the non-local npm binary.

So this pr fixes install-script-runner-dependencies by making the npmBinPath
consistent with install-script-dependencies

ENOENT detected by https://github.com/atom-community/atom/pull/351,
specifically https://dev.azure.com/atomcommunity/atomcommunity/_build/results?buildId=1132&view=logs&j=2985f0af-e798-5fdc-91b8-be9f0a3685c5&t=0a53f124-4db9-5fc3-be81-e293757effc7&l=16
2022-02-26 16:26:23 -06:00
steven nguyen
9e6302f7a2 fix/deps: min versions of electron-chromedriver...
... and electron-snapshot to the current electron version (v11)
2022-02-07 14:33:33 +00:00
sadick254
309ecff84d Use correct npm bin name depending on the OS 2021-12-03 16:26:23 +03:00
sadick254
22c3e44d10 We don't need to verify npm version
We have defaulted to using npm that installed as part of the script
dependancies. This is to increase predictability on what version of npm
was used to install atom dependencies
2021-12-03 16:22:25 +03:00
sadick254
36562eaea1 Install using npm installed during installation of script dependencies 2021-12-03 14:19:52 +03:00
Musa Ibrahim
dd4fae1eb9 Merge pull request #22979 from DeeDeeG/update-system-requirements-checker-node
bootstrap: Use legacy-compatible `catch` syntax (support older Node)
2021-09-20 16:47:01 +01:00
DeeDeeG
f35e51273d bootstrap: Update required Node to 10.12+
"Node 10.12 or newer" has been a hard requirement since this PR:
https://github.com/atom/atom/pull/20879,
due to newer versions of electron-chromedriver and electron-mksnapshot
relying on extract-zip@2 as an indirect dependency.

(extract-zip@2 requires Node 10.12 or newer for its recursive mkdir.
Using extract-zip@2 with Node older than 10.12 results in errors.

That leads to a lack of electron-vendored
chromedriver or mksnapshot binaries where they're supposed to be.
Which in turn causes startup blob creation (via mksnapshot) to fail
toward the end of the Atom build scripts.)
2021-09-18 16:28:13 -04:00
DeeDeeG
5339e5d528 bootstrap: Fix syntax error for Node older than 10
We don't actually support Node older than 10 for successfully
bootstrapping an Atom build, but we should support older Node in the
system requirements checker script so that we can print useful errors,
like ones to tell the user their system's copy of Node is too old!

(It was me that introduced this Node 10.0.0 or above-only syntax
about a year ago... My mistake. It's as good a time as any to fix it!)
2021-09-13 21:07:59 -04:00
DeeDeeG
b042d2ded1 script: Let bootstrap install apm with npm ci
This commit enables faster, more-reproducible installs of `apm`,
when bootstrapping/building Atom in `ci` mode.
(with `--ci` or env var `CI` set).

This only affects bootstrapping/building Atom; This should
not make any difference to the built Atom app, or to `apm`'s behavior
as a command-line tool/as a component of Atom.

Details:

As of apm 2.6.2, apm respects a `NO_APM_DEDUPE` env var on Windows.
(It was already supported on Linux and macOS before then.)
When set, this env var disables the deduping
normally performed at the end of apm's postinstall script.

This deduping doesn't work properly when installing apm with `npm ci`,
for unknown reasons. (The deduping algorithm deletes many needed
dependencies, without reconstructing a valid tree.)

Now that `apm` supports `NO_APM_DEDUPE` on all platforms,
we can safely allow installing `apm` with `npm ci`
during the bootstrap script.

Now bootstrapping apm in `ci` mode is faster in two ways:
- `npm ci` is generally faster than `npm install` for clean installs.
  - Great for actual automated builds ("CI").
- The `npm dedupe` run is now skipped in `ci` mode.
  - The `npm dedupe` was of dubious value in any case
  - The `npm dedupe` command was also surprisingly slow

We also benefit from the stronger reproducibility of `npm ci`
compared to `npm install` (guaranteed, version-locked dependencies).
2021-05-19 10:47:41 -04:00
darangi
f0a79a0143 fetch 2021-03-23 08:10:49 +01:00
Musa Ibrahim
c7bf8f1aa3 Merge pull request #22019 from atom/fix-dependency-bump-failure
Fixes failing Dependency Bump script
2021-03-10 11:18:44 -08:00
Sadick
f4d832f2e2 Upgrade to electron 9.4.4 (#21777)
* Electron 9.4.4 Upgrade

Co-authored-by: Amin Yahyaabaadi <aminyahyaabadi74@gmail.com>
Co-authored-by: Maarten Fonville <mfonville@users.noreply.github.com>
Co-authored-by: Andrea Bogazzi <andreabogazzi79@gmail.com>
2021-03-05 07:48:45 +03:00
darangi
7a255bc138 rm .catch block 2021-03-01 19:01:36 +01:00
darangi
ce5e0f3068 use a default branch instead of master 2021-03-01 18:57:27 +01:00
Musa Ibrahim
394b468779 Merge pull request #21928 from atom/fix-dependency-bump-failure
Fixes dependency bump script
2021-02-04 15:48:11 +01:00
darangi
b6b8a87558 fix lint 2021-02-04 13:40:24 +01:00
darangi
1db87c09b0 checkout origin/master 2021-02-04 08:29:27 +01:00
Sadick
80bf68edbc Fix path when copying resource (#21900)
When copying resource from `{repositoryRootPath}/resources/win/*` to `{bundledResourcesPath}/cli/*`, omitted the {repositoryRootPath}.

Co-authored-by: yoonhyung <yoonhyungkim@webida.org>
2021-01-28 12:24:23 +03:00
sadick254
b9ef64e667 Add authorization 2021-01-04 22:19:26 +03:00
Atom Build Bot
5b0a00b027 Merge postcss-selector-parser-6.0.4 into master 2020-10-13 05:12:01 +02:00
Benjamin Gray
40175271d2 Remove electron configuration (#21354)
* remove electron configuration
2020-10-08 20:14:44 +03:00
darangi
0414ee6b30 fix lint 2020-10-06 15:10:15 +01:00
darangi
32e92c13f0 add util-deprecate to snapshot blacklist 2020-10-06 14:49:11 +01:00
darangi
ab5e729e31 merge dependency bumps 2020-10-02 12:06:03 +01:00
Musa Ibrahim
2bb82aafb4 Merge pull request #21398 from atom-ide-community/exclude-tests
exclude test folders from the packaged app
2020-09-29 09:57:19 +01:00
Amin Yahyaabadi
83bc6b8379 exclude specific spec folders
Picked by hand to make sure they are test
2020-09-27 20:41:56 -05:00
Amin Yahyaabadi
449d6e6d80 exclude test folders from packaged app 2020-09-27 14:27:22 -05:00
Ash Wilson
efca1361f5 Prevent node_modules/nan pattern from matching node_modules/nanoid 2020-09-27 10:28:51 -04:00
darangi
166fde8fdb fixed issue with re-open closed PRs 2020-09-25 08:54:39 +01:00
Mazen El-Kashef
4bdeb86c83 Merge branch 'master' into electron-6.1.12-bump-electron-packager-from-git 2020-07-16 11:18:24 -05:00
DeeDeeG
39d2bd4800 Merge branch 'master' into electron-6.1.12 2020-06-07 13:34:38 -04:00
DeeDeeG
c274463a9b ⌨️ Fix a typo (chromedriver -> mksnapshot) 2020-06-03 15:34:27 -04:00
DeeDeeG
3e7b532c0b 👕 Fix lints for 'script' dir 2020-06-03 14:58:02 -04:00
DeeDeeG
9e8b0b14fa script: Use "ELECTRON_CUSTOM_VERSION" env variable
New feature as of electron-chromedriver >= 9.0.0
and electron-mksnapshot >= 9.0.2:
an environment variable "ELECTRON_CUSTOM_VERSION",
which allows downloading the specified (Electron-vendored)
version of chromedriver and mksnapshot,
irrespective of the versions of electron-chromedriver
or electron-mksnapshot (node modules) used to download them.

We can use the latest electron-chromedriver and electron-mksnapshot
now, if we want. Just set ELECTRON_CUSTOM_VERSION to the right version
(handled automatically based on "electronVersion" in package.json).
2020-06-03 13:45:49 -04:00
Descear
89fe5a000f Don't chmod chrome-sandbox 2020-05-29 00:17:08 +01:00
Descear
a5db2fbf11 Trigger CI 2020-05-28 20:52:50 +01:00
Descear
865e8fdd78 Trigger CI 2020-05-28 20:51:22 +01:00
Descear
2247a74755 Remove debugging code 2020-05-27 22:48:29 +01:00
Descear
535ab93968 Remove debugging code 2020-05-27 22:48:28 +01:00
Descear
ab01bcd48a Fix parsing error 2020-05-27 22:01:53 +01:00
Descear
a51c31c51a Fix parsing error 2020-05-27 22:01:51 +01:00
Descear
4d12c46a2d Fix lint 2020-05-27 21:42:14 +01:00
Descear
41aba7665a Fix lint 2020-05-27 21:42:10 +01:00
Descear
66ce0b71b6 Add debugging code to create-rpm-package.js 2020-05-23 17:29:43 +01:00
Descear
a1c4e47296 Add debugging code to create-debian-package.js 2020-05-23 17:29:39 +01:00
Mazen El-Kashef
891c80a0e7 Update script to support electron-packager 14 2020-05-20 00:09:30 -05:00
Mazen El-Kashef
98bb0d40de remove log and verify lint 2020-05-19 18:39:47 -05:00