-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Dockerfile_cefsharp
27 lines (25 loc) · 1.65 KB
/
Dockerfile_cefsharp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM cef_binary
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
RUN MKDIR c:/code/cefsharp
WORKDIR c:/code/cefsharp
RUN $env:Path = 'c:/Program Files/Git/bin/;' + $env:Path;setx /M PATH $env:Path;
ARG CEFSHARP_VERSION=63.0.90
RUN git clone https://github.com/cefsharp/CefSharp.git .
ARG CEFSHARP_BRANCH="cefsharp/63"
#This line and the one two below are due to waiting to use the new vs2017 compat build script
RUN cp build.ps1 ../
RUN git checkout $env:CEFSHARP_BRANCH;
RUN cp ../build.ps1 .
ARG CEF_VERSION_STR=auto
ARG CHROME_BRANCH=3239
ENV PACKAGE_SOURCE C:/code/cef-binary/cef-binary-master/NuGet
ARG ARCHES
ADD cefsharp_patch_*.diff cefsharp_set_versions_and_restore.ps1 functions.ps1 cefsharp_patch.ps1 c:/code/cefsharp/
RUN ./cefsharp_patch.ps1
RUN ./cefsharp_set_versions_and_restore.ps1
##Next line for manually testing a replacement cefsharp build script before in master
#ADD cefsharp_build.ps1 /code/cefsharp/build.ps1
RUN [Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12;./build.ps1 -BuildArches $env:ARCHES -Verbose -Target "update-build-version" -Version $env:CEFSHARP_VERSION -AssemblyVersion $env:CEFSHARP_VERSION -TargetFramework "NetFramework";
RUN [Net.ServicePointManager]::SecurityProtocol=[Net.SecurityProtocolType]::Tls12;./build.ps1 -BuildArches $env:ARCHES -Verbose -Target "vs2019" -Version $env:CEFSHARP_VERSION -AssemblyVersion $env:CEFSHARP_VERSION -TargetFramework "NetFramework";
RUN cp $env:PACKAGE_SOURCE/*.nupkg C:/code/cefsharp/nuget/
RUN Compress-Archive -Path C:/code/cefsharp/nuget/*.nupkg -CompressionLevel Fastest -DestinationPath C:\packages_cefsharp