chore: test appveyor build
This commit is contained in:
@@ -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
|
||||
@@ -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\"",
|
||||
|
||||
@@ -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
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user