Install patched LLDB on vscode extension activation (#1637)

Download and install the WAMR patched LLDB binary on vscode extension activation.

This allows the user to download the packaged .vsix file, where the activation script
should handle determining what LLDB binary they should use, and install it in the
correct location.
This commit is contained in:
Callum Macmillan
2022-12-01 02:39:14 +00:00
committed by GitHub
parent ce3458da99
commit 6eaf779a2d
7 changed files with 202 additions and 28 deletions

View File

@ -8,8 +8,8 @@ import * as path from 'path';
import * as fs from 'fs';
import * as os from 'os';
import {
CreateDirectory,
CopyFiles,
createDirectory,
copyFiles,
checkFolderName,
} from '../utilities/directoryUtilities';
import { getUri } from '../utilities/getUri';
@ -84,16 +84,16 @@ export class NewProjectPanel {
}
}
CreateDirectory(path.join(ROOT_PATH, '.wamr'));
CreateDirectory(path.join(ROOT_PATH, 'include'));
CreateDirectory(path.join(ROOT_PATH, 'src'));
createDirectory(path.join(ROOT_PATH, '.wamr'));
createDirectory(path.join(ROOT_PATH, 'include'));
createDirectory(path.join(ROOT_PATH, 'src'));
CopyFiles(
copyFiles(
path.join(EXT_PATH, 'resource/scripts/CMakeLists.txt'),
path.join(ROOT_PATH, '.wamr/CMakeLists.txt')
);
CopyFiles(
copyFiles(
path.join(EXT_PATH, 'resource/scripts/project.cmake'),
path.join(ROOT_PATH, '.wamr/project.cmake')
);