-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·24 lines (19 loc) · 964 Bytes
/
install.sh
File metadata and controls
executable file
·24 lines (19 loc) · 964 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
#!/bin/bash
[ -d "/opt/MsiPowerCenter" ] && sudo rm -r /opt/MsiPowerCenter
[ -f "/etc/modprobe.d/mpc-ec_sys.conf" ] || sudo cp conf/modprobe.d/mpc-ec_sys.conf /etc/modprobe.d/mpc-ec_sys.conf
[ -f "/etc/modules-load.d/mpc-ec_sys.conf" ] || sudo cp conf/modules-load.d/mpc-ec_sys.conf /etc/modules-load.d/mpc-ec_sys.conf
cd gui
flutter build linux --release
sudo cp -r build/linux/x64/release/bundle /opt/MsiPowerCenter/
cd ../backend
cargo build --release
sudo cp target/release/backend /opt/MsiPowerCenter/
cd ..
sudo cp -r icon.png /opt/MsiPowerCenter/
sudo cp -r profiles /opt/MsiPowerCenter/profiles
[ -d "/opt/MsiPowerCenter/pipes" ] || sudo mkdir /opt/MsiPowerCenter/pipes
sudo cp conf/msipowercenter.service /etc/systemd/system/
sudo systemctl enable msipowercenter.service --now
cp conf/msipowercenter.desktop /home/$USER/.local/share/applications/msipowercenter.desktop
echo "MsiPowerCenter intalled successfully"
echo "Reboot your computer to use it"