-
-
Notifications
You must be signed in to change notification settings - Fork 395
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
chore: update electron
dependency + Node.js
#2199
Conversation
19b49ec
to
ed42b34
Compare
electron
dependency + Node.js
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.
Please also update the Node version in these workflows:
NODE_VERSION: 16.x |
NODE_VERSION: 16.x |
narrow the `resources` folder constraint in the .gitignore Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
remove `msvs_version` npm config on win32 Ref: nodejs/node-gyp#2822 Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
- Update to `electron-builder@24.6.3`. - Fix obsolete electron security section in the development docs. Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
ed42b34
to
62736fa
Compare
@@ -1,6 +1,8 @@ | |||
### Building and start the app from the sources on Ubuntu Linux | |||
|
|||
Tested and verified on Ubuntu 18.04.4. The source will be checked out to `~/dev/git/arduino-ide`. | |||
Tested and verified on Ubuntu 22.04. The source will be checked out to `~/dev/git/arduino-ide`. |
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.
Chicken-egg problem: the main
still does not support Node.js 18+. Here is what should work. The git checkout part differs
#!/bin/bash -i
sudo apt update \
&& sudo apt install --no-install-recommends --yes \
git \
gcc \
curl \
make \
python3 \
pkg-config \
libx11-dev \
libxkbfile-dev \
build-essential \
libsecret-1-dev \
&& wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash \
&& source ~/.bashrc \
&& nvm install 18.17 \
&& nvm use 18.17 \
&& nvm alias default 18.17 \
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - \
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list \
&& sudo apt update && sudo apt install --no-install-recommends yarn \
&& mkdir -p ~/dev/git/ \
&& rm -rf ~/dev/git/arduino-ide \
&& git clone https://github.com/arduino/arduino-ide.git ~/dev/git/arduino-ide \
&& git -C ~/dev/git/arduino-ide checkout origin/update-infra -b update-infra \
&& yarn --cwd ~/dev/git/arduino-ide \
&& yarn --cwd ~/dev/git/arduino-ide/electron-app rebuild \
&& yarn --cwd ~/dev/git/arduino-ide build \
&& yarn --cwd ~/dev/git/arduino-ide start
Please review. Thank you! |
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.
all makes sense, I do not see any issues.
Motivation
Use Node.js 18+ and the latest Electron version for the build and runtime.
Change description
prettier
config,>=18.17.0
,electron@25.5.0
Other information
For reviewers:
Reviewer checklist