1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
#!/usr/bin/bash set -e mkdir -p ~/.local/share/rvx-builder cd ~/.local/share/rvx-builder start="node /opt/rvx-builder/index.js" if command -v electron; then $start --no-open & pid=$! sleep 1 electron http://localhost:8000/ && kill $pid else $start fi