Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Install-ChocolateyPackage #130

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion automatic/ssis-vs2022/ssis-vs2022.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ This package has the following additional requirements:
<tags>microsoft integration integration-services sql ssis ssis-vs2022 ssdt sql-server data-tools</tags>
<dependencies>
<dependency id="DotNet4.6-TargetPack" />
<dependency id="chocolatey-visualstudio.extension" version="1.11.0" />
</dependencies>
</metadata>
<files>
Expand Down
17 changes: 12 additions & 5 deletions automatic/ssis-vs2022/tools/ChocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
$ErrorActionPreference = 'Stop';

Install-VisualStudioVsixExtension `
-PackageName 'ssis-vs2022'
-VsixUrl 'https://marketplace.visualstudio.com/_apis/public/gallery/publishers/SSIS/vsextensions/MicrosoftDataToolsIntegrationServices/1.4/vspackage'
-Checksum 'bc6ccc273d7695d2fe2b42c4c0c16b3a59a3f6212807604a7f93ae5733527a49'
-ChecksumType 'sha256'
$packageArgs = @{
packageName = $env:ChocolateyPackageName
softwareName = 'Microsoft.DataTools.IntegrationServices*'
fileType = 'exe'
silentArgs = "/quiet /log `"$env:TEMP\$env:ChocolateyPackageName.$env:ChocolateyPackageVersion.log`""
validExitCodes= @(0)
url = "https://marketplace.visualstudio.com/_apis/public/gallery/publishers/SSIS/vsextensions/MicrosoftDataToolsIntegrationServices/1.4/vspackage"
checksum = "bc6ccc273d7695d2fe2b42c4c0c16b3a59a3f6212807604a7f93ae5733527a49"
checksumType = "sha256"
}

Install-ChocolateyPackage @packageArgs
6 changes: 3 additions & 3 deletions automatic/ssis-vs2022/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ function global:au_BeforeUpdate {
function global:au_SearchReplace {
@{
'tools\ChocolateyInstall.ps1' = @{
"(\s*\-VsixUrl\s)'([^']+)'" = "`$1'$($Latest.URL32)'"
"(\s*\-Checksum\s)'([^']+)'" = "`$1'$($Latest.Checksum)'"
"(\s*\-ChecksumType\s)'([^']+)'" = "`$1'$($Latest.ChecksumType)'"
"(\s*url\s*=\s*)`"([^*]+)`"" = "`$1`"$($Latest.URL32)`""
"(\s*checksum\s*=\s*)`"([^*]+)`"" = "`$1`"$($Latest.Checksum)`""
"(\s*checksumType\s*=\s*)`"([^*]+)`"" = "`$1`"$($Latest.ChecksumType)`""
}
}
}
Expand Down
Loading