demo / network-computer
Public
Copy of github.com/askrobots/network-computer (MIT): a desk you reach from anything. The original lives on GitHub.
GitStable demo
README: say this is a copy and where the original is
cde82c2
13 hours, 36 minutes ago
History
build-tools.sh · 1.4 KB · 34 lines
| 1 | #!/bin/sh |
| 2 | # Turn a provisioned host into a Linux build + test box for the dbbasic projects. |
| 3 | # Idempotent. Run after apply.sh (or standalone on any Ubuntu 24.04 box). |
| 4 | # Adds: Flutter (+ Linux desktop build deps), Go, Node, Python, and Xvfb so GUI |
| 5 | # apps can be tested headlessly. The streamed desktop (nc-host) can also run them |
| 6 | # visually. |
| 7 | set -e |
| 8 | export DEBIAN_FRONTEND=noninteractive |
| 9 | |
| 10 | echo ">> Flutter Linux desktop build deps" |
| 11 | apt-get update -q |
| 12 | apt-get install -y -q \ |
| 13 | clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev \ |
| 14 | xvfb x11-utils \ |
| 15 | nodejs npm \ |
| 16 | python3 python3-pip python3-venv \ |
| 17 | unzip curl git |
| 18 | |
| 19 | echo ">> Go (if not already present from apply.sh)" |
| 20 | command -v go >/dev/null || { echo "run provision/apply.sh first for Go, or install go"; } |
| 21 | |
| 22 | echo ">> Flutter SDK -> /opt/flutter" |
| 23 | if [ ! -d /opt/flutter ]; then |
| 24 | git clone --depth 1 -b stable https://github.com/flutter/flutter.git /opt/flutter |
| 25 | fi |
| 26 | export PATH="/opt/flutter/bin:$PATH" |
| 27 | grep -q '/opt/flutter/bin' /etc/profile.d/flutter.sh 2>/dev/null || \ |
| 28 | echo 'export PATH="/opt/flutter/bin:$PATH"' > /etc/profile.d/flutter.sh |
| 29 | git config --global --add safe.directory /opt/flutter |
| 30 | flutter config --enable-linux-desktop >/dev/null 2>&1 || true |
| 31 | flutter --version | head -1 |
| 32 | echo |
| 33 | echo "build box ready. Use scripts/build-linux.sh from a project checkout, or" |
| 34 | echo "run one app headlessly: xvfb-run -a flutter test" |