X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=syncthing%2Finstall.ps1;h=af5f04a454ace03149320bd8fdf04773ef8d0b70;hb=91512157ab426c87e0a82b594620e90e324b23a3;hp=db8224ac141bfde64367f03eedcb8da37310cfb4;hpb=dbeef945f552f6554d78e644d3e0b5ca9f6603e1;p=webi-installers%2F.git diff --git a/syncthing/install.ps1 b/syncthing/install.ps1 index db8224a..af5f04a 100644 --- a/syncthing/install.ps1 +++ b/syncthing/install.ps1 @@ -15,10 +15,11 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\syncthing-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\syncthing-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" -$pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" +New-Item "$Env:USERPROFILE\Downloads\webi" -ItemType Directory -Force | out-null +$pkg_download = "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE" # Fetch archive -IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE")) +IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE")) { # TODO: arch detection echo "Downloading syncthing from $Env:WEBI_PKG_URL to $pkg_download" @@ -45,7 +46,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\syncthing*\syncthing.exe" -Destination "$pkg_src_bin" # Exit tmp