-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AU: 3 updated - git.portable patch-my-pc SQLite
[skip ci] https://gist.github.com/a14b1e5bfaf70839b338eb1ab7f8226f/f50c2ffc397295bff1c6febaef4d6e961d21c26c
- Loading branch information
Chocolatey
committed
Jan 23, 2018
1 parent
1baf4a3
commit ec39678
Showing
7 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,23 +1,23 @@ | ||
$ErrorActionPreference = 'Stop' | ||
$ErrorActionPreference = 'Stop' | ||
|
||
$toolsDir = Split-Path $MyInvocation.MyCommand.Definition | ||
$embedded_path = if ((Get-ProcessorBits 64) -and $env:chocolateyForceX86 -ne 'true') { | ||
Write-Host "Installing 64 bit version"; gi "$toolsDir\*dll*win64*.zip" | ||
} else { Write-Host "Installing 32 bit version"; gi "$toolsDir\*dll*win32*.zip" } | ||
$embedded_path = if ((Get-OSArchitectureWidth 64) -and $env:chocolateyForceX86 -ne 'true') { | ||
Write-Host "Installing 64 bit version"; Get-Item "$toolsDir\*dll*win64*.zip" | ||
} else { Write-Host "Installing 32 bit version"; Get-Item "$toolsDir\*dll*win32*.zip" } | ||
|
||
$packageArgs = @{ | ||
PackageName = 'sqlite' | ||
FileFullPath = $embedded_path | ||
Destination = $toolsDir | ||
} | ||
ls $toolsDir\* | ? { $_.PSISContainer } | rm -Recurse -Force #remove older package dirs | ||
Get-ChildItem $toolsDir\* | Where-Object { $_.PSISContainer } | Remove-Item -Recurse -Force #remove older package dirs | ||
Get-ChocolateyUnzip @packageArgs | ||
|
||
$pp = Get-PackageParameters | ||
if (!$pp.NoTools) { | ||
Write-Host "Installing tools" | ||
$packageArgs.FileFullPath = gi "$toolsDir\*tools*win32*.zip" | ||
$packageArgs.FileFullPath = Get-Item "$toolsDir\*tools*win32*.zip" | ||
Get-ChocolateyUnzip @packageArgs | ||
} | ||
|
||
rm $toolsDir\*.zip -ea 0 | ||
Remove-Item $toolsDir\*.zip -ea 0 |