X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=fd%2Finstall.ps1;h=caab135cd2eb0d7e31225c30550add3d3045da55;hb=91512157ab426c87e0a82b594620e90e324b23a3;hp=5b79cc91f001e2bda39d305486e105615ba83e22;hpb=46445e9382905a52e770d44191235be179616049;p=webi-installers%2F.git diff --git a/fd/install.ps1 b/fd/install.ps1 index 5b79cc9..caab135 100644 --- a/fd/install.ps1 +++ b/fd/install.ps1 @@ -3,12 +3,12 @@ $VERNAME = "$Env:PKG_NAME-v$Env:WEBI_VERSION.exe" $EXENAME = "$Env:PKG_NAME.exe" # 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 $Env:PKG_NAME from $Env:WEBI_PKG_URL to $Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" - & curl.exe -A "$Env:WEBI_UA" -fsSL "$Env:WEBI_PKG_URL" -o "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE.part" - & move "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE.part" "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" + echo "Downloading $Env:PKG_NAME from $Env:WEBI_PKG_URL to $Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE" + & curl.exe -A "$Env:WEBI_UA" -fsSL "$Env:WEBI_PKG_URL" -o "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE.part" + & move "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE.part" "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE" } IF (!(Test-Path -Path "$Env:USERPROFILE\.local\xbin\$VERNAME")) @@ -24,8 +24,8 @@ IF (!(Test-Path -Path "$Env:USERPROFILE\.local\xbin\$VERNAME")) # Unpack archive # Windows BSD-tar handles zip. Imagine that. - echo "Unpacking $Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" - & tar xf "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" + echo "Unpacking $Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE" + & tar xf "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE" # Move single binary into root of temporary folder & move "$EXENAME" "$VERNAME"