From 4a94eb209d7b245df3e266c186298479ebd7633d Mon Sep 17 00:00:00 2001 From: "Kim J. Nordmo" Date: Sun, 3 Dec 2017 19:31:01 +0100 Subject: [PATCH] (transifex-client) Changed to include binary as tx.exe --- .../transifex-client/tools/chocolateyInstall.ps1 | 15 --------------- automatic/transifex-client/update.ps1 | 7 ++----- 2 files changed, 2 insertions(+), 20 deletions(-) delete mode 100644 automatic/transifex-client/tools/chocolateyInstall.ps1 diff --git a/automatic/transifex-client/tools/chocolateyInstall.ps1 b/automatic/transifex-client/tools/chocolateyInstall.ps1 deleted file mode 100644 index 17816fc3d20..00000000000 --- a/automatic/transifex-client/tools/chocolateyInstall.ps1 +++ /dev/null @@ -1,15 +0,0 @@ -$ErrorActionPreference = 'Stop' - -$toolsPath = Split-Path -parent $MyInvocation.MyCommand.Definition -$64bitExec = "$toolsPath\tx.py35.x64.exe" -$destination = "$toolsPath\tx.exe" - -if (Test-Path $destination) { Remove-Item -Force $destination } - -if ((Get-ProcessorBits 32) -or ($env:chocolateyForceX86 -eq $true)) { - throw "32bit installation of the transifex-client package is not supported." -} -else { - Move-Item -Force $64bitExec $destination - Remove-Item -Force $32bitExec -} diff --git a/automatic/transifex-client/update.ps1 b/automatic/transifex-client/update.ps1 index c6c50d74c03..a85d91dd999 100644 --- a/automatic/transifex-client/update.ps1 +++ b/automatic/transifex-client/update.ps1 @@ -3,19 +3,16 @@ Import-Module "$PSScriptRoot\..\..\scripts\au_extensions.psm1" $releases = 'https://github.com/transifex/transifex-client/releases/latest' -function global:au_BeforeUpdate { Get-RemoteFiles -Purge -NoSuffix } +function global:au_BeforeUpdate { Get-RemoteFiles -Purge -NoSuffix -FileNameBase tx } function global:au_SearchReplace { @{ - ".\legal\VERIFICATION.txt" = @{ + ".\legal\VERIFICATION.txt" = @{ "(?i)(^\s*location on\:?\s*)\<.*\>" = "`${1}<$releases>" "(?i)(\s*64\-Bit Software.*)\<.*\>" = "`${1}<$($Latest.URL64)>" "(?i)(^\s*checksum\s*type\:).*" = "`${1} $($Latest.ChecksumType32)" "(?i)(^\s*checksum64\:).*" = "`${1} $($Latest.Checksum64)" } - ".\tools\chocolateyInstall.ps1" = @{ - "(?i)(^\s*[$]64bitExec\s*=\s*`"[$]toolsPath\\).*" = "`${1}$($Latest.FileName64)`"" - } ".\$($Latest.PackageName).nuspec" = @{ "(?i)(^\s*\).*(\<\/releaseNotes\>)" = "`${1}$($Latest.ReleaseNotes)`${2}" }