File tree Expand file tree Collapse file tree 4 files changed +108
-11
lines changed Expand file tree Collapse file tree 4 files changed +108
-11
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,72 @@ exports[`Electron autoupdate (fresh install & update) > linux > AppImage - arm64
6666}
6767` ;
6868
69+ exports [` Electron autoupdate (fresh install & update) > linux > AppImage - x64 1` ] = `
70+ {
71+ " linux" : [
72+ {
73+ " arch" : " x64" ,
74+ " file" : " TestApp.AppImage" ,
75+ " updateInfo" : {
76+ " blockMapSize" : " @blockMapSize" ,
77+ " sha512" : " @sha512" ,
78+ " size" : " @size" ,
79+ },
80+ },
81+ {
82+ " file" : " latest-linux.yml" ,
83+ " fileContent" : {
84+ " files" : [
85+ {
86+ " blockMapSize" : " @blockMapSize" ,
87+ " sha512" : " @sha512" ,
88+ " size" : " @size" ,
89+ " url" : " TestApp.AppImage" ,
90+ },
91+ ],
92+ " path" : " TestApp.AppImage" ,
93+ " releaseDate" : " @releaseDate" ,
94+ " sha512" : " @sha512" ,
95+ " version" : " 1.0.0" ,
96+ },
97+ },
98+ ],
99+ }
100+ ` ;
101+
102+ exports [` Electron autoupdate (fresh install & update) > linux > AppImage - x64 2` ] = `
103+ {
104+ " linux" : [
105+ {
106+ " arch" : " x64" ,
107+ " file" : " TestApp.AppImage" ,
108+ " updateInfo" : {
109+ " blockMapSize" : " @blockMapSize" ,
110+ " sha512" : " @sha512" ,
111+ " size" : " @size" ,
112+ },
113+ },
114+ {
115+ " file" : " latest-linux.yml" ,
116+ " fileContent" : {
117+ " files" : [
118+ {
119+ " blockMapSize" : " @blockMapSize" ,
120+ " sha512" : " @sha512" ,
121+ " size" : " @size" ,
122+ " url" : " TestApp.AppImage" ,
123+ },
124+ ],
125+ " path" : " TestApp.AppImage" ,
126+ " releaseDate" : " @releaseDate" ,
127+ " sha512" : " @sha512" ,
128+ " version" : " 1.0.1" ,
129+ },
130+ },
131+ ],
132+ }
133+ ` ;
134+
69135exports [` Electron autoupdate (fresh install & update) > linux > arch - (pacman) 1` ] = `
70136{
71137 " linux" : [
Original file line number Diff line number Diff line change @@ -186,6 +186,7 @@ export function startXvfb(): { display: string; stop: () => void } {
186186 } )
187187 } )
188188
189+ console . log ( "Xvfb started on display" , display )
189190 return {
190191 display,
191192 stop,
Original file line number Diff line number Diff line change 1- FROM archlinux:latest
1+ FROM archlinux:base-20250629.0.373469
22
3- RUN pacman -Syu --noconfirm && \
4- pacman -S --noconfirm \
3+ RUN pacman -Sy --noconfirm archlinux-keyring \
4+ && pacman -S --noconfirm gnupg \
5+ && pacman-key --init \
6+ && pacman-key --populate archlinux \
7+ && pacman-key --refresh-keys \
8+ && pacman -Syu --noconfirm \
9+ && pacman -S --noconfirm \
510 libxcrypt-compat \
611 base-devel \
712 git \
813 nodejs \
914 npm \
1015 xorg-server-xvfb \
11- && pacman -Scc --noconfirm
16+ && pacman -Scc --noconfirm \
17+ && rm -rf /var/lib/pacman/sync/* /var/cache/pacman/pkg/*
18+
19+ # install prerequisites for building
20+ RUN pacman -Sy --noconfirm archlinux-keyring \
21+ && pacman -Syu --noconfirm \
22+ && pacman -S --noconfirm base-devel git sudo \
23+ && pacman -Scc --noconfirm \
24+ && rm -rf /var/lib/pacman/sync/* /var/cache/pacman/pkg/*
25+
26+ # create a non-root user for makepkg
27+ RUN useradd -m builder && echo "builder ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/builder
28+
29+ USER builder
30+ WORKDIR /home/builder
31+
32+ # build http-parser from AUR
33+ RUN git clone https://aur.archlinux.org/http-parser.git \
34+ && cd http-parser \
35+ && makepkg -si --noconfirm
36+
37+ USER root
38+ WORKDIR /project
1239
1340RUN npm --silent install --global --depth 0 pnpm
1441
Original file line number Diff line number Diff line change 1- FROM debian:bookworm-slim
1+ FROM node:20-bookworm
22
3- RUN apt-get update && apt-get install -y curl gnupg xz-utils xvfb zypper binutils libasound2
3+ # Install system + Electron runtime deps
4+ RUN apt-get update \
5+ && apt-get install -y --no-install-recommends \
6+ curl gnupg xz-utils xvfb zypper binutils \
7+ libasound2 libgtk-3-0 libnotify4 libnss3 libxss1 libxtst6 \
8+ xdg-utils libatspi2.0-0 libsecret-1-0 libgbm1 \
9+ && rm -rf /var/lib/apt/lists/*
410
5- RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
6- RUN apt-get install -y nodejs
11+ RUN npm --silent install --global --depth 0 pnpm
712
8- RUN npm --silent install --global --depth 0 pnpm
9-
10- WORKDIR /project
13+ WORKDIR /project
You can’t perform that action at this time.
0 commit comments