Skip to content

Commit

Permalink
Merge pull request #1150 from flexn-io/fix/webos_html
Browse files Browse the repository at this point in the history
fixed webos CLI not finding index
  • Loading branch information
pavjacko authored Oct 10, 2023
2 parents 9d33477 + 3684ee1 commit 8d2b938
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/sdk-webos/src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import {
getAppId,
getAppTitle,
getAppDescription,
copyFileSync
} from '@rnv/core';
import semver from 'semver';
import { runWebosSimOrDevice } from './deviceManager';
Expand Down Expand Up @@ -94,9 +95,19 @@ export const buildWebOSProject = async (c: RnvContext) => {

await buildCoreWebpackProject(c);


if (!c.program.hosted) {
const tDir = getPlatformProjectDir(c);
const tDir = path.join(getPlatformProjectDir(c)!, 'build');
const tOut = path.join(getPlatformBuildDir(c)!, 'output');

const appinfoSrc = path.join(getPlatformProjectDir(c)!, 'appinfo.json');
const appinfoDest = path.join(tDir, 'appinfo.json');

copyFileSync(appinfoSrc, appinfoDest);
copyFileSync(path.join(getPlatformProjectDir(c)!, 'icon.png'), path.join(tDir, 'icon.png'));
copyFileSync(path.join(getPlatformProjectDir(c)!, 'largeIcon.png'), path.join(tDir, 'largeIcon.png'));
copyFileSync(path.join(getPlatformProjectDir(c)!, 'splashBackground.png'), path.join(tDir, 'splashBackground.png'));

await execCLI(c, CLI_WEBOS_ARES_PACKAGE, `-o ${tOut} ${tDir} -n`);

logSuccess(`Your IPK package is located in ${chalk().cyan(tOut)} .`);
Expand Down

0 comments on commit 8d2b938

Please sign in to comment.