Skip to content

Commit

Permalink
[ALOY-1302] Replace Ti DefaultIcon.png when alloy new is run
Browse files Browse the repository at this point in the history
  • Loading branch information
Feon Sua authored and Feon Sua committed Sep 10, 2015
1 parent 5d95a50 commit ecfe319
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Alloy/commands/new/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ var path = require('path'),

var BASE_ERR = 'Project creation failed. ';
var platformsDir = path.join(__dirname,'..','..','..','platforms');
var templatesDir = path.join(__dirname, '..', '..', '..', 'templates');

var test_apps_folder = (process.platform === 'win32') ?
path.join(process.env.APPDATA, 'npm', 'node_modules', 'alloy', 'test', 'apps') :
Expand Down Expand Up @@ -60,6 +61,9 @@ module.exports = function(args, program) {
// add the default app.tss file
U.copyFileSync(path.join(paths.template,CONST.GLOBAL_STYLE), path.join(paths.app,CONST.DIR.STYLE,CONST.GLOBAL_STYLE));

// copy DefaultIcon.png to project root
U.copyFileSync(path.join(templatesDir, 'DefaultIcon.png'), path.join(paths.project, 'DefaultIcon.png'));

// copy Resources platform-specific directories to assets
U.copyFileSync(
path.join(paths.template,'gitignore.txt'),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"mobileweb",
"appc-client"
],
"version": "1.7.6",
"version": "1.7.7",
"author": "Appcelerator, Inc. <[email protected]>",
"maintainers": [
{
Expand Down
Binary file added templates/DefaultIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ecfe319

Please sign in to comment.