Skip to content

Commit

Permalink
fix: small bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius456 committed Jan 16, 2024
1 parent e650c32 commit 976d6e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/sdk-webos/src/deviceManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,17 @@ const launchAppOnSimulator = async (c: RnvContext, appPath: string) => {
logTask('launchAppOnSimulator');

const webosSdkPath = getRealPath(c, c.buildConfig?.sdks?.WEBOS_SDK);
const simulatorDirPath = path.join(webosSdkPath, 'Simulator');

if (!webosSdkPath) {
return Promise.reject(`c.buildConfig.sdks.WEBOS_SDK undefined`);
}

const simulatorDirPath = path.join(webosSdkPath, 'Simulator');

const webOS_cli_version = await execCLI(c, CLI_WEBOS_ARES_LAUNCH, `-V`);

const regex = /\d+(\.\d+)?/g;
const webOS_cli_version_number = Number(webOS_cli_version.match(regex)[0]);
const webOS_cli_version_number = Number(webOS_cli_version.match(regex)?.at(0));
if (webOS_cli_version_number < 1.12) {
return logError(`Your webOS TV CLI version is ${webOS_cli_version_number}. You need to update it up to >=1.12`);
}
Expand Down

0 comments on commit 976d6e0

Please sign in to comment.