var path = require('path') var mv = require('mv') var common = require('./common') module.exports = { createApp: function createApp (opts, templatePath, callback) { common.initializeApp(opts, templatePath, path.join('resources', 'app'), function buildLinuxApp (err, tempPath) { if (err) return callback(err) mv(path.join(tempPath, 'electron'), path.join(tempPath, opts.name), function (err) { if (err) return callback(err) common.moveApp(opts, tempPath, callback) }) }) } }