Error: vcbuild.bat nosign release x64 exited with code: 1
See original GitHub issueWhat happened: As soon as I want to build my application, an error occurs, and i don’t no why :
ℹ nexe 3.3.2
- nexe 3.3.2[16:46:47] Finished 'build' after 34 ms
✔ Included 146 file(s). 2.366 MB
✔ Already downloaded...
✔ Compiling Node with arguments: nosign,release,x64
✔ Finished in 52.455s
(node:38596) UnhandledPromiseRejectionWarning: Error: vcbuild.bat nosign release x64 exited with code: 1
at new NexeError (C:\Users\Fellgill\Desktop\groove-music-discord-rpc\node_modules\.pnpm\nexe@3.3.2\node_modules\nexe\lib\compiler.js:83:28)
at ChildProcess.<anonymous> (C:\Users\Fellgill\Desktop\groove-music-discord-rpc\node_modules\.pnpm\nexe@3.3.2\node_modules\nexe\lib\compiler.js:274:28)
at Object.onceWrapper (events.js:313:26)
at ChildProcess.emit (events.js:223:5)
at ChildProcess.EventEmitter.emit (domain.js:498:23)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
(node:38596) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with
.catch(). (rejection id: 2)
(node:38596) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
What you expected to happen: Build the application, with custom node.rc configuration
How to reproduce it (as minimally and precisely as possible): Create a file, and enter this code (for me is this) :
const { src, dest } = require('gulp');
const coffee = require('gulp-coffee');
const obfuscator = require('gulp-javascript-obfuscator');
const sourcemaps = require('gulp-sourcemaps');
const prettier = require('gulp-prettier');
const nexe = require('nexe');
// Just compile the CoffeeScript code
function compile(callback) {
src('./src/*.coffee', { sourcemaps: true })
// Compile the CoffeeScript code
.pipe(coffee())
// Obfuscate the compiled code
.pipe(obfuscator())
// Beautify the code
.pipe(prettier({ singleQuote: true }))
// Write sourcemaps
.pipe(sourcemaps.write('./'))
// Write all in dist folder
.pipe(dest('./dist'));
// Callback
callback();
}
// Build a exe app
async function build(callback) {
// Run compile task
// Todo: Wait until this task is finished to build the executable,
// so for the moment, use gulp compile first then gulp build
/*
await compile(function() {
console.log('\n');
});
*/
// When compile task is finished, run nexe build
nexe.compile({
// Input bundle file path
input: './index.js',
// Output executable file path
output: './dist/build/groove-rpc',
// An object or string describing platform-arch-version
target: 'windows',
// Array of globs with files to include in the build
resources: [
'./node_modules/**/*'
],
// https://github.com/nexe/nexe/issues/780
build: true,
// Settings for patching the node.rc configuration file
rc: {
CompanyName: "FellGill",
ProductName: "Groove Music RPC",
FileDescription: "A NodeJS integration of Groove Music for Discord",
FileVersion: "0,0,1",
ProductVersion: "0,0,1",
OriginalFilename: "groove-rpc.exe",
InternalName: "groove-rpc",
LegalCopyright: "Copyright FellGill. Apache 2.0 license."
}
});
// Callback
callback();
}
exports.default = compile
exports.compile = compile
exports.build = build
Anything else we need to know?: Issue following ‘‘rc: object’ don’t change anythings’. Build worked very well before I added ‘build: true’
Environment:
- Platform(OS/Version): Windows v1909
- Host Node Version: 12.14.1
- Target Node Version: 12.14.1
- Nexe version: 3.3.2
- Python Version: 3.8.3
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
vcbuild.bat nosign release x64 exited with code: 1 #799 - GitHub
I'm trying to build a version of my node js project, but always get this error: nexe 3.3.7 √ Downloading Node.jssource from: https://nodejs.org ......
Read more >I have a problem with npm package nexe and visual studio ...
the message said: failed to find a suitable Visual studio installation and also vcbuild.bat nosign release x64 exited with code: 1 ...
Read more >nexe Error: vcbuild.bat nosign release x64 exited with code: 1
1 - run this: npx nexe server.js -o test -t windows --build --verbose // 2 - if you have this message in console:...
Read more >Windows Build | IfxNode - GitHub Pages
Say you have extracted NodeJS sourct at **C:\work\node-v10.15.1** cd C:\work\node-v10.15.1 SET NODE_SRC=C:\work\node-v10.15.1 vcbuild.bat nosign release x64 ...
Read more >vcbuild.bat - Google Git
if errorlevel 1 echo Failed to generate license.rtf&goto exit ... echo vcbuild.bat release msi : builds release build and MSI installer package.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I close this issue. To solve the problem I had, just install NASM (latest build)
installing NASM not hepled