chore: include d3dcompiler_47.dll in scan folder (#225720)

This commit is contained in:
Raymond Zhao
2024-08-16 10:57:28 -07:00
committed by GitHub
parent c5ef039cd8
commit 8cf8472903
+7 -1
View File
@@ -26,6 +26,9 @@ const BUILD_TARGETS = [
{ platform: 'linux', arch: 'arm64' },
];
// The following files do not have PDBs downloaded for them during the download symbols process.
const excludedCheckList = ['d3dcompiler_47.dll'];
BUILD_TARGETS.forEach(buildTarget => {
const dashed = (/** @type {string | null} */ str) => (str ? `-${str}` : ``);
const platform = buildTarget.platform;
@@ -46,7 +49,6 @@ BUILD_TARGETS.forEach(buildTarget => {
if (platform === 'win32') {
tasks.push(
() => electron.dest(destinationPdb, { ...config, platform, arch: arch === 'armhf' ? 'arm' : arch, pdbs: true }),
util.rimraf(path.join(destinationExe, 'd3dcompiler_47.dll')),
() => confirmPdbsExist(destinationExe, destinationPdb)
);
}
@@ -110,6 +112,10 @@ function nodeModules(destinationExe, destinationPdb, platform) {
function confirmPdbsExist(destinationExe, destinationPdb) {
readdirSync(destinationExe).forEach(file => {
if (excludedCheckList.includes(file)) {
return;
}
if (file.endsWith('.dll') || file.endsWith('.exe')) {
const pdb = `${file}.pdb`;
if (!existsSync(path.join(destinationPdb, pdb))) {