Skip to content

Instantly share code, notes, and snippets.

@rismoney
Created October 17, 2017 15:40
Show Gist options
  • Save rismoney/ecdfe069c121c7487672de98e8b11d5c to your computer and use it in GitHub Desktop.
Save rismoney/ecdfe069c121c7487672de98e8b11d5c to your computer and use it in GitHub Desktop.
PS D:\gitrepos\chocopackages> .\update_all.ps1
Updating 1 automatic packages at 2017-10-17 10:50:05
Push is disabled
WARNING: Import failed for 'C:\Users\dao.rich\AppData\Local\Temp\chocolatey\au\chocolatey\extensions\chocolatey\chocolatey.licensed.dll'. If it depends on a newer version of the .NET framework, please make sure you are using the built-in PowerShell Host. Err
not load file or assembly 'choco, Version=0.10.4.0, Culture=neutral, PublicKeyToken=79d02ea9cad655eb' or one of its dependencies. The system cannot find the file specified.'
notepadplusplus is updated to 7.5.1
Running Report
Saving markdown report: D:\gitrepos\chocopackages\Update-AUPackages.md
Running History
Saving history to D:\gitrepos\chocopackages\Update-History.md
Running Git
No package updated, skipping
Running RunInfo
Excluded: Git.Password
File: D:\gitrepos\chocopackages\update_info.xml
Finished 1 packages after .7 minutes.
1 updated, 0 pushed, 0 ignored
0 errors - 0 update, 0 push.
PS D:\gitrepos\chocopackages> git status
On branch npp
Your branch and 'rsiegel/npp' have diverged,
and have 5 and 1 different commits each, respectively.
(use "git pull" to merge the remote branch into yours)
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
modified: notepadplusplus/notepadplusplus.nuspec
modified: notepadplusplus/tools/chocolateyInstall.ps1
Untracked files:
(use "git add <file>..." to include in what will be committed)
Update-AUPackages.md
Update-History.md
notepadplusplus/notepadplusplus.7.5.1.nupkg
update_info.xml
no changes added to commit (use "git add" and/or "git commit -a")
PS D:\gitrepos\chocopackages> $info
RunspaceId : b264b9a5-e573-408a-bbf0-9d8e1b4a7d3f
Path : D:\gitrepos\chocopackages\notepadplusplus
Name : notepadplusplus
Updated : True
Pushed : False
RemoteVersion : 7.5.1
NuspecVersion : 7.3.3
Result : {notepadplusplus - checking updates using au version 2017.8.30, URL check, https://notepad-plus-plus.org/repository/7.x/7.5.1/npp.7.5.1.Installer.exe, nuspec version: 7.3.3...}
Error :
NuspecPath : D:\gitrepos\chocopackages\notepadplusplus\notepadplusplus.nuspec
NuspecXml : #document
Ignored : False
IgnoreMessage :
PS D:\gitrepos\chocopackages> $info.Result
notepadplusplus - checking updates using au version 2017.8.30
URL check
https://notepad-plus-plus.org/repository/7.x/7.5.1/npp.7.5.1.Installer.exe
nuspec version: 7.3.3
remote version: 7.5.1
New version is available
Automatic checksum started
Package downloaded and hash calculated for 64 bit version
Updating files
$Latest data:
Checksum64 (String) 28cba6f7775d7b556efab8d5d6a399d86ff851f56b1d7b5d4a723d6554c6e753
ChecksumType64 (String) sha256
FileType (String) exe
internalsite (String) https://chocopackages.3rdpoint.corp/notepadplusplus/npp.7.5.1.Installer.exe
NuspecVersion (String) 7.3.3
PackageName (String) notepadplusplus
URL64 (String) https://notepad-plus-plus.org/repository/7.x/7.5.1/npp.7.5.1.Installer.exe
Version (String) 7.5.1
notepadplusplus.nuspec
setting id: notepadplusplus
updating version: 7.3.3 -> 7.5.1
tools\chocolateyInstall.ps1
(^\s*url64bit\s*=\s*)('.*') = $1'https://chocopackages.3rdpoint.corp/notepadplusplus/npp.7.5.1.Installer.exe'
(^\s*checksum64\s*=\s*)('.*') = $1'28cba6f7775d7b556efab8d5d6a399d86ff851f56b1d7b5d4a723d6554c6e753'
Attempting to build package from 'notepadplusplus.nuspec'.
Successfully created package 'D:\gitrepos\chocopackages\notepadplusplus\notepadplusplus.7.5.1.nupkg'
Package updated
PS D:\gitrepos\chocopackages> $info.Result.pushed
PS D:\gitrepos\chocopackages> import-module au -Force -PassThru
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 2017.8.30 au {Get-AUPackages, Get-RemoteChecksum, Get-RemoteFiles, Push-Package...}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment