diff options
author | GitHub Actions | 2025-03-09 16:32:54 +0000 |
---|---|---|
committer | GitHub Actions | 2025-03-09 16:32:54 +0000 |
commit | 3a438cda13bc12b74c3eda5f92ac29dd8d2ed8b3 (patch) | |
tree | 5856581571b958260ffc245713af975939f016a6 /millennium.install | |
parent | 96dec82336f12c1f9a517426ed3d4d0732fa259d (diff) | |
download | aur-3a438cda13bc12b74c3eda5f92ac29dd8d2ed8b3.tar.gz |
Update AUR package
Diffstat (limited to 'millennium.install')
-rw-r--r-- | millennium.install | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/millennium.install b/millennium.install new file mode 100644 index 000000000000..0940600e6ed0 --- /dev/null +++ b/millennium.install @@ -0,0 +1,26 @@ +#!/bin/bash + +pre_install() { + echo -e "\e[1m\e[92m==>\e[0m \e[1mSetting permissions for $SUDO_USER...\e[0m" + sudo chown -R $SUDO_USER:$SUDO_USER /home/$SUDO_USER/.local/share/millennium +} + +post_install() { + echo -e "\e[1m\e[92m==>\e[0m \e[1mCreating virtual environment...\e[0m" + /opt/python-i686-3.11.8/bin/python3.11 -m venv "/home/$SUDO_USER/.local/share/millennium/lib/cache/" --system-site-packages --symlinks + + echo -e "\e[1m\e[92m==>\e[0m \e[1mPlease run 'millennium patch' setup Millennium.\e[0m" + echo -e "\e[1m\e[92m==>\e[0m \e[1mSee https://docs.steambrew.app/users/installing for help.\e[0m" +} + +post_remove() { + sudo rm -rf /home/$SUDO_USER/.local/share/millennium/lib/cache/ +} + +post_upgrade() { + echo -e "\e[1m\e[92m==>\e[0m \e[1mSetting permissions for $SUDO_USER...\e[0m" + sudo chown -R $SUDO_USER:$SUDO_USER /home/$SUDO_USER/.local/share/millennium + + echo -e "\e[1m\e[92m==>\e[0m \e[1mPlease run 'millennium patch' to update the Millennium's start script.\e[0m" + echo -e "\e[1m\e[92m==>\e[0m \e[1mSee https://docs.steambrew.app/users/installing for help.\e[0m" +}
\ No newline at end of file |