Skip to content

Commit

Permalink
AU: 1 updated - Cygwin
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolatey committed Feb 2, 2018
1 parent 18e0191 commit c41c5ec
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
9 changes: 5 additions & 4 deletions automatic/cygwin/cygwin.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<metadata>
<id>Cygwin</id>
<title>Cygwin</title>
<version>2.9.0</version>
<version>2.10.0</version>
<authors>Red Hat, Inc.</authors>
<owners>Chocolatey</owners>
<summary>A Linux environment for Windows.</summary>
<!-- Do not touch the description here in the nuspec file. Description is imported during update from the Readme.md file -->
<description>
<description><![CDATA[
Cygwin is a collection of tools which provide a Linux look and feel environment for Windows. Cygwin is also a DLL (cygwin1.dll) which acts as a Linux API layer providing substantial Linux API functionality.
## Package parameters
Expand All @@ -26,7 +26,8 @@ Cygwin is a collection of tools which provide a Linux look and feel environment
- This package provides only the last version of Cygwin.
- For better functionality, it is recommended you install the [cyg-get package](/packages/cyg-get). Use the cyg-get utility to add packages to your Cygwin installation.
</description>
]]></description>
<projectUrl>https://cygwin.com/</projectUrl>
<docsUrl>https://cygwin.com/docs.html</docsUrl>
<tags>Cygwin foss cli unix posix linux</tags>
Expand All @@ -36,7 +37,7 @@ Cygwin is a collection of tools which provide a Linux look and feel environment
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>https://cdn.rawgit.com/chocolatey/chocolatey-coreteampackages/c8d48758cdc18d43e6c1525824720377c8b9ba24/icons/Cygwin.png</iconUrl>
<releaseNotes>
[Software Changelog](https://cygwin.com/ml/cygwin-announce/2017-09/msg00056.html)
[Software Changelog](https://cygwin.com/ml/cygwin-announce/2018-02/msg00002.html)
[Package Changelog](https://github.com/chocolatey/chocolatey-coreteampackages/blob/master/automatic/cygwin/Changelog.md)
</releaseNotes>
<mailingListUrl>https://cygwin.com/lists.html</mailingListUrl>
Expand Down
4 changes: 2 additions & 2 deletions automatic/cygwin/legal/VERIFICATION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ and can be verified by doing the following:
3. The checksums should match the following:

checksum type: sha256
checksum32: 10B368DC6D6CC6ED662ECB2822445DDEAC7939D6BC80D152EEE6CC6301A444CF
checksum64: 062AB45437FED70071DD4CF1C9D6C584F3EFBB3D64D60E4CFC4E74FD6B6DE214
checksum32: 2922236D6F3895A3F8FB9F746B67C46BABE5FA36BEEF236E016709FEC88DE805
checksum64: FA6215A71B1D2C817BB7331C245D61559BE6E0047F384718B7C306424A408CFD

The file 'LICENSE.txt' has been obtained from <https://cygwin.com/COPYING>
4 changes: 2 additions & 2 deletions automatic/cygwin/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ Install-ChocolateyInstallPackage @packageArgs
Install-BinFile -Name "Cygwin" -Path "$cygwin_root\Cygwin.bat"

Write-Host "Copying cygwin package manager (setup) to $cygwin_root"
$setup_path = if (Get-ProcessorBits 32 -or $env:ChocolateyForceX86) { $packageArgs.file } else { $packageArgs.file64 }
mv $setup_path $cygwin_root\cygwinsetup.exe -Force
$setup_path = if (Get-OSArchitectureWidth 32 -or $env:ChocolateyForceX86) { $packageArgs.file } else { $packageArgs.file64 }
Move-Item $setup_path $cygwin_root\cygwinsetup.exe -Force
4 changes: 2 additions & 2 deletions automatic/cygwin/tools/chocolateyUninstall.ps1
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
$ErrorActionPreference = 'Stop'

$cygwin_root = (Get-ItemProperty 'HKLM:\SOFTWARE\Cygwin\setup' -ea 0).rootdir
rm 'HKLM:\SOFTWARE\Cygwin' -Recurse -ErrorAction SilentlyContinue
Remove-Item 'HKLM:\SOFTWARE\Cygwin' -Recurse -ErrorAction SilentlyContinue
if (Test-Path "$cygwin_root\Cygwin.bat") {
Write-Host 'Removing cygwin files'
rm $cygwin_root -recurse -force -ea 0
Remove-Item $cygwin_root -recurse -force -ea 0
}

Uninstall-BinFile -Name Cygwin

0 comments on commit c41c5ec

Please sign in to comment.