Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Handle an electron.d.ts file in a custom build #33979

Merged
merged 5 commits into from Sep 26, 2022

Conversation

felixrieseberg
Copy link
Member

@felixrieseberg felixrieseberg commented Apr 29, 2022

Description of Change

Right now, if you use a custom build or a mirror during the installation of Electron, you will always get the electron.d.ts file that was part of the npm package - and not the one that's part of your custom build or mirror.

With this change, during installation, we check if the downloaded zip file contained an electron.d.ts file. If so, we move it one level up.

Checklist

Release Notes

Notes: Fixed: If a custom Electron build contains an electron.d.ts file, it is now being used.

@felixrieseberg felixrieseberg requested a review from a team as a code owner April 29, 2022 15:29
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Apr 29, 2022
@felixrieseberg felixrieseberg added semver/patch backwards-compatible bug fixes target/18-x-y labels Apr 29, 2022
@felixrieseberg
Copy link
Member Author

The broken Windows build seems to be a fluke!

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Apr 30, 2022
@MarshallOfSound
Copy link
Member

@felixrieseberg Can you re-auth with Circle to kick off the CI builds, you may have to push an empty commit too

Copy link
Member

@codebytere codebytere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved w/ small typo fix!

npm/install.js Outdated Show resolved Hide resolved
npm/install.js Outdated Show resolved Hide resolved
@jkleinsc
Copy link
Contributor

jkleinsc commented May 9, 2022

@felixrieseberg can you re-authenticate with CircleCI and then push an empty commit to trigger CircleCI testing?

Copy link
Contributor

@jkleinsc jkleinsc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lint failures need to be addressed.

@ckerr
Copy link
Member

ckerr commented Sep 16, 2022

@jkleinsc are you good with these lint changes?

@miniak miniak added target/21-x-y PR should also be added to the "21-x-y" branch. and removed target/18-x-y labels Sep 23, 2022
@jkleinsc jkleinsc merged commit 74d59af into electron:main Sep 26, 2022
@release-clerk
Copy link

release-clerk bot commented Sep 26, 2022

Release Notes Persisted

Fixed: If a custom Electron build contains an electron.d.ts file, it is now being used.

@trop
Copy link
Contributor

trop bot commented Sep 26, 2022

I was unable to backport this PR to "19-x-y" cleanly;
you will need to perform this backport manually.

@trop trop bot removed the target/19-x-y label Sep 26, 2022
trop bot pushed a commit that referenced this pull request Sep 26, 2022
* Handle an electron.d.ts file in a custom build

* Fix linter issues

Co-authored-by: Felix Rieseberg <felixr@stripe.com>
trop bot pushed a commit that referenced this pull request Sep 26, 2022
* Handle an electron.d.ts file in a custom build

* Fix linter issues

Co-authored-by: Felix Rieseberg <felixr@stripe.com>
@trop
Copy link
Contributor

trop bot commented Sep 26, 2022

I have automatically backported this PR to "21-x-y", please check out #35822

@trop
Copy link
Contributor

trop bot commented Sep 26, 2022

I have automatically backported this PR to "20-x-y", please check out #35823

@trop trop bot added in-flight/20-x-y merged/21-x-y PR was merged to the "21-x-y" branch. and removed target/21-x-y PR should also be added to the "21-x-y" branch. target/20-x-y labels Sep 26, 2022
jkleinsc pushed a commit that referenced this pull request Sep 26, 2022
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>

Co-authored-by: Felix Rieseberg <felix@felixrieseberg.com>
Co-authored-by: Felix Rieseberg <felixr@stripe.com>
@trop trop bot added the merged/20-x-y label Sep 26, 2022
jkleinsc pushed a commit that referenced this pull request Sep 26, 2022
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>

Co-authored-by: Felix Rieseberg <felix@felixrieseberg.com>
Co-authored-by: Felix Rieseberg <felixr@stripe.com>
@trop trop bot removed the in-flight/20-x-y label Sep 26, 2022
@hassanmahdi58
Copy link

electron.d.ts

VerteDinde pushed a commit that referenced this pull request Nov 18, 2022
* 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>
trop bot added a commit that referenced this pull request Nov 18, 2022
Co-authored-by: hyrious <hyrious@outlook.com>
trop bot added a commit that referenced this pull request Nov 18, 2022
Co-authored-by: hyrious <hyrious@outlook.com>
trop bot added a commit that referenced this pull request Nov 18, 2022
Co-authored-by: hyrious <hyrious@outlook.com>
codebytere pushed a commit that referenced this pull request Nov 21, 2022
* Fix dangling promise introduced in #33979

Co-authored-by: hyrious <hyrious@outlook.com>

* fix reject in callback

Co-authored-by: hyrious <hyrious@outlook.com>

* simplify code

Co-authored-by: Black-Hole <158blackhole@gmail.com>

Co-authored-by: hyrious <hyrious@outlook.com>

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: hyrious <hyrious@outlook.com>
codebytere pushed a commit that referenced this pull request Nov 21, 2022
* Fix dangling promise introduced in #33979

Co-authored-by: hyrious <hyrious@outlook.com>

* fix reject in callback

Co-authored-by: hyrious <hyrious@outlook.com>

* simplify code

Co-authored-by: Black-Hole <158blackhole@gmail.com>

Co-authored-by: hyrious <hyrious@outlook.com>

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: hyrious <hyrious@outlook.com>
MarshallOfSound pushed a commit that referenced this pull request Nov 22, 2022
* Fix dangling promise introduced in #33979

Co-authored-by: hyrious <hyrious@outlook.com>

* fix reject in callback

Co-authored-by: hyrious <hyrious@outlook.com>

* simplify code

Co-authored-by: Black-Hole <158blackhole@gmail.com>

Co-authored-by: hyrious <hyrious@outlook.com>

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: hyrious <hyrious@outlook.com>
khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
* Handle an electron.d.ts file in a custom build

* Fix linter issues

Co-authored-by: Felix Rieseberg <felixr@stripe.com>
khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
* Fix dangling promise introduced in electron#33979

* fix reject in callback

* simplify code

Co-authored-by: Black-Hole <158blackhole@gmail.com>

Co-authored-by: Black-Hole <158blackhole@gmail.com>
@felixrieseberg felixrieseberg deleted the felix-install-dts branch May 4, 2023 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/21-x-y PR was merged to the "21-x-y" branch. semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants