Moved library to a folder

This commit is contained in:
Keerthi Niranjan 2017-08-03 14:48:56 +05:30 committed by Keerthi Niranjan
parent e80e791636
commit 3db7929d52
9 changed files with 6 additions and 7 deletions

View File

@ -27,8 +27,8 @@ const MINIMUM_DATE = '0000000000000';
const MAXIMUM_DATE = '9999999999999';
const INDEX_VERSION = 'v1';
const winArchPath = process.arch === 'ia32' ? 'indexvalidator-x86.exe' : 'indexvalidator-x64.exe';
const rootPath = isMac ? 'indexvalidator.exec' : winArchPath;
const winArchPath = process.arch === 'ia32' ? 'library/indexvalidator-x86.exe' : 'library/indexvalidator-x64.exe';
const rootPath = isMac ? 'library/indexvalidator.exec' : winArchPath;
const productionPath = path.join(execPath, isMac ? '..' : '', rootPath);
const devPath = path.join(__dirname, '..', '..', rootPath);
const libraryPath = isDevEnv ? devPath : productionPath;

View File

@ -14,8 +14,8 @@ const symLucyIndexerPtr = ref.refType(symLucyIndexer);
const execPath = path.dirname(app.getPath('exe'));
const winArchPath = process.arch === 'ia32' ? 'libsymphonysearch-x86.dll' : 'libsymphonysearch-x64.dll';
const rootPath = isMac ? 'libsymphonysearch.dylib' : winArchPath;
const winArchPath = process.arch === 'ia32' ? 'library/libsymphonysearch-x86.dll' : 'library/libsymphonysearch-x64.dll';
const rootPath = isMac ? 'library/libsymphonysearch.dylib' : winArchPath;
const productionPath = path.join(execPath, isMac ? '..' : '', rootPath);
const devPath = path.join(__dirname, '..', '..', rootPath);
const libraryPath = isDevEnv ? devPath : productionPath;

View File

@ -34,9 +34,8 @@
"!tests/*"
],
"extraFiles": ["config/Symphony.config",
"msgsjson",
"libsymphonysearch.dylib",
"indexvalidator.exec"],
"library/libsymphonysearch.dylib",
"library/indexvalidator.exec"],
"appId": "symphony-electron-desktop",
"mac": {
"target": "dmg",