This method only works on the following devices:
- Raspberry Pi 4 (64-bit)
- Raspberry Pi 5 (64-bit)
Note
Cross-compilation is not yet supported. You need to have the following installed and set up on your Raspberry Pi 4 or Raspberry Pi 5 device:
- Docker (arm64)
- Code editor of your choice (e.g., Visual Studio Code, Neovim, etc.)
Clone the repository:
$ git clone https://github.com/Screenly/Anthias.gitNavigate to the webview directory:
$ cd /path/to/Anthias/webviewInitialize environment variables:
$ export GIT_HASH=$(git rev-parse --short HEAD)
$ export COMPOSE_PROFILES=pi5 # For Raspberry Pi 5
$ export COMPOSE_PROFILES=pi4-64 # For Raspberry Pi 4Start the builder container with the following command:
$ docker compose up -d --buildYou should now be able to invoke a run executing either of the following commands:
$ docker compose exec builder-pi5 /webview/build_webview.sh
# or
$ docker compose exec builder-pi4-64 /webview/build_webview.sh$ docker compose exec builder-pi5 bash
# or
$ docker compose exec builder-pi4-64 bash
# Once you're in the container, run the following command:
$ /scripts/build_webview.shThe resulting files will be placed in ~/tmp/<platform>/build/release, where <platform> is either pi5 or pi4-64.
When you're done, you can stop and remove the container with the following commands:
$ docker compose down