Verified Commit 6d0aa144 authored by Aral Balkan's avatar Aral Balkan
Browse files

Switch from pkg to nexe for binaries/build script; set v to 7.2.0

(Was using 7.2.1 internally/temporarily to cache bust/test.)
parent 9a5c1a4f
......@@ -8,7 +8,7 @@
//
////////////////////////////////////////////////////////////
const { exec } = require('pkg')
const { compile } = require('nexe')
const fs = require('fs')
const path = require('path')
const package = require('../package.json')
......@@ -28,10 +28,19 @@ async function build () {
// Build.
//
console.log(' • Building Linux version…')
await exec([ '.', '--target', 'latest-linux-x64', '--output', `${linuxVersionPath}/web-server` ])
await compile({
input: 'bin/web-server.js',
output: `${linuxVersionPath}/web-server`,
target: 'linux-x64-10.15.3'
})
console.log(' • Building macOS version…')
await exec([ '.', '--target', 'latest-macos-x64', '--output', `${macOSVersionPath}/web-server` ])
await compile({
input: 'bin/web-server.js',
output: `${macOSVersionPath}/web-server`,
target: 'mac-x64-10.15.3'
})
//
// Zip.
......
This diff is collapsed.
{
"name": "@ind.ie/web-server",
"version": "7.2.1",
"version": "7.2.0",
"description": "A secure and seamless Small Tech personal web server.",
"main": "index.js",
"bin": "bin/web-server.js",
......@@ -32,7 +32,7 @@
"shelljs": "^0.8.3"
},
"devDependencies": {
"pkg": "^4.3.7",
"nexe": "^3.0.3",
"tape": "^4.10.1"
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment