2019-01-15 18:36:09 +00:00
|
|
|
const fs = require("fs");
|
2019-02-05 17:15:20 +00:00
|
|
|
const fse = require("fs-extra");
|
2019-01-15 18:36:09 +00:00
|
|
|
const os = require("os");
|
|
|
|
const path = require("path");
|
|
|
|
const nexe = require("nexe");
|
2019-02-05 17:15:20 +00:00
|
|
|
|
2019-01-15 18:36:09 +00:00
|
|
|
nexe.compile({
|
|
|
|
debugBundle: true,
|
|
|
|
input: path.join(__dirname, "../out/cli.js"),
|
2019-02-21 17:55:42 +00:00
|
|
|
output: `cli-${process.env.TRAVIS_OS_NAME || os.platform()}`,
|
|
|
|
targets: [os.platform()],
|
2019-01-15 18:36:09 +00:00
|
|
|
native: {
|
2019-02-05 17:15:20 +00:00
|
|
|
spdlog: {
|
2019-01-18 21:46:40 +00:00
|
|
|
additionalFiles: [
|
2019-02-05 17:15:20 +00:00
|
|
|
'spdlog.node'
|
2019-01-18 21:46:40 +00:00
|
|
|
],
|
|
|
|
},
|
2019-01-15 18:36:09 +00:00
|
|
|
},
|
|
|
|
/**
|
|
|
|
* To include native extensions, do NOT install node_modules for each one. They
|
|
|
|
* are not required as each extension is built using webpack.
|
|
|
|
*/
|
2019-01-18 21:46:40 +00:00
|
|
|
resources: [
|
|
|
|
path.join(__dirname, "../package.json"),
|
2019-02-05 17:15:20 +00:00
|
|
|
path.join(__dirname, "../build/**/*"),
|
2019-01-18 21:46:40 +00:00
|
|
|
],
|
2019-01-15 18:36:09 +00:00
|
|
|
});
|