Skip to content

Commit c95b0dd

Browse files
committed
chore(developer): normalize case on input filenames in kmc
Fixes #9611.
1 parent a9fb7a1 commit c95b0dd

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

developer/src/kmc/src/commands/build.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ async function build(filename: string, parentCallbacks: NodeCompilerCallbacks, o
108108
return false;
109109
}
110110

111+
// Normalize case for the filename and expand the path; this avoids false
112+
// positive case mismatches on input filenames and glommed paths
113+
filename = fs.realpathSync.native(filename);
114+
111115
let builder = null;
112116

113117
// If infile is a directory, then we treat that as a project and build it

developer/src/kmc/src/commands/buildWindowsPackageInstaller/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ export async function buildWindowsPackageInstaller(infile: string, options: Wind
2525
titleImageFilename: options.titleImage
2626
}
2727

28+
// Normalize case for the filename and expand the path; this avoids false
29+
// positive case mismatches on input filenames and glommed paths
30+
infile = fs.realpathSync.native(infile);
31+
2832
const callbacks: CompilerCallbacks = new NodeCompilerCallbacks({...defaultCompilerOptions, ...options});
2933
const compiler = new WindowsPackageInstallerCompiler(callbacks);
3034

0 commit comments

Comments
 (0)