Skip to content

Commit

Permalink
Fixed ERR_OSSL_EVP_UNSUPPORTED (stream-labs#4631) (stream-labs#4635)
Browse files Browse the repository at this point in the history
* Add --openssl-legacy-provider to the test environment

* Add --openssl-legacy-provider into npmrc

* Fix hardcoded MD4

* Remove extra line break

Co-authored-by: Eugen <[email protected]>
  • Loading branch information
gettinToasty and eugen15 authored Jul 24, 2023
1 parent 80ed2e9 commit 314a661
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/postinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ const antdlibSettings = JSON.parse(fs.readFileSync(antdLibSettingsPath, 'utf8'))
delete antdlibSettings.module;
antdlibSettings.main = 'dist/antd.min.js';
fs.writeFileSync(antdLibSettingsPath, JSON.stringify(antdlibSettings, null, 2));

// Fix hardcoded MD4
if (process.platform === 'darwin') {
execSync("find node_modules/webpack/lib -type f -exec sed -i '' 's|md4|sha256|g' {} \\;", { stdio: [0, 1, 2] });
}
1 change: 1 addition & 0 deletions webpack.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ module.exports = {
path: OUTPUT_DIR,
filename: '[name].js',
publicPath: '',
hashFunction: 'sha256',
},

target: 'electron-renderer',
Expand Down

0 comments on commit 314a661

Please sign in to comment.