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

Optimize build from source #1

Merged

Conversation

gasinvein
Copy link

  • Remove npm_config_nodedir since we need native modules for electron
  • Don't disable rebuilding native modules
  • Remove redundant environment variables
  • Use jq to edit package.json
  • Use .yarnrc files instead of passing --offline cli arg
  • Add empty lines between modules and sources for readability

- Remove `npm_config_nodedir` since we need native modules for electron
- Don't disable rebuilding native modules
- Remove redundant environment variables
- Use `jq` to edit package.json
- Use `.yarnrc` files instead of passing `--offline` cli arg
- Add empty lines between modules and sources for readability
Query Github API for Element releases; GitChecker has issues when used
for apps with downstream .metainfo.xml.

Also fix URL template for Yarn.
Copy link
Owner

@jwillikers jwillikers left a comment

Choose a reason for hiding this comment

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

Thanks for all the work, things look way better considering it was a bit of a mess.

type: git
tag-pattern: ^v([\\d.]+)$
version-scheme: semantic
type: json
Copy link
Owner

Choose a reason for hiding this comment

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

I'm just curious about why you choose the json x-checker-data?

Copy link
Author

Choose a reason for hiding this comment

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

Because json checker can get stable timestamps, unlike git checker, see flathub-infra/flatpak-external-data-checker#154

# Rebuild native modules by electron-rebuild
# https://github.com/electron-userland/electron-builder/issues/4100
- sed -i 's/"build":\ {/"build":\ {\n"npmRebuild":\ false,/' package.json
- jq 'del(.build.electronVersion)' <<<$(cat package.json) > package.json
Copy link
Owner

Choose a reason for hiding this comment

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

Using jq is much better idea...

@jwillikers jwillikers merged commit ec857a8 into jwillikers:build-from-source Aug 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants