Skip to content

Commit

Permalink
updates prior to automatic run for 20160521_ 512
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolatey committed May 21, 2016
1 parent d48d606 commit 11ca820
Show file tree
Hide file tree
Showing 5 changed files with 118 additions and 0 deletions.
25 changes: 25 additions & 0 deletions automatic/_output/7zip.commandline/16.02/7zip.commandline.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<metadata>
<id>7zip.commandline</id>
<title>7-Zip (Portable, CommandLine)</title>
<version>16.02</version>
<authors>Igor Pavlov</authors>
<owners>Rob Reynolds</owners>
<summary>7-Zip is a file archiver with a high compression ratio.</summary>
<description>7-Zip is a file archiver with a high compression ratio. This brings the 7zip command line version to your system.</description>
<projectUrl>http://www.7-zip.org/</projectUrl>
<packageSourceUrl>https://github.com/ferventcoder/chocolatey-packages/tree/master/automatic/7zip.commandline</packageSourceUrl>
<tags>7zip zip archiver</tags>
<licenseUrl>http://www.7-zip.org/license.txt</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>https://cdn.rawgit.com/ferventcoder/chocolatey-packages/02c21bebe5abb495a56747cbb9b4b5415c933fc0/icons/7zip.svg</iconUrl>
<releaseNotes>http://www.7-zip.org/history.txt</releaseNotes>
<provides>7zip</provides>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>
<!-- character encoding: “UTF-8” -->
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
$versionMinusDots = "16.02".Replace(".","")

$packageName = '7zip.commandline'
$toolsDir = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
$extrasDir = Join-Path "$toolsDir" "7z-extra"
$url = "http://www.7-zip.org/a/7z$($versionMinusDots).exe"
$url64 = "http://www.7-zip.org/a/7z$($versionMinusDots)-x64.exe"
$extrasUrl = "http://www.7-zip.org/a/7z$($versionMinusDots)-extra.7z"

Install-ChocolateyZipPackage $packageName $url $toolsDir $url64
Install-ChocolateyZipPackage $packageName $extrasUrl $extrasDir

Remove-Item -Path "$toolsDir\Uninstall.exe"

if (Get-ProcessorBits 32) {
# generate ignore for x64\7za.exe
New-Item "$extrasDir\x64\7za.exe.ignore" -Type file -Force | Out-Null
} else {
#generate ignore for 7za.exe and let x64 version pick up and shim
New-Item "$extrasDir\7za.exe.ignore" -Type file -Force | Out-Null
}
25 changes: 25 additions & 0 deletions automatic/_output/7zip.install/16.02/7zip.install.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<metadata>
<id>7zip.install</id>
<title>7-Zip (Install)</title>
<version>16.02</version>
<authors>Igor Pavlov</authors>
<owners>Rob Reynolds</owners>
<summary>7-Zip is a file archiver with a high compression ratio.</summary>
<description>7-Zip is a file archiver with a high compression ratio.

### NOTE: The installer for 7-Zip is known to close the explorer process.
This means you may lose current work. If it doesn't automatically restart explorer, type `explorer` on the command shell to restart it.
</description>
<projectUrl>http://www.7-zip.org/</projectUrl>
<tags>7zip zip archiver admin</tags>
<licenseUrl>http://www.7-zip.org/license.txt</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>https://cdn.rawgit.com/ferventcoder/chocolatey-packages/02c21bebe5abb495a56747cbb9b4b5415c933fc0/icons/7zip.svg</iconUrl>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>
<!-- character encoding: “UTF-8” -->
22 changes: 22 additions & 0 deletions automatic/_output/7zip.install/16.02/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Function Get-ExplorerProcessCount
{
$process = Get-Process explorer -ErrorAction SilentlyContinue
$processCount = ($process | Measure-Object).Count
return $processCount
}

$initialProcessCount = Get-ExplorerProcessCount
Write-Warning "This installer is known to close the explorer process. This means `nyou may lose current work. `nIf it doesn't automatically restart explorer, type 'explorer' on the `ncommand shell to restart it."

$versionMinusDots = "16.02".Replace(".","")
$packageId = '7zip.install'
$url = "http://www.7-zip.org/a/7z$($versionMinusDots).exe"
$url64 = "http://www.7-zip.org/a/7z$($versionMinusDots)-x64.exe"

Install-ChocolateyPackage $packageId 'exe' '/S' $url $url64

$finalProcessCount = Get-ExplorerProcessCount
if($initialProcessCount -lt $finalProcessCount)
{
Start-Process explorer.exe
}
25 changes: 25 additions & 0 deletions automatic/_output/7zip/16.02/7zip.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<metadata>
<id>7zip</id>
<title>7-Zip</title>
<version>16.02</version>
<authors>Igor Pavlov</authors>
<owners>Rob Reynolds</owners>
<summary>7-Zip is a file archiver with a high compression ratio.</summary>
<description>7-Zip is a file archiver with a high compression ratio.

### NOTE: The installer for 7-Zip is known to close the explorer process.
This means you may lose current work. If it doesn't automatically restart explorer, type `explorer` on the command shell to restart it.
</description>
<projectUrl>http://www.7-zip.org/</projectUrl>
<tags>7zip zip archiver admin</tags>
<licenseUrl>http://www.7-zip.org/license.txt</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>https://cdn.rawgit.com/ferventcoder/chocolatey-packages/02c21bebe5abb495a56747cbb9b4b5415c933fc0/icons/7zip.svg</iconUrl>
<dependencies>
<dependency id="7zip.install" version="[16.02]" />
</dependencies>
</metadata>
</package>
<!-- character encoding: “UTF-8” -->

0 comments on commit 11ca820

Please sign in to comment.