-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.sh
executable file
·48 lines (39 loc) · 1.62 KB
/
setup.sh
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/env bash
# Tested OS: Arch Linux for ARM
# Requirements: node, npm, git, tmux, gpsd
# Clone the repository
# echo "Cloning the repository..."
# git clone https://github.com/jeebuscrossaint/aev-software ~/aev-software
# Symlink Hyprland and AGS configuration
echo "Symlinking Hyprland and AGS configuration..."
mv ~/.config/hypr ~/.config/hypr.bak
ln -sf ~/aev-software/src/hyprland/config/hypr ~/.config/hypr
mv ~/.config/ags ~/.config/ags.bak
ln -sf ~/aev-software/src/hyprland/config/ags ~/.config/ags
mv ~/.config/rofi ~/.config/rofi.bak
ln -sf ~/aev-software/src/hyprland/config/rofi ~/.config/rofi
mv ~/.config/Soundux ~/.config/Soundux.bak
ln -sf ~/aev-software/src/hyprland/config/Soundux ~/.config/Soundux
# Install frontend dependencies
echo "Installing frontend dependencies..."
cd ~/aev-software/src/frontend
npm install
# Install backend dependencies
echo "Installing backend dependencies..."
cd ~/aev-software/src/backend
npm install
# Install system dependencies
echo "Installing system dependencies (may require superuser priveleges)..."
sudo pacman -S npm hyprland gpsd node git tmux kitty
# Should prob install AUR packages here but doesn't really matter rn will do so later - Thandi
# Setup binaries
echo "Setting up binaries..."
ln -sf ~/aev-software/bin/start_aev_tmux /usr/bin/start_aev_tmux
# Make backup directory
echo "Making backup directory..."
mkdir ~/aev-software/backup
mkdir ~/backup
# Create config and data files
echo "Creating config and data files..."
cp ~/aev-software/src/backend/src/config.example.js ~/aev-software/src/backend/src/config.js
cp ~/aev-software/data.example.json ~/aev-software/data.json