Skip to content

Commit 4005633

Browse files
committed
fix: strip binaries
1 parent 80ef11f commit 4005633

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build.js

+6
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,9 @@ const dumpSyms = (() => {
7272
}
7373
})()
7474
fs.copyFileSync(dumpSyms, dumpSymsDest)
75+
76+
fs.readdirSync(binDir).forEach(file => stripBin(path.join(binDir, file)))
77+
78+
function stripBin (file) {
79+
return childProcess.execFileSync(process.env.STRIP || 'strip', [file, process.platform === 'darwin' ? '-Sx' : '--strip-all'])
80+
}

0 commit comments

Comments
 (0)