Skip to content

Commit 6d37bf9

Browse files
committed
Remove download/unzip code - it's old and no longer used
Former-commit-id: 09a5b3c77640ed99eaf57392ecca10b0552f7ec1
1 parent 09a0d1e commit 6d37bf9

File tree

1 file changed

+0
-58
lines changed

1 file changed

+0
-58
lines changed

build.ps1

Lines changed: 0 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ param(
77
Import-Module BitsTransfer
88

99
$WorkingDir = split-path -parent $MyInvocation.MyCommand.Definition
10-
$ToolsDir = Join-Path $WorkingDir .tools
1110

1211
$Cef = Join-Path $WorkingDir 'cef'
1312
$CefInclude = Join-Path $Cef 'include'
@@ -18,8 +17,6 @@ $Cef64vcx =Join-Path $Cef64 'libcef_dll_wrapper.vcxproj'
1817

1918
$CefVersion = "3.2171.1979"
2019
$CefPackageVersion = "3.2171.1979"
21-
$Cef32Url = "http://software.odinkapital.no/opensource/cef/cef_binary_{0}_windows32.zip" -f $CefVersion
22-
$Cef64Url = "http://software.odinkapital.no/opensource/cef/cef_binary_{0}_windows64.zip" -f $CefVersion
2320

2421
# https://github.com/jbake/Powershell_scripts/blob/master/Invoke-BatchFile.ps1
2522
function Invoke-BatchFile
@@ -102,33 +99,6 @@ function TernaryReturn
10299

103100
}
104101

105-
function Unzip
106-
{
107-
param(
108-
[Parameter(Position = 0, ValueFromPipeline = $true)]
109-
[string] $Filename,
110-
[Parameter(Position = 1, ValueFromPipeline = $true)]
111-
[string] $ExtractToDestination
112-
)
113-
$ShellApp = New-Object -Com shell.application
114-
$Zip = $ShellApp.namespace($Filename)
115-
if(-not (Test-Path $ExtractToDestination)) {
116-
New-Item -ItemType Directory -Path $ExtractToDestination | Out-Null
117-
}
118-
$Destination = $ShellApp.namespace($ExtractToDestination)
119-
120-
# Extract the First Folder within the zip
121-
foreach($item In $Zip.items())
122-
{
123-
if ($item.GetFolder -ne $Null)
124-
{
125-
$Destination.Copyhere($item.GetFolder.items(), 0x10)
126-
127-
break;
128-
}
129-
}
130-
}
131-
132102
function Bootstrap
133103
{
134104
param()
@@ -139,34 +109,6 @@ function Bootstrap
139109

140110
Write-Diagnostic "Bootstrapping"
141111

142-
if(-not (Test-Path $ToolsDir)) {
143-
New-Item -ItemType Directory -Path $ToolsDir | Out-Null
144-
}
145-
146-
if((-not (Test-Path $ToolsDir\cef_binary_windows32.zip)) -and (-not (Test-Path $Cef32vcx))) {
147-
if(-not (Test-Path $ToolsDir\cef_binary_windows32.zip)) {
148-
Write-Output "Downloading $Cef32Url"
149-
Start-BitsTransfer $Cef32Url $ToolsDir\cef_binary_windows32.zip
150-
}
151-
152-
if(-not (Test-Path $Cef32vcx)) {
153-
Write-Output "Extracting..."
154-
Unzip $ToolsDir\cef_binary_windows32.zip $Cef32
155-
}
156-
}
157-
158-
if((-not (Test-Path $ToolsDir\cef_binary_windows64.zip)) -and (-not (Test-Path $Cef64vcx))) {
159-
if(-not (Test-Path $ToolsDir\cef_binary_windows64.zip)) {
160-
Write-Output "Downloading $Cef64Url"
161-
Start-BitsTransfer $Cef64Url $ToolsDir\cef_binary_windows64.zip
162-
}
163-
164-
if(-not (Test-Path $Cef64vcx)) {
165-
Write-Output "Extracting..."
166-
Unzip $ToolsDir\cef_binary_windows64.zip $Cef64
167-
}
168-
}
169-
170112
if (Test-Path($Cef)) {
171113
Remove-Item $Cef -Recurse | Out-Null
172114
}

0 commit comments

Comments
 (0)