diff --git a/release/linux/deb/prepare-rules.sh b/release/linux/deb/prepare-rules.sh index 4e8a6756..ab38a1bf 100755 --- a/release/linux/deb/prepare-rules.sh +++ b/release/linux/deb/prepare-rules.sh @@ -44,7 +44,7 @@ sqlcmd (${CLI_VERSION}-${CLI_VERSION_REVISION:=1}) stable; urgency=low * Debian package release. - -- sqlcmd tools team $(date -R) + -- sqlcmd tools team $(date -R) EOM diff --git a/release/windows/choco/sqlcmd.nuspec b/release/windows/choco/sqlcmd.nuspec new file mode 100644 index 00000000..a5e1682d --- /dev/null +++ b/release/windows/choco/sqlcmd.nuspec @@ -0,0 +1,26 @@ + + + + + sqlcmd + 0.8.1 + sqlcmd (Install) + Microsoft + https://docs.microsoft.com/en-us/sql/tools/go-sqlcmd-utility + https://github.com/microsoft/go-sqlcmd/blob/main/release/windows/msi/resources/go-sqlcmd_256.png + Copyright (c) Microsoft Corporation + https://github.com/microsoft/go-sqlcmd/blob/main/LICENSE + false + https://github.com/microsoft/go-sqlcmd + https://github.com/microsoft/go-sqlcmd/tree/main/release/windows/choco + https://docs.microsoft.com/en-us/sql/tools/go-sqlcmd-utility + https://github.com/microsoft/go-sqlcmd/issues + sqlcmd mssql sqlserver + sqlcmd CLI for Microsoft SQL Server and Azure SQL + sqlcmd is a multi-platform command line experience for Microsoft SQL Server and Azure SQL + https://github.com/microsoft/go-sqlcmd/releases/tag/v0.8.1 + + + + + diff --git a/release/windows/choco/tools/LICENSE.txt b/release/windows/choco/tools/LICENSE.txt new file mode 100644 index 00000000..9b20e534 --- /dev/null +++ b/release/windows/choco/tools/LICENSE.txt @@ -0,0 +1,25 @@ +From: https://github.com/microsoft/go-sqlcmd/blob/main/LICENSE + +LICENSE + +MIT License + +Copyright (c) Microsoft Corporation. + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE diff --git a/release/windows/choco/tools/VERIFICATION.txt b/release/windows/choco/tools/VERIFICATION.txt new file mode 100644 index 00000000..f4fe34a7 --- /dev/null +++ b/release/windows/choco/tools/VERIFICATION.txt @@ -0,0 +1,17 @@ + +Note: Include this file if including binaries you have the right to distribute. +Otherwise delete. this file. If you are the software author, you can change this +mention you are the author of the software. + +===DELETE ABOVE THIS LINE AND THIS LINE=== + +VERIFICATION +Verification is intended to assist the Chocolatey moderators and community +in verifying that this package's contents are trustworthy. + +Download .msi from Microsoft Download Center +https://download.microsoft.com/download/d/4/4/d4403a51-2ab7-4ea8-b850-d2710c5e1323/sqlcmd_0.8.1-1.msi + +Run checksum -t sha256 -f sqlcmd_0.8.1-1.msi + +We are the software vendor (Microsoft) \ No newline at end of file diff --git a/release/windows/choco/tools/chocolateyinstall.ps1 b/release/windows/choco/tools/chocolateyinstall.ps1 new file mode 100644 index 00000000..168fa5ff --- /dev/null +++ b/release/windows/choco/tools/chocolateyinstall.ps1 @@ -0,0 +1,45 @@ +$ErrorActionPreference = 'Stop'; + +$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' + +$packageArgs = @{ + packageName = $env:ChocolateyPackageName + unzipLocation = $toolsDir + fileType = 'MSI' + url = $url + url64bit = $url64 + + softwareName = 'sqlcmd*' + + checksum = '{{Checksum}}' + checksumType = '{{ChecksumType}}' + checksum64 = '03587762932D5A66ACFE15D306FE14645D53BC61162B4DA0D9AF29B4A8A1550D' + checksumType64= 'sha256' + + silentArgs = "/qn /norestart /l*v `"$($env:TEMP)\$($packageName).$($env:chocolateyPackageVersion).MsiInstall.log`"" + validExitCodes= @(0, 3010, 1641) +} + +Install-ChocolateyPackage @packageArgs + + + + + + + + + + + + + + + + + + + +