Fix component installation.

Add the ability to remove the appindicator3 component if needed.
This commit is contained in:
Captain ALM 2021-03-20 15:42:28 +00:00
parent 13d0ed4061
commit f2be7c2f2d
2 changed files with 5 additions and 2 deletions

View File

@ -36,8 +36,8 @@ fi
sudo chown root:root /etc/melon-vpn/client.cfg sudo chown root:root /etc/melon-vpn/client.cfg
# copy more files # copy more files
#sudo cp MelonVPNClient/bin/Release/appindicator3-sharp.dll /usr/lib/melon-vpn/ sudo cp MelonVPNClient/bin/Release/appindicator3-sharp.dll /usr/lib/melon-vpn/
# ^ Already installed by mono echo "[warning] appindicator3-sharp.dll has been copied as a component, if appindicator was installed through software run ./remove-appindicator3-component"
sudo cp MelonVPNClient/bin/Release/libnotify.net.dll /usr/lib/melon-vpn/ sudo cp MelonVPNClient/bin/Release/libnotify.net.dll /usr/lib/melon-vpn/
sudo cp MelonVPNClient/bin/Release/MelonVPNClient.exe /usr/lib/melon-vpn/ sudo cp MelonVPNClient/bin/Release/MelonVPNClient.exe /usr/lib/melon-vpn/
sudo cp MelonVPNClient/bin/Release/MelonVPNClient.exe.config /usr/lib/melon-vpn/ sudo cp MelonVPNClient/bin/Release/MelonVPNClient.exe.config /usr/lib/melon-vpn/

3
remove-appindicator3-component Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
echo "[info] Removing appindicator3-sharp.dll component"
sudo rm -f /usr/lib/melon-vpn/appindicator3-sharp.dll