mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-04-21 13:57:18 +00:00

Increased the heap size for the packager. Signed-off-by: Akos Kitta <kittaakos@typefox.io>
34 lines
1.2 KiB
JavaScript
Executable File
34 lines
1.2 KiB
JavaScript
Executable File
#!/usr/bin/env node
|
|
// @ts-check
|
|
const { versionInfo } = require('./utils');
|
|
const yargs = require('yargs');
|
|
|
|
(() => {
|
|
yargs
|
|
.command({
|
|
command: 'name',
|
|
describe: 'Returns with the application name we build. The name includes the full application name with the version, the platform and the file extension.',
|
|
handler: () => {
|
|
const { platform } = process;
|
|
let ext = undefined;
|
|
let os = undefined;
|
|
if (platform === 'darwin') {
|
|
ext = 'dmg';
|
|
os = 'mac';
|
|
} else if (platform === 'win32') {
|
|
ext = 'zip';
|
|
os = 'win';
|
|
} else if (platform === 'linux') {
|
|
ext = 'tar.xz';
|
|
os = 'linux';
|
|
} else {
|
|
process.stderr.write(`Unexpected platform: ${platform}.`);
|
|
process.exit(1);
|
|
}
|
|
process.stdout.write(`Arduino Pro IDE-${versionInfo().version}-${os}.${ext}`);
|
|
process.exit(0);
|
|
}
|
|
})
|
|
.demandCommand(1)
|
|
.argv;
|
|
})(); |