Skip to content

Commit 1f4bdf0

Browse files
authored
Merge pull request #48 from aminya/strip
fix: strip binaries in build script
2 parents 80ef11f + 4005633 commit 1f4bdf0

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)