-
Notifications
You must be signed in to change notification settings - Fork 0
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
Optimize build from source #1
Conversation
- 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.
There was a problem hiding this 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 |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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...
npm_config_nodedir
since we need native modules for electronjq
to edit package.json.yarnrc
files instead of passing--offline
cli arg