majkinetor / au

Chocolatey Automatic Package Updater Module
GNU General Public License v2.0
227 stars 71 forks source link

Whatif Not Wokring in PWSH #264

Closed TheITRx closed 2 years ago

TheITRx commented 2 years ago

PWSH Version: 7.2.4

I then see the chocolateyinstall.ps1 file with udpated URLS.

Works alright on Powershell 5.x.

WARNING: WhatIf passed - package files will not be changed
prey - checking updates using au version 0.0
URL check
https://github.com/prey/prey-node-client/releases/download/v1.10.8/prey-windows-1.10.8-x64.msi
https://github.com/prey/prey-node-client/releases/download/v1.10.8/prey-windows-1.10.8-x86.msi
nuspec version: 1.6.6
remote version: 1.10.8
New version is available
Automatic checksum started
WARNING: Import failed for Chocolatey Licensed Extension. Error: 'Could not load file or assembly 'chocolatey, Version=1.0.0
0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb'. The system cannot find the file specified.'
Package downloaded and hash calculated for 32 bit version
Package downloaded and hash calculated for 64 bit version
Updating files
$Latest data:
Checksum32                (String)     173a93e1b9119b9c745a531a8aa7fd88c468bafe0482213288064e8d4b3b6a20
Checksum64                (String)     f361965f86d49634c73722bda974d8cbc625a7a02735499b898e22a4b484f9a4
ChecksumType32            (String)     sha256
ChecksumType64            (String)     sha256
FileType                  (String)     msi
NuspecVersion             (String)     1.6.6
PackageName               (String)     prey
URL32                     (String)     https://github.com/prey/prey-node-client/releases/download/v1.10.8/prey-windows-1
10.8-x86.msi
URL64                     (String)     https://github.com/prey/prey-node-client/releases/download/v1.10.8/prey-windows-1
10.8-x64.msi
Version                   (String)     1.10.8
prey.nuspec
setting id: prey
updating version: 1.6.6 -> 1.10.8
.\tools\chocolateyInstall.ps1
(?i)(^\s*url64bit\s*=\s*)('.*')     = $1'https://github.com/prey/prey-node-client/releases/download/v1.10.8/prey-windows
1.10.8-x64.msi'
(?i)(^\s*url\s*=\s*)('.*')          = $1'https://github.com/prey/prey-node-client/releases/download/v1.10.8/prey-windows
1.10.8-x86.msi'
(?i)(^\s*checksum64\s*=\s*)('.*')   = $1'f361965f86d49634c73722bda974d8cbc625a7a02735499b898e22a4b484f9a4'
(?i)(^\s*checksum\s*=\s*)('.*')     = $1'173a93e1b9119b9c745a531a8aa7fd88c468bafe0482213288064e8d4b3b6a20'
Attempting to build package from 'prey.nuspec'.
Successfully created package 'D:\MyStuff\GitRoot\SS-Chocolatey-Packages\automatic\prey\prey.1.10.8.nupkg'
WARNING: Package restored and updates saved to: C:\Users\josabellano\AppData\Local\Temp\au\prey\_output

Package updated

Path          : D:\MyStuff\GitRoot\SS-Chocolatey-Packages\automatic\prey
Name          : prey
Updated       : True
Pushed        : False
RemoteVersion : 1.10.8
NuspecVersion : 1.6.6
Result        : {prey - checking updates using au version 0.0, , URL check,   htt
ps://github.com/prey/prey-node-client/releases/download/v1.10.8/p
rey-windows-1.10.8-x64.msi…}
Error         :
NuspecPath    : D:\MyStuff\GitRoot\SS-Chocolatey-Packages\automatic\prey\prey.nus
pec
NuspecXml     : #document
Ignored       : False
IgnoreMessage :
StreamsPath   : D:\MyStuff\GitRoot\SS-Chocolatey-Packages\automatic\prey\prey.jso
n
Streams       :                                                                                                             

Package updated

Path          : D:\MyStuff\GitRoot\SS-Chocolatey-Packages\automatic\prey
Name          : prey
Updated       : True
Pushed        : False
RemoteVersion : 1.10.8
NuspecVersion : 1.6.6
Result        : {prey - checking updates using au version 0.0, , URL check,   htt
ps://github.com/prey/prey-node-client/releases/download/v1.10.8/p
rey-windows-1.10.8-x64.msi…}
Error         :
NuspecPath    : D:\MyStuff\GitRoot\SS-Chocolatey-Packages\automatic\prey\prey.nus
pec
NuspecXml     : #document
Ignored       : False
IgnoreMessage :
StreamsPath   : D:\MyStuff\GitRoot\SS-Chocolatey-Packages\automatic\prey\prey.jso
n
Streams       :