Verified Commit 90f059c9 authored by Aral Balkan's avatar Aral Balkan
Browse files

Update build script to only include rsync + ssh in Windows builds

parent d046dfa4
......@@ -180,10 +180,6 @@ const resources = [
// Not sure if this is a different regression in Nexe 4’s resolve dependencies.
// Afaik, it was being included correctly before.
'node_modules/@small-tech/instant/client/bundle.js',
// For sync support on Windows, include our own portable bundle of rsync and ssh running
// under cygwin.
'node_modules/@small-tech/portable-rsync-with-ssh-for-windows/**/*'
]
const input = 'bin/site.js'
......@@ -392,6 +388,11 @@ async function build () {
if (buildWindowsVersion) {
console.log(' • Building Windows version…')
// For sync support on Windows, include our own portable bundle of rsync and ssh running under cygwin.
// We don’t need this included for any other platform.
const windowsResources = resources.slice(0) // make a copy of the resources array
windowsResources.push('node_modules/@small-tech/portable-rsync-with-ssh-for-windows/**/*')
writeManifestForPlatformAndArchitecture('windows', 'x64')
stripForPlatform('windows-amd64.exe')
......@@ -401,7 +402,7 @@ async function build () {
remote,
output : windowsBinaryPath,
target : windowsTarget,
resources,
resources : windowsResources,
})
unstrip()
......
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