From 12991439fadd1ef14e6aa297cec4a99890565c09 Mon Sep 17 00:00:00 2001 From: Michael Pfaff Date: Fri, 10 Jun 2022 13:16:30 -0400 Subject: [PATCH] Install Psiphon3 VPN --- src/main.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/main.rs b/src/main.rs index 739b54c..370949b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -46,6 +46,9 @@ async fn main() -> Result<()> { let minecraft_dir = swtools_path().join("minecraft"); + let psiphon_dir = swtools_path().join("psiphon"); + let psiphon_bin = psiphon_dir.join("psiphon3.exe"); + let utilities = [ Pipeline::new( "Install Notepad++", @@ -94,6 +97,24 @@ async fn main() -> Result<()> { }, ], ), + Pipeline::new( + "Install Psiphon VPN", + vec![ + Step::DownloadFile { + file: psiphon_bin.as_path().into(), + res: RemoteResource::Url( + "https://s3.amazonaws.com/f58p-mqce-k1yj/psiphon3.exe", + ), + }, + Step::CreateShortcut { + target: ShortcutTarget::Executable { + file: psiphon_bin.as_path().into(), + args: "", + }, + file: desktop_path().join("Psiphon3.lnk").into(), + }, + ], + ), Pipeline::new( "Install Minecraft (Java Edition)", vec![