Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const {compile} = require('nexe')
compile({
input: './dist/socket.js',
target: 'windows-x64-8.4.0',
// target: 'macos-8.4.0',
output: 'posenetSocket'
}).then(() => {console.log('success')})
const {compile} = require('nexe')
compile({
input: './serve.js',
target: 'windows-x64-8.4.0',
// target: 'macos-8.4.0',
resources: ['./build/**/*'],
output: 'posenet'
}).then(() => {console.log('success')})
const version = require('../package')
const nexe = require('nexe') // eslint-disable-line
nexe.compile({
input: 'dist/bin/deepstream.js',
build: false,
flags: ['--max-old-space-size=8192'],
output: process.env.EXECUTABLE_NAME,
target: { version: '10.16.0' },
temp: 'nexe_node',
resources: [
'./dist/ascii-logo.txt',
'./dist/package.json'
],
ico: 'scripts/resources/deepstream.ico',
rc: {
CompanyName: "deepstreamHub GmbH",
ProductName: "deepstream.io",
FileDescription: "A Scalable Server for Realtime Applications",
FileVersion: version,
gulp.task( "compile", ( callback ) => {
let options = {
input: "index.js",
output: "test.nex",
python: "python",
nodeTempDir: "./tmp",
nodeVersion: "latest",
flags: false,
framework: "nodejs"
};
nexe.compile( options, ( err ) => {
console.log( err );
callback( err );
} );
} );