Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
5 changes: 2 additions & 3 deletions release/windows/choco/sqlcmd.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>sqlcmd</id>
<version>0.8.1</version>
<version>0.15.0</version>
Copy link
Collaborator

@shueybubbles shueybubbles Mar 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

0.15.0<

can we change the pipeline that packs the package get the version from the current tag instead of hard coding it here? Then line 6 and line 20 can reference a variable like $version$ and the pipeline will pass version as a parameter to the pack.

<title>sqlcmd (Install)</title>
<authors>Microsoft</authors>
<projectUrl>https://docs.microsoft.com/sql/tools/go-sqlcmd-utility</projectUrl>
<iconUrl>https://github.com/microsoft/go-sqlcmd/blob/main/release/windows/msi/resources/go-sqlcmd_256.png</iconUrl>
<copyright>Copyright (c) Microsoft Corporation</copyright>
<licenseUrl>https://github.com/microsoft/go-sqlcmd/blob/main/LICENSE</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
Expand All @@ -18,7 +17,7 @@
<tags>sqlcmd mssql sqlserver</tags>
<summary>sqlcmd CLI for Microsoft SQL Server and Azure SQL</summary>
<description>sqlcmd is a multi-platform command line experience for Microsoft SQL Server and Azure SQL</description>
<releaseNotes>https://github.com/microsoft/go-sqlcmd/releases/tag/v0.8.1</releaseNotes>
<releaseNotes>https://github.com/microsoft/go-sqlcmd/releases/tag/v0.15.0</releaseNotes>
</metadata>
<files>
<file src="tools\**" target="tools" />
Expand Down
25 changes: 0 additions & 25 deletions release/windows/choco/tools/LICENSE.txt

This file was deleted.

10 changes: 0 additions & 10 deletions release/windows/choco/tools/VERIFICATION.txt

This file was deleted.

8 changes: 2 additions & 6 deletions release/windows/choco/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,16 @@

$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$url = '{{DownloadUrl}}'
$url64 = 'https://download.microsoft.com/download/d/4/4/d4403a51-2ab7-4ea8-b850-d2710c5e1323/sqlcmd_0.8.1-1.msi'
$url64 = 'https://github.com/microsoft/go-sqlcmd/releases/download/v0.15.0/sqlcmd_0.15.0-1.msi'

$packageArgs = @{
packageName = $env:ChocolateyPackageName
unzipLocation = $toolsDir
fileType = 'MSI'
url = $url
url64bit = $url64

softwareName = 'sqlcmd*'

checksum = '{{Checksum}}'
checksumType = '{{ChecksumType}}'
checksum64 = '03587762932D5A66ACFE15D306FE14645D53BC61162B4DA0D9AF29B4A8A1550D'
checksum64 = '3425f48d4933eeb9c5ecf89afa5d30c8829892c4d3bbd58c9eeeb3200ed925f2'
checksumType64= 'sha256'

silentArgs = "/qn /norestart /l*v `"$($env:TEMP)\$($packageName).$($env:chocolateyPackageVersion).MsiInstall.log`""
Expand Down