Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Commit

Permalink
fix: app-build sometimes failes when name changes
Browse files Browse the repository at this point in the history
  • Loading branch information
macrozone committed Feb 22, 2019
1 parent 04987e0 commit 00f7385
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/commands/build_apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ export default (environment, done) => {
CORDOVA_APP_BUILD_NUMBER: getBuildNumberFromGit(),
CORDOVA_APP_VERSION: getVersionFromTag(),
};

// cleanup .meteor/local/cordova-build as it sometimes has problems with changing app name in mobile-config
const meteorLocalBuildDir = `${config.appDir}/.meteor/local/cordova-build/`;
if (fs.existsSync(meteorLocalBuildDir)) {
console.log(`\ncleaning up ${meteorLocalBuildDir} before build...`);
rimraf.sync(meteorLocalBuildDir);
}

execMeteorBuild({ config, environment, additionalBuildEnv });

// open ios project if exists
Expand Down

0 comments on commit 00f7385

Please sign in to comment.