This commit is contained in:
2026-06-25 12:41:33 -05:00
parent 8c60e154a7
commit 56e34475fc
16 changed files with 113 additions and 46 deletions

View File

@@ -1,7 +1,7 @@
import { spawn } from 'node:child_process';
import fs from 'node:fs';
import path from 'node:path';
import { config } from '../config.js';
import { nameWithoutExtensionAny, path } from '../utils/pathUtils.js';
// Wraps a PSADT/package source folder into a `.intunewin` using the Microsoft
// Win32 Content Prep Tool (IntuneWinAppUtil.exe) on Windows, or an optional
@@ -45,7 +45,7 @@ export function buildPackagerInvocation({ toolPath, sourceFolder, setupFile, out
// IntuneWinAppUtil names the output after the setup file's base name.
export function expectedOutputFile(outputDir, setupFile) {
return path.join(outputDir, `${path.parse(setupFile).name}.intunewin`);
return path.join(outputDir, `${nameWithoutExtensionAny(setupFile, 'package')}.intunewin`);
}
export function buildIntuneWin({ sourceFolder, setupFile, outputDir }) {