Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
64 lines
1.5 KiB
JavaScript
Executable file
64 lines
1.5 KiB
JavaScript
Executable file
'use strict';
|
|
var Host = require('./host');
|
|
var Session = require('./session');
|
|
|
|
exports.help = {
|
|
group: {
|
|
title: 'Socket Host',
|
|
description: 'Socket host uses mozbase to manage gecko applications.'
|
|
},
|
|
arguments: {
|
|
'--serial': {
|
|
dest: 'device_serial',
|
|
defaultValue: null,
|
|
help: 'Serial port (only with buildapp=device)',
|
|
type: 'string'
|
|
},
|
|
|
|
'--symbols-path': {
|
|
dest: 'symbols_path',
|
|
help: 'Path to build symbols used by crash reporting.',
|
|
defaultValue: null,
|
|
type: 'string'
|
|
},
|
|
|
|
'--b2gpath': {
|
|
dest: 'b2g_home',
|
|
help: 'Path to b2g directory.',
|
|
defaultValue: null,
|
|
type: 'string'
|
|
},
|
|
|
|
'--buildapp': {
|
|
type: 'string',
|
|
choices: ['device', 'desktop', 'emulator'],
|
|
defaultValue: 'desktop',
|
|
help: 'Type of gecko application to run.'
|
|
},
|
|
|
|
'--runtime': {
|
|
defaultValue: null,
|
|
help: 'Path to b2g-bin when using buildapp=desktop'
|
|
},
|
|
|
|
'--device-type': {
|
|
dest: 'device_type',
|
|
defaultValue: 'phone'
|
|
},
|
|
|
|
'--dump-path': {
|
|
dest: 'dump_path',
|
|
defaultValue: process.cwd() + '/crash',
|
|
help: 'path in which to store crash dumps. Will default to ' +
|
|
'the \'minidumps\' directory in the current working directory'
|
|
},
|
|
|
|
'--chrome': {
|
|
defaultValue: 'chrome://b2g/content/shell.html',
|
|
help: '--chrome option to set when starting b2g-desktop'
|
|
}
|
|
}
|
|
};
|
|
|
|
exports.createHost = Host.create;
|
|
exports.createSession = Session.create;
|