Remove example client.ovpn from gs-warp and add automatic rootfs/prebuilt dependency checks to build scripts

This commit is contained in:
Luxferre committed 2026-11-02 07:58:28 +02:00
1 parent 2030201539
commit 49830e137d
13 files changed
+318 -415

No files matched your search

+10
View File
@@ -702,6 +702,11 @@ int privacy_run_main(int argc, char** argv) {
}
} else if (activeTab == PrivTab::GsWarp) {
if (sel == 0) {
if (!status.gswarpActive &&
(status.gswarpOvpn.empty() || ::access(status.gswarpOvpn.c_str(), R_OK) != 0)) {
showToast("Pick GS-Warp .ovpn file first");
return;
}
showToast(status.gswarpActive ? "Stopping GS-Warp..." : "Starting GS-Warp...");
runPrivacyCtlCapture({"gswarp", "toggle"});
refreshStatus();
@@ -726,6 +731,11 @@ int privacy_run_main(int argc, char** argv) {
}
} else if (activeTab == PrivTab::OpenVpn) {
if (sel == 0) {
if (!status.ovpnActive &&
(status.ovpnConfig.empty() || ::access(status.ovpnConfig.c_str(), R_OK) != 0)) {
showToast("Select .ovpn config file first");
return;
}
showToast(status.ovpnActive ? "Stopping OpenVPN..." : "Starting OpenVPN...");
runPrivacyCtlCapture({"openvpn", "toggle"});
refreshStatus();