Skip to content

Commit

Permalink
clean and no downloads => d*
Browse files Browse the repository at this point in the history
  • Loading branch information
tunisiano187 committed Sep 20, 2024
1 parent 7e919c1 commit 716a0be
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
5 changes: 4 additions & 1 deletion automatic/cryptsync/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ function global:au_SearchReplace {
}
}

function global:au_BeforeUpdate {
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/stefankueng/CryptSync/master/LICENSE" -OutFile ".\tools\LICENSE.txt"
}

function global:au_AfterUpdate($Package) {
Invoke-VirusTotalScan $Package
}
Expand All @@ -36,7 +40,6 @@ function global:au_GetLatest {
$version = "$version-pre$($date)"
}
}
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/stefankueng/CryptSync/master/LICENSE" -OutFile ".\tools\LICENSE.txt"

$Latest = @{ URL32 = $url32; URL64 = $url64; Version = $version }
return $Latest
Expand Down
6 changes: 0 additions & 6 deletions automatic/csvfileview/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ $url32 = 'https://www.nirsoft.net/utils/csvfileview.zip'


Add-Type -AssemblyName System.IO.Compression.FileSystem
function Unzip
{
param([string]$zipfile, [string]$outpath)
[System.IO.Compression.ZipFile]::ExtractToDirectory($zipfile, $outpath)
}

function global:au_SearchReplace {
@{
'tools/chocolateyInstall.ps1' = @{
Expand Down
10 changes: 5 additions & 5 deletions automatic/dexpot/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ function global:au_AfterUpdate($Package) {
}

function global:au_GetLatest {
$File = Join-Path $env:TEMP "dexpot.exe"
$url32 = "https://dexpot.de/$($((Invoke-WebRequest -Uri $release -UseBasicParsing).Links | Where-Object {$_ -match 'exe'}).outerHTML.split('"')[1])"
Invoke-WebRequest -Uri $url32 -OutFile $File
$version=[System.Diagnostics.FileVersionInfo]::GetVersionInfo($File).FileVersion
if($version -eq "1.6.14") { $version="1.6.14.1" } #Solve previously rejected
$page = Invoke-WebRequest -Uri "https://dexpot.de/?id=download" -UseBasicParsing
$regexPattern = '<li>(\d+\.\d+\.\d+)\s+Build\s+(\d+)'
$versionMatch = $page.Content | Select-String -Pattern $regexPattern -AllMatches
$match = $versionMatch.Matches[0]
$version = "$($match.Groups[1].Value).$($match.Groups[2].Value)"

$Latest = @{ URL32 = $url32; Version = $version }
return $Latest
Expand Down

0 comments on commit 716a0be

Please sign in to comment.