mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Ignore iOS on build entirely
This commit is contained in:
@@ -79,13 +79,15 @@ cordova.buildTargets = function (localPath, targets, options) {
|
||||
|
||||
verboseLog('Running build for platforms:', platforms);
|
||||
checkRequestedPlatforms(platforms);
|
||||
|
||||
_.each(platforms, function (platform) {
|
||||
platforms = _.filter(platforms, function (platform) {
|
||||
if (! _.contains(availablePlatforms, platform)) {
|
||||
Console.warn(platform + ': skipping platform not available on your system');
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
_.each(platforms, function (platform) {
|
||||
requirePlatformReady(platform);
|
||||
});
|
||||
|
||||
|
||||
@@ -733,6 +733,8 @@ var buildCommand = function (options) {
|
||||
appName: appName
|
||||
}));
|
||||
} catch (err) {
|
||||
if (err instanceof main.ExitWithCode)
|
||||
throw err;
|
||||
Console.printError(err, "Error while building for mobile platforms");
|
||||
return 1;
|
||||
}
|
||||
@@ -814,6 +816,7 @@ var buildCommand = function (options) {
|
||||
var platformPath = path.join(outputPath, platformName);
|
||||
|
||||
if (platformName === 'ios') {
|
||||
if (process.platform !== 'darwin') return;
|
||||
files.cp_r(buildPath, path.join(platformPath, 'project'));
|
||||
fs.writeFileSync(
|
||||
path.join(platformPath, 'README'),
|
||||
|
||||
Reference in New Issue
Block a user