fix reg export command

pull/305/head
Andrew Kahr 2022-01-24 04:09:09 -08:00
parent 98cb59272c
commit a65235e960
3 changed files with 9 additions and 7 deletions

7
dist/index.js vendored
View File

@ -504,8 +504,9 @@ class Docker {
//Setup prerequisite files/folders for a windows-based docker run //Setup prerequisite files/folders for a windows-based docker run
static setupWindowsRun(platform, silent = false) { static setupWindowsRun(platform, silent = false) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
const makeRegKeyFolderCommand = 'mkdir c:/regkeys'; if (!fs.existsSync('c:/regkeys')) {
yield exec_1.exec(makeRegKeyFolderCommand, undefined, { silent }); fs.mkdirSync('c:/regkeys');
}
switch (platform) { switch (platform) {
//These all need the Windows 10 SDK //These all need the Windows 10 SDK
case 'StandaloneWindows': case 'StandaloneWindows':
@ -523,7 +524,7 @@ class Docker {
static generateWinSDKRegKeys(silent = false) { static generateWinSDKRegKeys(silent = false) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
// Export registry keys that point to the location of the windows 10 sdk // Export registry keys that point to the location of the windows 10 sdk
const exportWinSDKRegKeysCommand = 'echo Y| reg export "HKLM\\SOFTWARE\\WOW6432Node\\Microsoft\\Microsoft SDKs\\Windows\\v10.0" c:/regkeys/winsdk.reg'; const exportWinSDKRegKeysCommand = 'reg export "HKLM\\SOFTWARE\\WOW6432Node\\Microsoft\\Microsoft SDKs\\Windows\\v10.0" c:/regkeys/winsdk.reg /y';
yield exec_1.exec(exportWinSDKRegKeysCommand, undefined, { silent }); yield exec_1.exec(exportWinSDKRegKeysCommand, undefined, { silent });
}); });
} }

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -184,8 +184,9 @@ class Docker {
//Setup prerequisite files/folders for a windows-based docker run //Setup prerequisite files/folders for a windows-based docker run
static async setupWindowsRun(platform, silent = false) { static async setupWindowsRun(platform, silent = false) {
const makeRegKeyFolderCommand = 'mkdir c:/regkeys'; if (!fs.existsSync('c:/regkeys')) {
await exec(makeRegKeyFolderCommand, undefined, { silent }); fs.mkdirSync('c:/regkeys');
}
switch (platform) { switch (platform) {
//These all need the Windows 10 SDK //These all need the Windows 10 SDK
case 'StandaloneWindows': case 'StandaloneWindows':
@ -203,7 +204,7 @@ class Docker {
static async generateWinSDKRegKeys(silent = false) { static async generateWinSDKRegKeys(silent = false) {
// Export registry keys that point to the location of the windows 10 sdk // Export registry keys that point to the location of the windows 10 sdk
const exportWinSDKRegKeysCommand = const exportWinSDKRegKeysCommand =
'echo Y| reg export "HKLM\\SOFTWARE\\WOW6432Node\\Microsoft\\Microsoft SDKs\\Windows\\v10.0" c:/regkeys/winsdk.reg'; 'reg export "HKLM\\SOFTWARE\\WOW6432Node\\Microsoft\\Microsoft SDKs\\Windows\\v10.0" c:/regkeys/winsdk.reg /y';
await exec(exportWinSDKRegKeysCommand, undefined, { silent }); await exec(exportWinSDKRegKeysCommand, undefined, { silent });
} }