Skip to content

Commit

Permalink
Merge pull request #2414 from AdmiringWorm/community-validation
Browse files Browse the repository at this point in the history
(maint) Add Chocolatey Community Validation Extension to build script
  • Loading branch information
JPRuskin authored Jan 19, 2024
2 parents b0dc770 + 8cc2f69 commit 97d9ef4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ install:
'wormies-au-helpers' = '0.4.1'
'chocolatey-core.extension' = '1.4.0'
'autohotkey.install' = '1.1.35.00'
'chocolatey-community-validation.extension' = '0.1.0'
}.GetEnumerator() | % {
if (!(Test-Path "${env:nupkg_cache_path}\$($_.Key).$($_.Value).nupkg")) { rm "${env:nupkg_cache_path}\$($_.Key).*.nupkg" ; iwr "https://chocolatey.org/api/v2/package/$($_.Key)/$($_.Value)" -OutFile "${env:nupkg_cache_path}\$($_.Key).$($_.Value).nupkg" }
if ($_.Key -eq 'chocolatey') { cup $_.Key --version $_.Value --source ${env:nupkg_cache_path} --allow-downgrade --pre }
Expand Down
2 changes: 1 addition & 1 deletion scripts/Update-IconUrl.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ if (!$GithubRepository) {
if ($remoteName) { $remoteUrl = . git remote get-url $remoteName }

if ($remoteUrl) {
$GithubRepository = ($remoteUrl -split '\/' | select -last 2) -replace '\.git$','' -join '/'
$GithubRepository = ($remoteUrl -split '[\/:]' | select -last 2) -replace '\.git$','' -join '/'
} else {
$GithubRepository = "USERNAME/REPOSITORY-NAME"
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/Update-PackageSourceUrl.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ if (!$GithubRepository) {
if ($remoteName) { $remoteUrl = . git remote get-url $remoteName }

if ($remoteUrl) {
$GithubRepository = ($remoteUrl -split '\/' | select -last 2) -replace '\.git$','' -join '/'
$GithubRepository = ($remoteUrl -split '[\/:]' | select -last 2) -replace '\.git$','' -join '/'
} else {
Write-Warning "Unable to get repository and user, setting dummy values..."
$GithubRepository = "USERNAME/REPOSITORY-NAME"
Expand Down

0 comments on commit 97d9ef4

Please sign in to comment.