diff --git a/package.json b/package.json index 24d08f3..30bf984 100755 --- a/package.json +++ b/package.json @@ -28,8 +28,8 @@ "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject", "serve-prod": "npm run build:react && http-server build", - "build:ios": "mkdir -p ./cordova-app/www/ && cp -a ./build/* ./cordova-app/www/ && cd cordova-app && cordova platform rm ios && cordova platform add ios && cordova build ios --prod --release --device --buildConfig build.json && cd ..", - "build:android": "mkdir -p ./cordova-app/www/ && cp -a ./build/* ./cordova-app/www/ && cd cordova-app && cordova platform rm android && cordova platform add android && cordova build android --prod --release --buildConfig build.json && cd ..", + "build:ios": "./scripts/runWithVars.sh 'mkdir -p ./cordova-app/www/ && cp -a ./build/* ./cordova-app/www/ && cd cordova-app && cordova platform rm ios && cordova platform add ios && cordova build ios --prod --release --device --buildConfig build.json && cd ..'", + "build:android": "./scripts/runWithVars.sh 'mkdir -p ./cordova-app/www/ && cp -a ./build/* ./cordova-app/www/ && cd cordova-app && cordova platform rm android && cordova platform add android && cordova build android --prod --release --buildConfig build.json && cd ..'", "build:react": "./scripts/runWithVars.sh 'react-scripts build'", "beta:android": "cd cordova-app; fastlane android beta", "beta:ios": "cd cordova-app; fastlane ios beta",