Merge pull request #4 from Captain-ALM/master

Fix Status + Install components
This commit is contained in:
Sean Pointon 2021-03-20 16:37:06 +00:00
commit 97e29b19ab
3 changed files with 5 additions and 6 deletions

View File

@ -103,12 +103,7 @@ namespace MelonVPNCore
Client.SendDataMessage(DataMessage.Online, true); Client.SendDataMessage(DataMessage.Online, true);
currentVpnProcess.EnableRaisingEvents = true; currentVpnProcess.EnableRaisingEvents = true;
} }
else else { throw new InvalidOperationException("Client crashed!"); }
{
shouldBeRunning = false;
Client.SendDataMessage(DataMessage.Offline, true);
Client.SendCustomMessage(Messages.ClientListEmptyMsg, true);
}
} }
catch (Exception e) catch (Exception e)
{ {

View File

@ -37,6 +37,7 @@ 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/
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