Skip to content

Commit

Permalink
[TIMOB-18559] iOS CLI: Fixed titaniumIosSdkPath renamed to platformPath
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalter committed Feb 25, 2015
1 parent bbab3d0 commit 93ad4db
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions iphone/cli/commands/_buildModule.js
Expand Up @@ -182,8 +182,8 @@ iOSModuleBuilder.prototype.initialize = function (next) {
this.metaData = [];
this.metaDataFile = path.join(this.projectDir, 'metadata.json');
this.manifestFile = path.join(this.projectDir, 'manifest');
this.titaniumIosSdkPath = appc.fs.resolvePath(__dirname, '..', '..');
this.templatesDir = path.join(this.titaniumIosSdkPath, 'templates');
this.platformPath = appc.fs.resolvePath(__dirname, '..', '..');
this.templatesDir = path.join(this.platformPath, 'templates');
this.assetsTemplateFile = path.join(this.templatesDir, 'module', 'default', 'template', 'iphone', 'Classes', '{{ModuleIdAsIdentifier}}ModuleAssets.m.ejs');

this.universalBinaryDir = path.join(this.projectDir, 'build');
Expand Down Expand Up @@ -356,7 +356,7 @@ iOSModuleBuilder.prototype.compileJS = function (next) {
}

titaniumPrepHook(
path.join(this.titaniumIosSdkPath, 'titanium_prep'),
path.join(this.platformPath, 'titanium_prep'),
[this.manifest.moduleid, this.assetsDir],
{'jsFiles': this.jsFilesToEncrypt, 'placeHolder': 'mainEncryptedAsset'},
cb
Expand All @@ -379,7 +379,7 @@ iOSModuleBuilder.prototype.compileJS = function (next) {
cb();
} else {
titaniumPrepHook(
path.join(this.titaniumIosSdkPath, 'titanium_prep'),
path.join(this.platformPath, 'titanium_prep'),
[this.manifest.moduleid, this.assetsDir],
{'jsFiles': this.jsFilesToEncrypt, 'placeHolder': 'allEncryptedAssets'},
cb
Expand Down
2 changes: 1 addition & 1 deletion iphone/cli/hooks/install.js
Expand Up @@ -70,7 +70,7 @@ exports.init = function (logger, config, cli) {
}

logger.info(__('Initiating iTunes sync'));
run('osascript', path.join(builder.titaniumIosSdkPath, 'itunes_sync.scpt'), function (code, out, err) {
run('osascript', path.join(builder.platformPath, 'itunes_sync.scpt'), function (code, out, err) {
if (code) {
if (err.indexOf('(-1708)') !== -1) {
// err == "itunes_sync.scpt: execution error: iTunes got an error: every source doesn’t understand the count message. (-1708)"
Expand Down
2 changes: 1 addition & 1 deletion iphone/cli/hooks/package.js
Expand Up @@ -91,7 +91,7 @@ exports.init = function (logger, config, cli) {
logger.info(__('Launching Xcode: %s', build.xcodeEnv.xcodeapp.cyan));
exec('open -a "' + build.xcodeEnv.xcodeapp + '"', function (err, stdout, stderr) {
process.env.TI_ENV_NAME = process.env.STUDIO_NAME || 'Terminal.app';
exec('osascript "' + path.join(build.titaniumIosSdkPath, 'xcode_organizer.scpt') + '"', { env: process.env }, function (err, stdout, stderr) {
exec('osascript "' + path.join(build.platformPath, 'xcode_organizer.scpt') + '"', { env: process.env }, function (err, stdout, stderr) {
logger.info(__('Packaging complete'));
finished();
});
Expand Down

0 comments on commit 93ad4db

Please sign in to comment.