2023-03-13 16:18:19 +00:00
|
|
|
#!/bin/bash
|
|
|
|
source distrohopper.conf
|
|
|
|
|
|
|
|
# distrohopper first run
|
|
|
|
CONFIG_DIR="$HOME/.config/distrohopper"
|
|
|
|
|
|
|
|
# create default dirs
|
|
|
|
rm -r "$CONFIG_DIR"
|
2023-03-18 13:53:27 +00:00
|
|
|
mkdir -p "$CONFIG_DIR"
|
|
|
|
sudo mkdir -p "$ICON_DIR"
|
2023-03-13 16:18:19 +00:00
|
|
|
|
|
|
|
# copy everything to config dir
|
|
|
|
cp -r * "$CONFIG_DIR/"
|
2023-03-18 13:53:27 +00:00
|
|
|
# move icons
|
|
|
|
sudo mv "$CONFIG_DIR/icons/"* "$ICON_DIR/"
|
|
|
|
rm -r "$CONFIG_DIR/icons"
|
2023-03-13 16:18:19 +00:00
|
|
|
# install prerequisities (Void linux)
|
|
|
|
|
|
|
|
# Install distrohopper to all users
|
2023-03-18 13:53:27 +00:00
|
|
|
sudo cp ../dh ../quickget ../quickemu ../macrecovery ../windowskey /usr/bin/
|
2023-03-13 16:18:19 +00:00
|
|
|
|
|
|
|
# Renew VMs
|
|
|
|
"$CONFIG_DIR/renew.sh"
|
2023-03-18 17:13:26 +00:00
|
|
|
|
2023-03-13 16:18:19 +00:00
|
|
|
# Set VMs dir
|
2023-03-18 17:13:26 +00:00
|
|
|
"$CONFIG_DIR/set_dir.sh"
|
2023-03-13 16:18:19 +00:00
|
|
|
|
|
|
|
echo "Done"
|