@@ -34970,7 +34970,7 @@ async function getAvailableWindowsSDKVersion() {
3497034970 const entries = await fs.promises.readdir(basePath);
3497134971 const versions = entries.filter(entry => /^10\.0\.\d+\.\d+$/.test(entry));
3497234972 allVersions.push(...versions);
34973- core.debug(`Found Windows SDK versions in ${basePath}: `);
34973+ core.debug(`Found Windows SDK versions in " ${basePath}" `);
3497434974 versions.forEach(version => core.debug(` - ${version}`));
3497534975 }
3497634976 catch (error) {
@@ -35001,7 +35001,7 @@ async function isWindowsSDKVersionAvailable(version) {
3500135001 try {
3500235002 const versionPath = path.join(basePath, version);
3500335003 await fs.promises.access(versionPath, fs.constants.R_OK);
35004- core.info(`Found Windows SDK version ${version} at: ${versionPath}`);
35004+ core.info(`Found Windows SDK version ${version} at: " ${versionPath}" `);
3500535005 return true;
3500635006 }
3500735007 catch (error) {
@@ -35049,17 +35049,14 @@ async function printFileContents(filePath) {
3504935049}
3505035050async function removeWindowsMobileSDKReference(vcxprojPath) {
3505135051 let vcxprojContent = await fs.promises.readFile(vcxprojPath, 'utf8');
35052- const itemGroupRegex = /([ \t]*<ItemGroup>\r?\n[ \t]*<SDKReference Include="WindowsMobile, Version=10.0.26100.0 " \/>\r?\n[ \t]*<\/ItemGroup>\r?\n)/;
35052+ const itemGroupRegex = /([ \t]*<ItemGroup>\r?\n[ \t]*<SDKReference Include="WindowsMobile, Version=[^"\s]+ " \/>\r?\n[ \t]*<\/ItemGroup>\r?\n)/;
3505335053 const found = itemGroupRegex.test(vcxprojContent);
3505435054 if (found) {
35055- core.info(`Removing WindowsMobile SDKReference ItemGroup from ${vcxprojPath}... `);
35055+ core.info(`Removing WindowsMobile SDKReference ItemGroup from " ${vcxprojPath}" `);
3505635056 vcxprojContent = vcxprojContent.replace(itemGroupRegex, '');
3505735057 await fs.promises.writeFile(vcxprojPath, vcxprojContent, 'utf8');
3505835058 await printFileContents(vcxprojPath);
3505935059 }
35060- else {
35061- core.info(`No WindowsMobile SDKReference ItemGroup found in ${vcxprojPath}`);
35062- }
3506335060 return found;
3506435061}
3506535062async function associateAppWithStore(vcxprojPath, sourcePackageAssociationFilePath) {
@@ -35084,7 +35081,7 @@ async function associateAppWithStore(vcxprojPath, sourcePackageAssociationFilePa
3508435081 }
3508535082 }
3508635083 await writeXml(appxManifestPath, appxManifestXml);
35087- core.info(`Updated Package.appxmanifest with identity information from ${packageStoreAssociationFilePath}`);
35084+ core.info(`Updated Package.appxmanifest with identity information from " ${packageStoreAssociationFilePath}" `);
3508835085 await printFileContents(appxManifestPath);
3508935086}
3509035087async function copyPackageStoreAssociationFile(vcxprojPath, sourcePackageAssociationFilePath) {
@@ -35099,13 +35096,13 @@ async function copyPackageStoreAssociationFile(vcxprojPath, sourcePackageAssocia
3509935096 }
3510035097 if (!/<None[^>]*Include="Package\.StoreAssociation\.xml"/.test(vcxprojContent)) {
3510135098 const itemGroup = ' <ItemGroup>\n <None Include="Package.StoreAssociation.xml" />\n </ItemGroup>\n';
35102- vcxprojContent = vcxprojContent.replace(/([ \t]*<\/ItemGroup>\r?\n)([ \t]*<Import Project="\$\(VCTargetsPath\)\\Microsoft\.Cpp\.targets" \/>)/, '$1' + itemGroup + '$2' );
35099+ vcxprojContent = vcxprojContent.replace(/([ \t]*<\/ItemGroup>\r?\n)([ \t]*<Import Project="\$\(VCTargetsPath\)\\Microsoft\.Cpp\.targets" \/>)/, `$1${ itemGroup}$2` );
3510335100 updated = true;
3510435101 }
3510535102 if (updated) {
3510635103 await fs.promises.writeFile(vcxprojPath, vcxprojContent, 'utf8');
35104+ await printFileContents(vcxprojPath);
3510735105 }
35108- await printFileContents(vcxprojPath);
3510935106 return packageStoreAssociationFilePath;
3511035107}
3511135108
@@ -37108,7 +37105,7 @@ const main = async () => {
3710837105 catch (error) {
3710937106 throw new Error(`Output directory not found: "${outputDirectory}".`);
3711037107 }
37111- core.info(`outputDirectory: ${outputDirectory}`);
37108+ core.info(`outputDirectory: " ${outputDirectory}" `);
3711237109 core.setOutput(`output-directory`, outputDirectory);
3711337110 const allGlobber = await glob.create(path.join(outputDirectory, '**/*'));
3711437111 const allFiles = await allGlobber.glob();
0 commit comments