-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·29 lines (22 loc) · 919 Bytes
/
install.sh
File metadata and controls
executable file
·29 lines (22 loc) · 919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
set -e
# Get the directory where this script is located
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
echo "1. Loading required modules..."
module load Python nodejs
echo "2. Setting up Python virtual environment..."
cd "$SCRIPT_DIR"
python -m venv ibex_venv
source ibex_venv/bin/activate
echo "3. Installing backend"
pip install --upgrade pip setuptools wheel
cd "$SCRIPT_DIR/backend" && pip install .
cd "$SCRIPT_DIR"
echo "5. Installing frontend dependencies..."
cd "$SCRIPT_DIR/frontend"
npm install
# replace version in package.json with current version
python -c "import json;import ibex; filename='package.json'; data=json.load(open(filename)); data['version']=ibex.__version__; json.dump(data, open(filename, 'w'), indent=2)"
TMPDIR=~/tmp/ibex-build npm run package
chmod 755 "$SCRIPT_DIR/frontend/out/ibex-linux-x64"
chmod -R 755 "$SCRIPT_DIR/frontend/out/ibex-linux-x64/ibex"