diff options
author | Vendicated | 2022-11-29 20:28:58 +0100 |
---|---|---|
committer | Vendicated | 2022-11-29 20:28:58 +0100 |
commit | 4141103bcf1209e8488da77ec4559de02b328c15 (patch) | |
tree | fb5b3c9538865ffc5c148b19739ff48525a26503 /notes.install | |
parent | 0ea859b6a177ac836e8e6dcece161b8cfeee5b2f (diff) | |
download | aur-4141103bcf1209e8488da77ec4559de02b328c15.tar.gz |
Easy custom flags & electron version
Diffstat (limited to 'notes.install')
-rwxr-xr-x | notes.install | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/notes.install b/notes.install new file mode 100755 index 000000000000..46b9f39893b8 --- /dev/null +++ b/notes.install @@ -0,0 +1,22 @@ +BOLD='\033[1m' +RESET='\033[0m' + +post_install() { + echo + printf "${BOLD}ArmCord successfully installed!${RESET}\n" + echo + printf "By default, ArmCord will run with ${BOLD}/usr/bin/electron${RESET}:\n" + # --no-sandbox flag is needed as otherwise electron segfaults due to being ran as root + # why does this script run as root anyway???????? + # doesn't that mean packages can just nuke your system here, making the entire "makepkg must not be run as root" + # stuff senseless? + electron --version --no-sandbox + echo + echo "You may use a custom electron, for example a more recent version." + printf "To do so, simply change the ${BOLD}electron${RESET} variable in ${BOLD}/usr/bin/armcord${RESET}\n" + echo "using your favorite text editor!" + echo + printf "You can also pass custom flags to ArmCord by adding them to ${BOLD}${XDG_CONFIG_HOME:-~/.config}/armcord-flags.conf${RESET}\n" + echo "See https://www.electronjs.org/docs/latest/api/command-line-switches#electron-cli-flags" + echo +} |