mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-02-10 18:05:07 +08:00
* [ds] Add forgotten files comands * Feature fixes 1 * Feature fixes 2 * [feature] Refactor validateCommand and deleteForgotten * Feature fixes 3 * Feature fixes 4 * [test] Move jest module * Feature fixes 5 * [test] Move jest.config.js --------- Co-authored-by: Sergey Konovalov <Sergey.Konovalov@onlyoffice.com>
15 lines
409 B
JavaScript
15 lines
409 B
JavaScript
const platforms = {
|
|
'win32': 'windows',
|
|
'darwin': 'mac',
|
|
'linux': 'linux'
|
|
};
|
|
const platform = platforms[process.platform];
|
|
|
|
process.env.NODE_ENV = `development-${platform}`;
|
|
process.env.NODE_CONFIG_DIR = '../Common/config';
|
|
|
|
if (platform === 'mac') {
|
|
process.env.DYLD_LIBRARY_PATH = '../FileConverter/bin/';
|
|
} else if (platform === 'linux') {
|
|
process.env.LD_LIBRARY_PATH = '../FileConverter/bin/';
|
|
} |