-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(docker): upgrade image
buildpack-deps:focal-curl
to `jammy-cu…
…rl` 22.04 (BREAKING) (#8779) - Required upgrading packages `python`->`python3`, wine-stable `6` -> `9`, and added `python2` for backward compatibility (note, `python` alias does not get created by `apt-get install`, must be accessed via `python2`) - Adds `powershell` to `wine` image for Azure Signing - Adds `--platform=linux/x86_64` in `FROM` line so as to allow building these images on arm64 macs - Manually adds `libssl1.1` to `base` Docker image since Ubuntu 22.04 upgraded to `libssl3` and some upstream dependencies (e.g. `osslsigncode`) still require `libssl1.1`. - Adds windows installer unit tests to linux matrix runners
- Loading branch information
Showing
9 changed files
with
61 additions
and
34 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"electron-builder": major | ||
--- | ||
|
||
chore: upgrade buildpack-deps base image from `focal` to `jammy`. This also forces upgrading `python`->`python3` package and wine-stable |
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,8 +1,9 @@ | ||
ARG IMAGE_VERSION=wine | ||
FROM electronuserland/builder:$IMAGE_VERSION | ||
FROM --platform=linux/x86_64 electronuserland/builder:$IMAGE_VERSION | ||
|
||
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \ | ||
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list && \ | ||
apt-get update -y && apt-get install -y --no-install-recommends xvfb google-chrome-stable libgconf-2-4 && \ | ||
apt-get -qq update -y && \ | ||
apt-get -qq install -y --no-install-recommends xvfb google-chrome-stable libgconf-2-4 && \ | ||
# clean | ||
apt-get clean && rm -rf /var/lib/apt/lists/* |
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,8 +1,8 @@ | ||
ARG IMAGE_VERSION=wine | ||
FROM electronuserland/builder:$IMAGE_VERSION | ||
FROM --platform=linux/x86_64 electronuserland/builder:$IMAGE_VERSION | ||
|
||
# since mono is required only for deprecated target Squirrel.Windows, extracted to separate docker image to reduce size | ||
|
||
RUN apt-get update -y && \ | ||
apt-get install -y --no-install-recommends mono-devel ca-certificates-mono && \ | ||
RUN apt-get -qq update -y && \ | ||
apt-get -qq install -y --no-install-recommends mono-devel ca-certificates-mono && \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* |
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,21 +1,29 @@ | ||
ARG IMAGE_VERSION=latest | ||
FROM electronuserland/builder:$IMAGE_VERSION | ||
FROM --platform=linux/x86_64 electronuserland/builder:$IMAGE_VERSION | ||
|
||
RUN dpkg --add-architecture i386 && \ | ||
curl -Lo /usr/share/keyrings/winehq.asc https://dl.winehq.org/wine-builds/winehq.key && \ | ||
echo 'deb [signed-by=/usr/share/keyrings/winehq.asc] https://dl.winehq.org/wine-builds/ubuntu/ focal main' > /etc/apt/sources.list.d/winehq.list && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
# We can't install `winehq-stable`, we must manually lock each dependency to v6 (ref: https://github.com/electron-userland/electron-builder/issues/6780), | ||
winehq-stable=6.0.4~focal-1 \ | ||
wine-stable=6.0.4~focal-1 \ | ||
wine-stable-i386=6.0.4~focal-1 \ | ||
wine-stable-amd64=6.0.4~focal-1 \ | ||
&& \ | ||
mkdir -pm755 /etc/apt/keyrings && \ | ||
# wine | ||
# https://gitlab.winehq.org/wine/wine/-/wikis/Debian-Ubuntu#install-wine | ||
wget -O - https://dl.winehq.org/wine-builds/winehq.key | gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key - && \ | ||
wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources && \ | ||
apt-get -qq update && \ | ||
apt-get -qq install -y --install-recommends winehq-stable && \ | ||
# powershell | ||
# https://learn.microsoft.com/en-us/powershell/scripting/install/install-ubuntu?view=powershell-7.4 | ||
apt-get install -yq apt-transport-https software-properties-common && \ | ||
wget -q https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb && \ | ||
dpkg -i packages-microsoft-prod.deb && \ | ||
rm packages-microsoft-prod.deb && \ | ||
apt-get -qq update && \ | ||
apt-get install -y powershell && \ | ||
# clean | ||
apt-get clean && rm -rf /var/lib/apt/lists/* | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN curl -L https://github.com/electron-userland/electron-builder-binaries/releases/download/wine-2.0.3-mac-10.13/wine-home.zip > /tmp/wine-home.zip && unzip /tmp/wine-home.zip -d /root/.wine && unlink /tmp/wine-home.zip | ||
ENV WINEDEBUG=-all,err+all | ||
ENV WINEDLLOVERRIDES=winemenubuilder.exe=d | ||
|
||
ENV WINEDEBUG -all,err+all | ||
ENV WINEDLLOVERRIDES winemenubuilder.exe=d | ||
# We expect this to error in the logs due to no screen display, but it seems to be the only way to init a ~/.wine config dir | ||
# Note: We could run this via xvfb-run, but since `winecfg` is a GUI config tool, the docker build process hangs as the process never exits | ||
RUN winecfg |
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