dashboardjavacloudcoapiotiot-analyticsiot-platformiot-solutionskafkalwm2mmicroservicesmiddlewaremqttnettyplatformsnmpthingsboardvisualizationwebsocketswidgets
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
2.6 KiB
36 lines
2.6 KiB
// SPDX-FileCopyrightText: Copyright ThingsBoard, Inc.
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
// The Chromium builds shipped with the packages. They must be the Chromium release that playwright-core is released with,
|
|
// which install.js checks, so a Playwright upgrade needs new builds here. The Docker image has the chromium package of
|
|
// Debian instead: see docker/Dockerfile.
|
|
//
|
|
// The Chromium project publishes builds of the main branch only, so these are the builds from where the release was
|
|
// branched off, without the fixes made on the release branch later. The Debian package of the image has those fixes.
|
|
//
|
|
// To update after a Playwright upgrade, for the version that the error of install.js names:
|
|
// 1. Find where the release was branched off: chromium_main_branch_position in
|
|
// https://chromiumdash.appspot.com/fetch_version?version=<version>
|
|
// 2. For Linux_x64 and for Win_x64, take the highest snapshot build that is not above that position. Builds are listed by
|
|
// the start of their number, so shorten the start until one appears:
|
|
// https://www.googleapis.com/storage/v1/b/chromium-browser-snapshots/o?delimiter=/&fields=prefixes&prefix=Linux_x64/<start of the position>
|
|
// 3. Set the version (the release from the error, ending in .0) and the two paths, and build the module. It fails with
|
|
// the SHA-256 of an archive: put it in the sha256 of that platform and build again, until both pass.
|
|
// install.js also fails if an unpacked build is not the version set here.
|
|
module.exports = {
|
|
// The packages: snapshot builds of the open source code, published by the Chromium project.
|
|
// exclude: glob patterns of the files that are not packaged
|
|
// strip: glob patterns of the executables to strip of their symbols, when GNU strip is installed
|
|
snapshot: {
|
|
version: '159.0.8154.0',
|
|
baseUrl: 'https://commondatastorage.googleapis.com/chromium-browser-snapshots',
|
|
// The .pak.info files, 70 MB, are left from the build of the translations; the browser does not read them
|
|
linux: { path: 'Linux_x64/1739867/chrome-linux.zip', sha256: 'e3dc14d0c796c4cff0a2e67e1d2d384a5228ab7e6adb4d4822d813772e4b8b4b',
|
|
exclude: ['locales/*.pak.info'],
|
|
// The Linux builds come with their symbols, 180 MB
|
|
strip: ['chrome', 'chrome_crashpad_handler', 'chrome_sandbox', '*.so*'] },
|
|
// interactive_ui_tests.exe is a test program of 348 MB that the service does not need
|
|
windows: { path: 'Win_x64/1739762/chrome-win.zip', sha256: '097cc334674de52de3653519d8205bc227c7943f6a6cc0d2a0fc4a8f685284db',
|
|
exclude: ['interactive_ui_tests.exe'] }
|
|
}
|
|
};
|
|
|