Skip to content

Instantly share code, notes, and snippets.

@Sophrinix
Created December 6, 2013 06:43
Show Gist options
  • Save Sophrinix/242455529d66bff0cc5e to your computer and use it in GitHub Desktop.
Save Sophrinix/242455529d66bff0cc5e to your computer and use it in GitHub Desktop.
var tasks = [
// first task is to copy all files in the Resources directory, but ignore
// any directory that is the name of a known platform
function (cb) {
copyDir.call(this, {
src: path.join(this.projectDir, 'Resources'),
dest: this.xcodeAppDir,
ignoreRootDirs: ti.availablePlatformsNames
}, cb);
},
// next copy all files from the iOS specific Resources directory
function (cb) {
copyDir.call(this, {
src: path.join(this.projectDir, 'Resources', 'iphone'),
dest: this.xcodeAppDir
}, cb);
},
function (cb) {
copyDir.call(this, {
src: path.join(this.projectDir, 'Resources', 'ios'),
dest: this.xcodeAppDir
}, cb);
},
// last let's move that Settings.bundle into the xcodeAppDir, where it belongs.
//symlinkResources(path.join(this.projectDir, 'platform', 'iphone'), this.xcodeAppDir, false);
function (cb) {
copyDir.call(this, {
src: path.join(this.projectDir, 'platform', 'iphone'),
dest: this.xcodeAppDir
}, cb);
},
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment