-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates prior to automatic run for 20160521_ 512
- Loading branch information
Chocolatey
committed
May 21, 2016
1 parent
d48d606
commit 11ca820
Showing
5 changed files
with
118 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
automatic/_output/7zip.commandline/16.02/7zip.commandline.nuspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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” --> |
21 changes: 21 additions & 0 deletions
21
automatic/_output/7zip.commandline/16.02/tools/chocolateyInstall.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
22
automatic/_output/7zip.install/16.02/tools/chocolateyInstall.ps1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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” --> |