cd /phonegap
phonegap create customname com.mywebsite.customname
phonegap install ios com.mywebsite.customname customname
phonegap build ios com.mywebsite.customname customname
[phonegap] the options undefined ...
phonegap -d create my_test com.example.mytest MyTest
Creating a new cordova project with name "MyTest" and id "com.example.mytest" at location "/code/my_test"
var self = this,
version = self.phonegap.version().phonegap,
uri = 'https://github.com/phonegap/phonegap-app-hello-world/archive/' +
version + '.tar.gz';
// customize default app
cordova.config(options.path, {
lib: {
www: {
id: 'phonegap',
version: version,
uri: uri
}
}
});
Using custom www assets from https://github.com/phonegap/phonegap-app-hello-world/archive/3.4.0.tar.gz
var configPath = util.projectConfig(dir);
// Add template config.xml for apps that are missing it
if (!fs.existsSync(configPath)) {
var template_config_xml = path.join(__dirname, '..', 'templates', 'config.xml');
shell.cp(template_config_xml, configPath);
// Write out id and name to config.xml
var config = new ConfigParser(configPath);
config.setPackageName(id);
config.setName(name);
config.write();
}
<!-- config.xml reference: https://build.phonegap.com/docs/config-xml --><widget xmlns = "http://www.w3.org/ns/widgets" xmlns:gap = "http://phonegap.com/ns/1.0" id = "com.example.test" version = "1.0.0">
<name>Test</name>