chore: beta 6

This commit is contained in:
calebboyd
2017-08-13 17:33:09 -05:00
parent aeefcbeba3
commit 3e435ecbf8
3 changed files with 9 additions and 4 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "nexe",
"description": "Create a single executable out of your Node.js application",
"license": "MIT",
"version": "2.0.0-beta.4",
"version": "2.0.0-beta.6",
"contributors": [
"Craig Condon <craig.j.condon@gmail.com> (http://crcn.io)",
"Jared Allard <jaredallard@outlook.com>",
+4
View File
@@ -231,6 +231,10 @@ export class NexeCompiler {
const contents = inflate(this._getPayload(header), +header.paddingSize) + tail
const file = await compiler.readFileAsync('lib/_third_party_main.js')
file.contents += '\n' + contents
const mod = Buffer.byteLength(file.contents) % 16
if (mod) {
file.contents += ' '.repeat(16 - mod)
}
}
async compileAsync() {
+4 -3
View File
@@ -104,7 +104,8 @@ const alias = {
l: 'loglevel'
}
const argv = parseArgv(process.argv, { alias, default: defaults })
const help = `
const help =
`
nexe --help CLI OPTIONS
-b --build -- build from source
@@ -131,7 +132,7 @@ nexe --help CLI OPTIONS
--silent -- disable logging
--verbose -- set logging to verbose
-* variable key name * option can be used more than once`.trim() + '\n'
-* variable key name * option can be used more than once`.trim() + EOL
function flattenFilter(...args: any[]): string[] {
return ([] as string[]).concat(...args).filter(x => x)
@@ -182,7 +183,7 @@ function extractName(options: NexeOptions) {
function normalizeOptionsAsync(input: Partial<NexeOptions>) {
if (argv.help || argv._.some((x: string) => x === 'version')) {
process.stderr.write(argv.help ? help : '2.0.0-beta.4' + EOL, () => process.exit(0))
process.stderr.write(argv.help ? help : '2.0.0-beta.6' + EOL, () => process.exit(0))
}
const options = Object.assign({}, defaults, input) as NexeOptions