Commit 12306090 authored by Tasso Evangelista's avatar Tasso Evangelista

Patch the redistributable Visual C++ DLL according to the arch

parent 57028315
const fs = require('fs');
const path = require('path');
const patchWindowsDLLs = ({ appOutDir, x64 }) => {
fs.copyFileSync(path.join(__dirname, x64 ? 'x64' : 'ia32', 'vccorlib140.dll'),
path.join(appOutDir, 'vccorlib140.dll'));
};
exports.default = (context) => {
const { appOutDir, arch, packager: { platform: { nodeName } } } = context;
if (nodeName === 'win32') {
patchWindowsDLLs({ appOutDir, x64: arch === 1 });
}
};
......@@ -10,6 +10,7 @@
"servers.json"
],
"appId": "chat.rocket",
"afterPack": "./build/afterPack.js",
"mac": {
"category": "public.app-category.productivity",
"target": [
......@@ -54,17 +55,7 @@
"nsis",
"appx"
],
"icon": "build/icon.ico",
"extraFiles": [
{
"from": "build/concrt140.dll",
"to": "concrt140.dll"
},
{
"from": "build/vccorlib140.dll",
"to": "vccorlib140.dll"
}
]
"icon": "build/icon.ico"
},
"nsis": {
"oneClick": false,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment