Files
Tooloop-Kiosk-Browser/README.md
T
2024-07-23 16:25:39 +02:00

53 lines
878 B
Markdown

![App icon](images/icon-512.png)
# Install dev environment
Only on arm64
```bash
wget https://launchpad.net/ubuntu/+source/phantomjs/2.1.1+dfsg-2ubuntu1/+build/19118060/+files/phantomjs_2.1.1+dfsg-2ubuntu1_arm64.deb
sudo apt install ./phantomjs_2.1.1+dfsg-2ubuntu1_arm64.deb
```
```bash
sudo apt install nodejs
sudo apt install npm
sudo apt install rpm
npm install
# On Linux
# https://github.com/electron/electron/issues/17972
sudo chown root node_modules/electron/dist/chrome-sandbox
sudo chmod 4755 node_modules/electron/dist/chrome-sandbox
# for cross compilation Mac -> Linux
brew install dpkg
brew install fakeroot
```
# Build
```bash
# one of
npm run make
npm run make-linux
npm run make-all
```
# Run
```bash
# Mac
npm run start
# Linux
./out/Tooloop\ Kiosk\ Browser-linux-arm64/Tooloop\ Kiosk\ Browser --no-sandbox
```
# Deploy
```bash
npm run deploy
```