forked from zeropingheroes/lancache-autofill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·24 lines (17 loc) · 868 Bytes
/
install.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
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
GREEN='\033[0;32m'
BLACK='\033[0m'
printf "${GREEN}Installing apt package dependencies${BLACK}\n"
sudo apt update -y
sudo apt install -y lib32gcc1 lib32stdc++6 lib32tinfo5 lib32ncurses5 composer expect zip unzip \
php7.2-cli php7.2-mbstring php7.2-sqlite \php7.2-bcmath php7.2-dom
printf "${GREEN}Installing PHP dependencies with Composer${BLACK}\n"
cd $SCRIPT_DIR && composer install
printf "${GREEN}Creating database file${BLACK}\n"
cd $SCRIPT_DIR && touch "database.sqlite"
printf "${GREEN}Creating your environment file${BLACK}\n"
cd $SCRIPT_DIR && cp ".env.example" ".env"
cd $SCRIPT_DIR && ./lancache-autofill app:initialise-database --yes
cd $SCRIPT_DIR && ./lancache-autofill steam:update-app-list
cd $SCRIPT_DIR && ./lancache-autofill steam:initialise --yes