enable cross compilation
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
https://www.electronjs.org/docs/latest/tutorial/quick-start
|
||||
|
||||
# Dev environment
|
||||

|
||||
|
||||
# Install dev environment
|
||||
|
||||
```bash
|
||||
sudo apt install node
|
||||
@@ -9,11 +10,31 @@ sudo apt install rpm
|
||||
|
||||
npm install
|
||||
|
||||
# On Linux
|
||||
# https://github.com/electron/electron/issues/17972
|
||||
sudo chown root chrome-sandbox
|
||||
chmod 4755 chrome-sandbox
|
||||
|
||||
npm run make
|
||||
# for cross compilation Mac -> Linux
|
||||
brew install dpkg
|
||||
brew install fakeroot
|
||||
```
|
||||
|
||||
./out/tooloop-kiosk-browser-linux-x64/tooloop-kiosk-browser --no-sandbox
|
||||
# Building
|
||||
|
||||
```bash
|
||||
# one of
|
||||
npm run make
|
||||
npm run make-linux
|
||||
npm run make-all
|
||||
```
|
||||
|
||||
# Running
|
||||
|
||||
```bash
|
||||
# Mac
|
||||
npm run start
|
||||
|
||||
# Linux
|
||||
./out/Tooloop\ Kiosk\ Browser-linux-arm64/Tooloop\ Kiosk\ Browser --no-sandbox
|
||||
```
|
||||
Reference in New Issue
Block a user