Linux
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update -y
sudo apt install libgtk-3-0 -y
sudo apt install software-properties-common checkinstall -y
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev build-essential libncurses5-dev libgmp-dev libnss3-dev wget -y
npm install --global lerna node-pre-gyp typescript
sudo apt install python-minimal -y
sudo apt install python-pip -y
npm --build-from-source install
sudo chown root:root node_modules/electron/dist/chrome-sandbox
sudo chmod 4755 node_modules/electron/dist/chrome-sandbox
sudo npm run start
Windows
npm config set msvs_version 2017 --global
npm i electron-builder-squirrel-windows electron-builder node-gyp electron electron-rebuild -g
node-gyp configure --msvs_version=2017
npm install --global --production windows-build-tools
npm install
Created at 2020-12-31 08:11:00
Updated at 2024-02-20 06:00:25
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.