mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
devel/electron37: Update to 37.10.3
While here: - switch to use USE_ELECTRON features of electron.mk for specifying node package manager, pre-fetching necessary node modules, and extracting the node modules into appropriate directories - use USES=display for starting/stopping display server on testing - specify TEST_ENV instead of listing env vars in test target Changelog: https://github.com/electron/electron/releases/tag/v37.10.3 Reported by: GitHub (watch releases)
This commit is contained in:
+14
-44
@@ -1,7 +1,6 @@
|
||||
PORTNAME= electron
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= ${ELECTRON_VER}
|
||||
PORTREVISION= 1
|
||||
PULSEMV= 16
|
||||
PULSEV= ${PULSEMV}.1
|
||||
CATEGORIES= devel
|
||||
@@ -11,8 +10,7 @@ PKGNAMESUFFIX= ${ELECTRON_VER_MAJOR}
|
||||
DISTFILES= chromium-${CHROMIUM_VER}${EXTRACT_SUFX}.0:chromium \
|
||||
chromium-${CHROMIUM_VER}${EXTRACT_SUFX}.1:chromium \
|
||||
chromium-${CHROMIUM_VER}${EXTRACT_SUFX}.2:chromium \
|
||||
pulseaudio-${PULSEV}.tar.gz:pulseaudio \
|
||||
electron-yarn-cache-${ELECTRON_VER}${EXTRACT_SUFX}:prefetch
|
||||
pulseaudio-${PULSEV}.tar.gz:pulseaudio
|
||||
DIST_SUBDIR= ${PORTNAME}
|
||||
EXTRACT_ONLY= ${DISTFILES:C/:[^:]+$//:C/chromium-${CHROMIUM_VER}${EXTRACT_SUFX}\.[0-9]//}
|
||||
|
||||
@@ -27,8 +25,6 @@ LICENSE_FILE= ${WRKSRC}/electron/LICENSE
|
||||
BROKEN_i386= fetch fails: node process stalls during fetch phase and eats up all CPUs
|
||||
ONLY_FOR_ARCHS= aarch64 amd64 i386
|
||||
|
||||
FETCH_DEPENDS= yarn${NODEJS_SUFFIX}>0:www/yarn${NODEJS_SUFFIX}
|
||||
EXTRACT_DEPENDS=yarn${NODEJS_SUFFIX}>0:www/yarn${NODEJS_SUFFIX}
|
||||
PATCH_DEPENDS= git:devel/git \
|
||||
jq:textproc/jq
|
||||
BUILD_DEPENDS= gperf:devel/gperf \
|
||||
@@ -69,12 +65,12 @@ LIB_DEPENDS= libatk-bridge-2.0.so:accessibility/at-spi2-core \
|
||||
libfontconfig.so:x11-fonts/fontconfig
|
||||
RUN_DEPENDS= xdg-open:devel/xdg-utils
|
||||
TEST_DEPENDS= git:devel/git \
|
||||
${PYTHON_PKGNAMEPREFIX}python-dbusmock>0:devel/py-python-dbusmock@${PY_FLAVOR} \
|
||||
npm${NODEJS_SUFFIX}>0:www/npm${NODEJS_SUFFIX}
|
||||
${PYTHON_PKGNAMEPREFIX}python-dbusmock>0:devel/py-python-dbusmock@${PY_FLAVOR}
|
||||
|
||||
USES= bison compiler:c++17-lang cpe gettext-tools gl gmake gnome \
|
||||
iconv:wchar_t jpeg localbase:ldflags ninja nodejs:22,build \
|
||||
pkgconfig python:build,test qt:5 shebangfix tar:xz xorg
|
||||
USES= bison compiler:c++17-lang cpe display:test electron:env \
|
||||
gettext-tools gl gmake gnome iconv:wchar_t jpeg \
|
||||
localbase:ldflags ninja nodejs:22,build pkgconfig \
|
||||
python:build,test qt:5 shebangfix tar:xz xorg
|
||||
|
||||
CPE_VENDOR= electronjs
|
||||
USE_GITHUB= yes
|
||||
@@ -89,6 +85,8 @@ USE_GNOME= atk cairo gdkpixbuf gtk30 libxml2 libxslt pango
|
||||
USE_XORG= x11 xcb xcomposite xcursor xdamage xext xfixes xi xrandr \
|
||||
xrender xscrnsaver xtst
|
||||
USE_QT= buildtools:build core:build widgets:build
|
||||
USE_ELECTRON= npm:yarn4 prefetch extract
|
||||
NPM_EXTRACT_WRKSRC= ${WRKSRC:H}/${PORTNAME}-${ELECTRON_VER}
|
||||
|
||||
SHEBANG_FILES= chrome/tools/build/linux/chrome-wrapper buildtools/linux64/clang-format
|
||||
|
||||
@@ -239,8 +237,6 @@ MANTLE_VER= 78d3966b3c331292ea29ec38661b25df0a245948
|
||||
# See ${WRKSRC}/electron/DEPS for ENGFLOW_RECLIENT_CONFIGS_VER
|
||||
ENGFLOW_RECLIENT_CONFIGS_VER= 955335c30a752e9ef7bff375baab5e0819b6c00d
|
||||
|
||||
YARN_TIMESTAMP= 61171200
|
||||
|
||||
.include "Makefile.version"
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
@@ -296,33 +292,17 @@ MAKE_ENV+= RUSTC_BOOTSTRAP=1
|
||||
GN_ARGS+= enable_rust=true \
|
||||
rust_sysroot_absolute="${LOCALBASE}"
|
||||
|
||||
TEST_ENV+= ${MAKE_ENV} \
|
||||
ELECTRON_OUT_DIR=${BUILDTYPE} \
|
||||
LOCAL_GIT_DIRECTORY=${LOCALBASE} \
|
||||
DISABLE_CRASH_REPORTER_TESTS=1
|
||||
|
||||
pre-everything::
|
||||
@${ECHO_MSG}
|
||||
@${ECHO_MSG} "To build electron, you should have around 2GB of memory"
|
||||
@${ECHO_MSG} "and around ${WANTSPACE} of free disk space."
|
||||
@${ECHO_MSG}
|
||||
|
||||
pre-fetch:
|
||||
@${MKDIR} ${DISTDIR}/${DIST_SUBDIR}
|
||||
if [ ! -f ${DISTDIR}/${DIST_SUBDIR}/electron-yarn-cache-${ELECTRON_VER}${EXTRACT_SUFX} ]; \
|
||||
then ${MKDIR} ${WRKDIR}; \
|
||||
${ECHO_CMD} 'yarn-offline-mirror "./yarn-offline-cache"' >> \
|
||||
${WRKDIR}/.yarnrc; \
|
||||
${CP} ${FILESDIR}/package.json ${FILESDIR}/yarn.lock ${WRKDIR}; \
|
||||
cd ${WRKDIR} && ${SETENV} HOME=${WRKDIR} XDG_CACHE_HOME=${WRKDIR}/.cache \
|
||||
yarn --frozen-lockfile --ignore-scripts; \
|
||||
${MTREE_CMD} -cbnSp yarn-offline-cache | ${MTREE_CMD} -C | ${SED} \
|
||||
-e 's:time=[0-9.]*:time=${YARN_TIMESTAMP}.000000000:' \
|
||||
-e 's:\([gu]id\)=[0-9]*:\1=0:g' \
|
||||
-e 's:mode=\([0-9]\)7[0-9][0-9]:mode=\1755:' \
|
||||
-e 's:mode=\([0-9]\)6[0-9][0-9]:mode=\1644:' \
|
||||
-e 's:flags=.*:flags=none:' \
|
||||
-e 's:^\.:./yarn-offline-cache:' > yarn-offline-cache.mtree; \
|
||||
${TAR} cJf ${DISTDIR}/${DIST_SUBDIR}/electron-yarn-cache-${ELECTRON_VER}${EXTRACT_SUFX} \
|
||||
@yarn-offline-cache.mtree; \
|
||||
${RM} -r ${WRKDIR}; \
|
||||
fi
|
||||
|
||||
pre-extract:
|
||||
# Chromium source tarball is splitted into multiple fragments. Concatenate them
|
||||
# into a single one and manually extract it into WRKDIR.
|
||||
@@ -348,13 +328,6 @@ post-extract:
|
||||
${WRKSRC}/third_party/squirrel.mac/vendor/Mantle
|
||||
${MV} ${WRKSRC:H}/${GH_PROJECT_reclient_configs}-${ENGFLOW_RECLIENT_CONFIGS_VER} \
|
||||
${WRKSRC}/third_party/engflow-reclient-configs
|
||||
# Install node modules for electron
|
||||
${MV} ${WRKSRC:H}/yarn-offline-cache ${WRKDIR}
|
||||
${ECHO_CMD} 'yarn-offline-mirror "../../../yarn-offline-cache"' >> ${WRKSRC}/electron/.yarnrc
|
||||
${MV} ${WRKSRC}/electron/package.json ${WRKSRC}/electron/package.json.bak
|
||||
${CP} ${FILESDIR}/package.json ${WRKSRC}/electron
|
||||
cd ${WRKSRC}/electron && \
|
||||
${SETENV} HOME=${WRKDIR} XDG_CACHE_HOME=${WRKDIR}/.cache yarn --frozen-lockfile --offline
|
||||
|
||||
pre-patch:
|
||||
${SH} ${FILESDIR}/apply-electron-patches.sh ${WRKSRC}
|
||||
@@ -455,10 +428,7 @@ post-install-DRIVER-on:
|
||||
${STAGEDIR}${DATADIR}/chromedriver
|
||||
|
||||
do-test:
|
||||
# Note 1: "npm install" will run before actual tests are executed
|
||||
# Note 2: Xvfb or something similar is necessary for headless testing
|
||||
cd ${WRKSRC}/electron && \
|
||||
${SETENV} ${TEST_ENV} ELECTRON_OUT_DIR=${BUILDTYPE} LOCAL_GIT_DIRECTORY=${LOCALBASE} \
|
||||
npm run test -- --ci
|
||||
${SETENV} ${TEST_ENV} yarn run test -- --ci
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
ELECTRON_VER= 37.10.2
|
||||
ELECTRON_VER= 37.10.3
|
||||
ELECTRON_VER_MAJOR= ${ELECTRON_VER:C/\..*//}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
TIMESTAMP = 1763689722
|
||||
TIMESTAMP = 1764646297
|
||||
SHA256 (electron/chromium-138.0.7204.251.tar.xz.0) = 23057c15fd77b6653b01a34e08782f05cc80ecddddaf6f0b87390beb32810151
|
||||
SIZE (electron/chromium-138.0.7204.251.tar.xz.0) = 2000000000
|
||||
SHA256 (electron/chromium-138.0.7204.251.tar.xz.1) = 784a8bcb5eff8c204557c5cb7c4a223efd3c472303dd79a8b7be97e3d5d0982a
|
||||
@@ -7,10 +7,12 @@ SHA256 (electron/chromium-138.0.7204.251.tar.xz.2) = 3d7af9e06a90102b41de19d4635
|
||||
SIZE (electron/chromium-138.0.7204.251.tar.xz.2) = 273864084
|
||||
SHA256 (electron/pulseaudio-16.1.tar.gz) = 027266c62f2a84422ac45fa721a649508f0f1628fb1fd9242315ac54ce2d7c92
|
||||
SIZE (electron/pulseaudio-16.1.tar.gz) = 2763111
|
||||
SHA256 (electron/electron-yarn-cache-37.10.2.tar.xz) = 34a44bb3ceaa38384ab57905ac82eb29f3cb66db5f731479d67b306211916e3d
|
||||
SIZE (electron/electron-yarn-cache-37.10.2.tar.xz) = 30531168
|
||||
SHA256 (electron/electron-electron-v37.10.2_GH0.tar.gz) = e2823680d00933c9c507565c4d69a3e1513b1f7bc40f61a43faf2def2f24d271
|
||||
SIZE (electron/electron-electron-v37.10.2_GH0.tar.gz) = 15861249
|
||||
SHA256 (electron/yarn-4.11.0.tgz) = b7ade59ec8008b325eb4bed4360659e33c97942ab292d139c495dd6bdc0ad28c
|
||||
SIZE (electron/yarn-4.11.0.tgz) = 1056157
|
||||
SHA256 (electron/electron37-37.10.3-node-modules.tar.xz) = 9a97859eca2a751f6dee75440b8a345f221f694dee68f090fa52b63b5c68fda1
|
||||
SIZE (electron/electron37-37.10.3-node-modules.tar.xz) = 60142041
|
||||
SHA256 (electron/electron-electron-v37.10.3_GH0.tar.gz) = b251f45c8c768db41126498481b1bcd890f5345adb6d19c231f14f3b89d1f075
|
||||
SIZE (electron/electron-electron-v37.10.3_GH0.tar.gz) = 16919604
|
||||
SHA256 (electron/nodejs-node-v22.21.1_GH0.tar.gz) = 4b5ad1795fb6adfb1862df9a626bdca85185866fcd7d0313e87a347eec293fd8
|
||||
SIZE (electron/nodejs-node-v22.21.1_GH0.tar.gz) = 129440814
|
||||
SHA256 (electron/nodejs-nan-e14bdcd1f72d62bca1d541b66da43130384ec213_GH0.tar.gz) = 02edf8d5b3fef9af94d8a1355da60564a57e7f2c99cb422bce042400607ed2eb
|
||||
|
||||
+942
File diff suppressed because one or more lines are too long
@@ -0,0 +1,12 @@
|
||||
enableScripts: false
|
||||
|
||||
nmHoistingLimits: workspaces
|
||||
|
||||
nodeLinker: node-modules
|
||||
|
||||
npmMinimalAgeGate: 10080
|
||||
|
||||
npmPreapprovedPackages:
|
||||
- "@electron/*"
|
||||
|
||||
yarnPath: .yarn/releases/yarn-4.11.0.cjs
|
||||
+11
-2
@@ -5,6 +5,7 @@
|
||||
"description": "Build cross platform desktop apps with JavaScript, HTML, and CSS",
|
||||
"devDependencies": {
|
||||
"@azure/storage-blob": "^12.25.0",
|
||||
"@datadog/datadog-ci": "^4.1.2",
|
||||
"@electron/asar": "^3.2.13",
|
||||
"@electron/docs-parser": "^2.0.0",
|
||||
"@electron/fiddle-core": "^1.3.4",
|
||||
@@ -40,6 +41,7 @@
|
||||
"lint-staged": "^10.2.11",
|
||||
"markdownlint-cli2": "^0.18.0",
|
||||
"minimist": "^1.2.8",
|
||||
"node-gyp": "^11.4.2",
|
||||
"null-loader": "^4.0.1",
|
||||
"pre-flight": "^2.0.0",
|
||||
"process": "^0.11.10",
|
||||
@@ -133,7 +135,14 @@
|
||||
"node script/gen-libc++-filenames.js"
|
||||
]
|
||||
},
|
||||
"resolutions": {
|
||||
"nan": "nodejs/nan#e14bdcd1f72d62bca1d541b66da43130384ec213"
|
||||
"packageManager": "yarn@4.11.0",
|
||||
"workspaces": [
|
||||
"spec",
|
||||
"spec/fixtures/native-addon/*"
|
||||
],
|
||||
"dependenciesMeta": {
|
||||
"dugite": {
|
||||
"built": true
|
||||
}
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "@electron-ci/echo",
|
||||
"version": "0.0.1",
|
||||
"main": "./lib/echo.js",
|
||||
"scripts": {
|
||||
"install": "node-gyp configure && node-gyp build"
|
||||
}
|
||||
}
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "@electron-ci/external-ab",
|
||||
"version": "0.0.1",
|
||||
"main": "./lib/test-array-buffer.js",
|
||||
"scripts": {
|
||||
"install": "node-gyp configure && node-gyp build"
|
||||
}
|
||||
}
|
||||
Vendored
+13
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"name": "@electron-ci/is-valid-window",
|
||||
"version": "0.0.5",
|
||||
"main": "./lib/is-valid-window.js",
|
||||
"private": true,
|
||||
"licenses": "MIT",
|
||||
"dependencies": {
|
||||
"nan": "2.x"
|
||||
},
|
||||
"scripts": {
|
||||
"install": "node-gyp configure && node-gyp build"
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "@electron-ci/osr-gpu",
|
||||
"version": "0.0.1",
|
||||
"main": "./lib/osr-gpu.js",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"install": "node-gyp configure && node-gyp build"
|
||||
}
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "@electron-ci/uv-dlopen",
|
||||
"version": "0.0.1",
|
||||
"main": "index.js",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"install": "node-gyp configure && node-gyp build"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"name": "electron-test-main",
|
||||
"productName": "Electron Test Main",
|
||||
"main": "index.js",
|
||||
"version": "0.1.0",
|
||||
"scripts": {
|
||||
"node-gyp-install": "node-gyp install"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@electron-ci/echo": "*",
|
||||
"@electron-ci/external-ab": "*",
|
||||
"@electron-ci/is-valid-window": "*",
|
||||
"@electron-ci/osr-gpu": "*",
|
||||
"@electron-ci/uv-dlopen": "*",
|
||||
"@electron/fuses": "^1.8.0",
|
||||
"@electron/packager": "^18.3.2",
|
||||
"@types/basic-auth": "^1.1.8",
|
||||
"@types/busboy": "^1.5.4",
|
||||
"@types/chai": "^4.3.19",
|
||||
"@types/chai-as-promised": "^7.1.3",
|
||||
"@types/dirty-chai": "^2.0.5",
|
||||
"@types/express": "^4.17.13",
|
||||
"@types/mocha": "^7.0.2",
|
||||
"@types/send": "^0.14.5",
|
||||
"@types/sinon": "^9.0.4",
|
||||
"@types/split": "^1.0.5",
|
||||
"@types/uuid": "^3.4.6",
|
||||
"@types/w3c-web-serial": "^1.0.7",
|
||||
"@types/ws": "^7.2.0",
|
||||
"basic-auth": "^2.0.1",
|
||||
"busboy": "^1.6.0",
|
||||
"chai": "^4.2.0",
|
||||
"chai-as-promised": "^7.1.1",
|
||||
"coffeescript": "^2.4.1",
|
||||
"dbus-ts": "^0.0.7",
|
||||
"dirty-chai": "^2.0.1",
|
||||
"express": "^4.20.0",
|
||||
"graceful-fs": "^4.1.15",
|
||||
"mkdirp": "^0.5.1",
|
||||
"mocha": "^10.0.0",
|
||||
"mocha-junit-reporter": "^1.18.0",
|
||||
"mocha-multi-reporters": "^1.1.7",
|
||||
"pdfjs-dist": "4.2.67",
|
||||
"ps-list": "^7.0.0",
|
||||
"q": "^1.5.1",
|
||||
"send": "^0.19.0",
|
||||
"sinon": "^9.0.1",
|
||||
"split": "^1.0.1",
|
||||
"uuid": "^3.3.3",
|
||||
"winreg": "1.2.4",
|
||||
"ws": "^7.5.10",
|
||||
"yargs": "^16.0.3"
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,4 +1,4 @@
|
||||
--- electron/spec/api-browser-window-spec.ts.orig 2025-08-13 14:21:20 UTC
|
||||
--- electron/spec/api-browser-window-spec.ts.orig 2025-11-25 09:12:51 UTC
|
||||
+++ electron/spec/api-browser-window-spec.ts
|
||||
@@ -68,7 +68,7 @@ describe('BrowserWindow module', () => {
|
||||
}).not.to.throw();
|
||||
@@ -72,7 +72,7 @@
|
||||
it('checks normal bounds when minimized', async () => {
|
||||
const bounds = w.getBounds();
|
||||
const minimize = once(w, 'minimize');
|
||||
@@ -3069,7 +3069,7 @@ describe('BrowserWindow module', () => {
|
||||
@@ -3077,7 +3077,7 @@ describe('BrowserWindow module', () => {
|
||||
describe('BrowserWindow.setOpacity(opacity)', () => {
|
||||
afterEach(closeAllWindows);
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
it('make window with initial opacity', () => {
|
||||
const w = new BrowserWindow({ show: false, opacity: 0.5 });
|
||||
expect(w.getOpacity()).to.equal(0.5);
|
||||
@@ -3095,7 +3095,7 @@ describe('BrowserWindow module', () => {
|
||||
@@ -3103,7 +3103,7 @@ describe('BrowserWindow module', () => {
|
||||
});
|
||||
});
|
||||
|
||||
@@ -90,7 +90,7 @@
|
||||
it('sets 1 regardless of parameter', () => {
|
||||
const w = new BrowserWindow({ show: false });
|
||||
w.setOpacity(0);
|
||||
@@ -3306,7 +3306,7 @@ describe('BrowserWindow module', () => {
|
||||
@@ -3314,7 +3314,7 @@ describe('BrowserWindow module', () => {
|
||||
expect(overlayRectPreMax.height).to.equal(size);
|
||||
|
||||
// 'maximize' event is not emitted on Linux in CI.
|
||||
@@ -99,7 +99,7 @@
|
||||
const maximize = once(w, 'maximize');
|
||||
w.show();
|
||||
w.maximize();
|
||||
@@ -3372,7 +3372,7 @@ describe('BrowserWindow module', () => {
|
||||
@@ -3380,7 +3380,7 @@ describe('BrowserWindow module', () => {
|
||||
expect(preMaxHeight).to.equal(size);
|
||||
|
||||
// 'maximize' event is not emitted on Linux in CI.
|
||||
@@ -108,7 +108,7 @@
|
||||
const maximize = once(w, 'maximize');
|
||||
w.show();
|
||||
w.maximize();
|
||||
@@ -4037,7 +4037,7 @@ describe('BrowserWindow module', () => {
|
||||
@@ -4045,7 +4045,7 @@ describe('BrowserWindow module', () => {
|
||||
expect(test.nodeTimers).to.equal(true);
|
||||
expect(test.nodeUrl).to.equal(true);
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
expect(test.creationTime).to.be.null('creation time');
|
||||
expect(test.systemMemoryInfo).to.be.null('system memory info');
|
||||
} else {
|
||||
@@ -4542,7 +4542,7 @@ describe('BrowserWindow module', () => {
|
||||
@@ -4550,7 +4550,7 @@ describe('BrowserWindow module', () => {
|
||||
});
|
||||
});
|
||||
|
||||
@@ -126,7 +126,7 @@
|
||||
afterEach(closeAllWindows);
|
||||
it('emits an event when window is maximized', async () => {
|
||||
const w = new BrowserWindow({ show: false });
|
||||
@@ -4813,7 +4813,7 @@ describe('BrowserWindow module', () => {
|
||||
@@ -4821,7 +4821,7 @@ describe('BrowserWindow module', () => {
|
||||
// TODO(zcbenz):
|
||||
// This test does not run on Linux CI. See:
|
||||
// https://github.com/electron/electron/issues/28699
|
||||
@@ -135,7 +135,7 @@
|
||||
const w = new BrowserWindow({});
|
||||
const maximize = once(w, 'maximize');
|
||||
w.maximize();
|
||||
@@ -4830,7 +4830,7 @@ describe('BrowserWindow module', () => {
|
||||
@@ -4838,7 +4838,7 @@ describe('BrowserWindow module', () => {
|
||||
});
|
||||
|
||||
// TODO(dsanders11): Enable once maximize event works on Linux again on CI
|
||||
@@ -144,7 +144,7 @@
|
||||
afterEach(closeAllWindows);
|
||||
it('should show the window if it is not currently shown', async () => {
|
||||
const w = new BrowserWindow({ show: false });
|
||||
@@ -4867,7 +4867,7 @@ describe('BrowserWindow module', () => {
|
||||
@@ -4875,7 +4875,7 @@ describe('BrowserWindow module', () => {
|
||||
|
||||
// TODO(dsanders11): Enable once minimize event works on Linux again.
|
||||
// See https://github.com/electron/electron/issues/28699
|
||||
@@ -153,7 +153,7 @@
|
||||
const w = new BrowserWindow();
|
||||
const minimize = once(w, 'minimize');
|
||||
w.minimize();
|
||||
@@ -5353,7 +5353,7 @@ describe('BrowserWindow module', () => {
|
||||
@@ -5361,7 +5361,7 @@ describe('BrowserWindow module', () => {
|
||||
});
|
||||
|
||||
// On Linux there is no "resizable" property of a window.
|
||||
@@ -162,7 +162,7 @@
|
||||
const w = new BrowserWindow({ show: false });
|
||||
expect(w.resizable).to.be.true('resizable');
|
||||
|
||||
@@ -5563,7 +5563,7 @@ describe('BrowserWindow module', () => {
|
||||
@@ -5571,7 +5571,7 @@ describe('BrowserWindow module', () => {
|
||||
});
|
||||
});
|
||||
|
||||
@@ -171,7 +171,7 @@
|
||||
// Not implemented on Linux.
|
||||
afterEach(closeAllWindows);
|
||||
|
||||
@@ -6764,7 +6764,7 @@ describe('BrowserWindow module', () => {
|
||||
@@ -6772,7 +6772,7 @@ describe('BrowserWindow module', () => {
|
||||
describe('"transparent" option', () => {
|
||||
afterEach(closeAllWindows);
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
--- electron/spec/api-power-monitor-spec.ts.orig 2024-10-09 13:53:06 UTC
|
||||
--- electron/spec/api-power-monitor-spec.ts.orig 2025-11-25 09:12:51 UTC
|
||||
+++ electron/spec/api-power-monitor-spec.ts
|
||||
@@ -18,7 +18,7 @@ describe('powerMonitor', () => {
|
||||
describe('powerMonitor', () => {
|
||||
@@ -7,5 +7,5 @@
|
||||
- ifdescribe(process.platform === 'linux' && process.env.DBUS_SYSTEM_BUS_ADDRESS != null)('when powerMonitor module is loaded with dbus mock', () => {
|
||||
+ ifdescribe((process.platform === 'linux' || process.platform === 'freebsd') && process.env.DBUS_SYSTEM_BUS_ADDRESS != null)('when powerMonitor module is loaded with dbus mock', () => {
|
||||
before(async () => {
|
||||
const systemBus = dbus.systemBus();
|
||||
const systemBus = await dbus.systemBus();
|
||||
const loginService = systemBus.getService('org.freedesktop.login1');
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- electron/spec/api-web-contents-spec.ts.orig 2025-11-13 23:04:07 UTC
|
||||
--- electron/spec/api-web-contents-spec.ts.orig 2025-11-25 09:12:51 UTC
|
||||
+++ electron/spec/api-web-contents-spec.ts
|
||||
@@ -2832,7 +2832,7 @@ describe('webContents module', () => {
|
||||
@@ -2838,7 +2838,7 @@ describe('webContents module', () => {
|
||||
});
|
||||
|
||||
// TODO(codebytere): OOPIF printing is disabled on Linux at the moment due to crashes.
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user