chore: test appveyor build

This commit is contained in:
calebboyd
2017-08-23 23:33:11 -05:00
parent ba78c7dc54
commit fcd803686c
4 changed files with 32 additions and 1 deletions
+25
View File
@@ -0,0 +1,25 @@
environment:
node_version: "6"
branches:
except:
- master
install:
- ps: Install-Product node $env:node_version
- npm i
build: off
test: off
before_build:
- npm run log-node-version
build_script:
- npm run task-build-windows
artifacts:
- path: .nexe\6.11.2\Release\node.exe
cache:
- node_modules
+2
View File
@@ -9,6 +9,8 @@
"Caleb Boyd <caleb.boyd@hotmail.com>"
],
"scripts": {
"task-build-windows": "node -e \"require('.').compile({ empty: true })\"",
"log-node-version": "node -e \"console.log([process.platform, process.arch, process.version.slice(1)].join('-'))\"",
"prebuild": "rimraf lib && npm run lint",
"prepublish": "npm run build",
"lint": "prettier --parser typescript --no-semi --print-width 100 --single-quote --write \"src/**/*.ts\"",
+3
View File
@@ -172,6 +172,9 @@ export class NexeCompiler {
}
private _assembleDeliverable(header: NexeHeader, binary: NodeJS.ReadableStream) {
if (this.options.empty) {
return binary
}
const artifact = new Readable({ read() {} })
binary.on('data', (chunk: Buffer) => {
artifact.push(chunk)
+2 -1
View File
@@ -71,6 +71,7 @@ export interface NexeOptions {
function padRight(str: string, l: number) {
return (str + ' '.repeat(l)).substr(0, l)
}
const defaults = {
temp: process.env.NEXE_TEMP || join(process.cwd(), '.nexe'),
version: process.version.slice(1),
@@ -78,7 +79,7 @@ const defaults = {
configure: [],
make: [],
targets: [],
vcBuild: ['nosign', 'release'],
vcBuild: ['nosign', 'release', process.arch],
enableNodeCli: false,
bundle: true,
build: true,