summarylogtreecommitdiffstats
path: root/rvx-builder.sh
blob: 8f384807821ab333561e1c8b4b108a3822fb7bd2 (plain)
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