react-native-navigation的迁移库

install-android.js 470B

1234567891011121314151617
  1. const includes = require('lodash/includes')
  2. const exec = require('shell-utils').exec;
  3. const release = includes(process.argv, '--release');
  4. const isWindows = process.platform === 'win32' ? true : false;
  5. run();
  6. function run() {
  7. if (isWindows) {
  8. exec.execSync(`cd playground/android && gradlew ${release ? 'installRelease' : 'installDebug'}`);
  9. } else {
  10. exec.execSync(`cd playground/android && ./gradlew ${release ? 'installRelease' : 'installDebug'}`);
  11. }
  12. }