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
|
||||
```
|
||||
@@ -12,14 +12,6 @@ module.exports = {
|
||||
name: '@electron-forge/maker-zip',
|
||||
platforms: ['darwin', 'linux'],
|
||||
},
|
||||
{
|
||||
name: '@electron-forge/maker-deb',
|
||||
config: {
|
||||
options: {
|
||||
icon: 'images/icon-512.png'
|
||||
}
|
||||
},
|
||||
},
|
||||
],
|
||||
plugins: [
|
||||
{
|
||||
|
||||
+4
-1
@@ -10,8 +10,11 @@
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
"start": "electron-forge start",
|
||||
"clean": "rm -fr out",
|
||||
"package": "electron-forge package",
|
||||
"make": "electron-forge make"
|
||||
"make": "electron-forge make",
|
||||
"make-linux": "electron-forge make --platform linux",
|
||||
"make-all": "electron-forge make --platform darwin && electron-forge make --platform linux"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Reference in New Issue
Block a user