docs: function runRebase(options) {
      const platforms = detectPorting(options.platform);
      if (platforms.length <= 0) {
          return Promise.resolve();
      } else {
          const target = platforms[0];
          options.platform = target;
          runBuild(options)
          .then(() => {
              if ('dev' !== target) {
                  const srcDir = path.join(__dirname, '..', config.dir.pkg, config.dir.porting + '_' + target);
                  const dstDir = path.join(__dirname, '..', config.dir.pkg, config.dir.porting);
                  if (fs.existsSync(srcDir)) {
                      fs.moveSync(srcDir, dstDir);
                  }
              }
          })
          .catch((reason) => {
              console.error(reason);
              process.exit(1);
          });
      }
  }