Skip to content

Commit 6a05bad

Browse files
committed
ci: log error
1 parent ea2d306 commit 6a05bad

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

binding.gyp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
{
22
"targets": [
33
{
4-
"target_name": "@filemap/winicon",
4+
"target_name": "winicon",
55
"sources": ["src/winicon.cc"],
66
"include_dirs": [
77
"<!(node -p \"require('node-addon-api').include\")"
88
],
99
"dependencies": [
1010
"<!(node -p \"require('node-addon-api').gyp\")"
1111
],
12-
"link_settings": {
13-
"libraries": []
14-
},
12+
"defines": ["NAPI_DISABLE_CPP_EXCEPTIONS"],
1513
"conditions": [
1614
["OS=='win'", {
1715
"defines": ["WIN32"],

scripts/build.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ import { $, quote } from 'zx';
44

55
$.quote = quote;
66

7-
await $`yarn prebuildify --strip --napi --arch x64`;
7+
try {
8+
await $`yarn prebuildify --strip --napi --arch x64`;
9+
} catch (err) {
10+
console.error('Build failed:', err);
11+
}

0 commit comments

Comments
 (0)