mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-11 06:46:03 +00:00
Link against static core/sync for node
The CMake packaging added shared libraries to the node release package, but the build system isn't set up to work with them so just go back to using the static libraries.
This commit is contained in:
parent
4e7f70965f
commit
2185442f41
@ -175,7 +175,16 @@ if (!fs.existsSync(realmDir)) {
|
||||
pipeline = pipeline.then(() => decompress(downloadedArchive, targetFolder, decompressOptions));
|
||||
|
||||
if (extractedFolder) {
|
||||
pipeline = pipeline.then(() => fs.renameSync(path.resolve(vendorDir, extractedFolder), realmDir));
|
||||
pipeline = pipeline.then(() => {
|
||||
fs.renameSync(path.resolve(vendorDir, extractedFolder), realmDir);
|
||||
const libDir = path.resolve(realmDir, 'lib')
|
||||
if (fs.existsSync(libDir)) {
|
||||
// Remove all shared libraries as we want to just use the static ones
|
||||
fs.readdirSync(libDir)
|
||||
.filter(name => /\.so$/.test(name))
|
||||
.forEach(name => fs.unlinkSync(path.resolve(libDir, name)));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
pipeline.catch(error => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user