Skip to content

Commit c6ad0f5

Browse files
authored
Merge pull request #139 from bcmi-labs/build-on-ubuntu
Added steps to build the app from source
2 parents ba319b2 + 4b8b468 commit c6ad0f5

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

docs/internal/Ubuntu.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
### Building and start the app from the sources on Ubuntu Linux
2+
3+
Tested and verified on Ubuntu 18.04.4. The source will be checked out to `~/dev/git/arduino-editor`.
4+
5+
```
6+
#!/bin/bash -i
7+
8+
sudo apt update \
9+
&& sudo apt install --no-install-recommends --yes \
10+
git \
11+
gcc \
12+
curl \
13+
make \
14+
python \
15+
pkg-config \
16+
libx11-dev \
17+
libxkbfile-dev \
18+
build-essential \
19+
&& wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash \
20+
&& source ~/.bashrc \
21+
&& nvm install 12.14.1 \
22+
&& nvm use 12.14.1 \
23+
&& nvm alias default 12.14.1 \
24+
&& curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - \
25+
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list \
26+
&& sudo apt update && sudo apt install --no-install-recommends yarn \
27+
&& mkdir -p ~/dev/git/ \
28+
&& rm -rf ~/dev/git/arduino-editor \
29+
&& git clone --depth 1 https://github.com/bcmi-labs/arduino-editor.git ~/dev/git/arduino-editor \
30+
&& yarn --cwd ~/dev/git/arduino-editor \
31+
&& yarn --cwd ~/dev/git/arduino-editor rebuild:electron \
32+
&& yarn --cwd ~/dev/git/arduino-editor/electron-app start
33+
```

0 commit comments

Comments
 (0)