build: determine electron version from tags not files (#36136)
* build: determine electron version from tags not files (#36106) * build: determine electron version from tags not files * build: make electron_version dependent on packed-refs and git HEAD * build: do not delete electron/.git * build: do not revert a commit we didn't make * build: gen version file instead of just writing it * build: update cache and ninja targets * build: copy resource.h to generated electron.rc * build: electron_win32_resources should be public deps * build: also copy the icon Co-authored-by:MarshallOfSound <marshallofsound@electronjs.org> * chore: fixup patches * chore: update patches * build: ensure get-version runs in the electron git checkout (#36128) * build: strip v in the getElectronVersion helper * build: use npm@7 for npm view command Co-authored-by:
Samuel Attard <sam@electronjs.org> Co-authored-by:
MarshallOfSound <marshallofsound@electronjs.org> Co-authored-by:
PatchUp <73610968+patchup[bot]@users.noreply.github.com> Co-authored-by:
Samuel Attard <sattard@salesforce.com>
Showing
- .circleci/config/base.yml 7 additions, 6 deletions.circleci/config/base.yml
- BUILD.gn 46 additions, 14 deletionsBUILD.gn
- ELECTRON_VERSION 0 additions, 1 deletionELECTRON_VERSION
- build/templates/electron_rc.tmpl 4 additions, 4 deletionsbuild/templates/electron_rc.tmpl
- build/templates/version_string.tmpl 1 addition, 0 deletionsbuild/templates/version_string.tmpl
- package.json 1 addition, 1 deletionpackage.json
- patches/chromium/.patches 1 addition, 0 deletionspatches/chromium/.patches
- patches/chromium/build_allow_electron_to_use_exec_script.patch 18 additions, 0 deletions...es/chromium/build_allow_electron_to_use_exec_script.patch
- script/generate-version-json.js 3 additions, 2 deletionsscript/generate-version-json.js
- script/lib/get-version.js 22 additions, 0 deletionsscript/lib/get-version.js
- script/lib/util.py 13 additions, 5 deletionsscript/lib/util.py
- script/print-version.py 3 additions, 0 deletionsscript/print-version.py
- script/release/publish-to-npm.js 22 additions, 19 deletionsscript/release/publish-to-npm.js
- script/release/release-artifact-cleanup.js 0 additions, 23 deletionsscript/release/release-artifact-cleanup.js
- script/release/release.js 3 additions, 2 deletionsscript/release/release.js
- script/release/version-bumper.js 3 additions, 81 deletionsscript/release/version-bumper.js
- script/release/version-utils.js 0 additions, 7 deletionsscript/release/version-utils.js
- spec-main/version-bump-spec.ts 1 addition, 95 deletionsspec-main/version-bump-spec.ts
Please register or sign in to comment