1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-10-07 20:55:14 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee

hermes路径变化

This commit is contained in:
sunnylqm
2019-08-28 12:21:18 +08:00
parent b6a08a19c8
commit cfdc26f71d

View File

@@ -110,8 +110,9 @@ async function compileHermesByteCode(bundleName, outputFolder) {
} catch (e) {}
if (enableHermes) {
console.log(`Hermes enabled, now compiling to hermes bytecode:\n`);
const hermesPath = fs.existsSync('node_modules/hermes-engine') ? 'node_modules/hermes-engine' : 'node_modules/hermesvm';
exec(`
node_modules/hermesvm/${getHermesOSBin()}/hermes -emit-binary -out ${outputFolder}/${bundleName} ${outputFolder}/${bundleName} -O
${hermesPath}/${getHermesOSBin()}/hermes -emit-binary -out ${outputFolder}/${bundleName} ${outputFolder}/${bundleName} -O
echo Compiling done.
`);
}
@@ -421,9 +422,9 @@ export const commands = {
throw new Error('Platform must be specified.');
}
// const { version, major, minor } = getRNVersion();
const { version, major, minor } = getRNVersion();
// console.log('Bundling with React Native version: ', version);
console.log('Bundling with React Native version: ', version);
await runReactNativeBundleCommand(bundleName, dev, entryFile, intermediaDir, platform);