Initial
This commit is contained in:
@@ -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 }) {
|
||||
|
||||
Reference in New Issue
Block a user