Files

53 lines
878 B
Markdown
Raw Permalink Normal View History

2024-05-28 11:06:58 +02:00
2024-06-04 10:00:11 +02:00
![App icon](images/icon-512.png)
# Install dev environment
2024-05-28 14:25:32 +02:00
2024-07-23 16:25:39 +02:00
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
```
2024-05-28 14:25:32 +02:00
```bash
2024-07-23 16:25:39 +02:00
sudo apt install nodejs
2024-05-28 16:43:25 +02:00
sudo apt install npm
2024-05-28 14:25:32 +02:00
sudo apt install rpm
npm install
2024-06-04 10:00:11 +02:00
# On Linux
2024-05-28 14:25:32 +02:00
# https://github.com/electron/electron/issues/17972
2024-07-23 16:25:39 +02:00
sudo chown root node_modules/electron/dist/chrome-sandbox
sudo chmod 4755 node_modules/electron/dist/chrome-sandbox
2024-05-28 14:25:32 +02:00
2024-06-04 10:00:11 +02:00
# for cross compilation Mac -> Linux
brew install dpkg
brew install fakeroot
```
# Build
2024-06-04 10:00:11 +02:00
```bash
# one of
2024-05-28 14:25:32 +02:00
npm run make
2024-06-04 10:00:11 +02:00
npm run make-linux
npm run make-all
```
# Run
2024-06-04 10:00:11 +02:00
```bash
# Mac
npm run start
2024-05-28 14:25:32 +02:00
2024-06-04 10:00:11 +02:00
# Linux
./out/Tooloop\ Kiosk\ Browser-linux-arm64/Tooloop\ Kiosk\ Browser --no-sandbox
```
# Deploy
```bash
npm run deploy
2024-05-28 14:25:32 +02:00
```