Add cloundsync module for Darwin
This commit is contained in:
parent
70a8472c34
commit
50df388e1a
Binary file not shown.
|
@ -2,7 +2,9 @@ const EventEmitter = require('events');
|
||||||
let addon = './discord_cloudsync.node'
|
let addon = './discord_cloudsync.node'
|
||||||
if(process.platform === "linux"){
|
if(process.platform === "linux"){
|
||||||
addon = './discord_cloudsync_linux.node'
|
addon = './discord_cloudsync_linux.node'
|
||||||
}
|
}else if(process.platform === "darwin") {
|
||||||
|
addon = './discord_cloudsync_darwin.node'
|
||||||
|
}
|
||||||
const {CloudSync: CloudSyncNative} = require(addon);
|
const {CloudSync: CloudSyncNative} = require(addon);
|
||||||
|
|
||||||
function makeCallback(resolve, reject) {
|
function makeCallback(resolve, reject) {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const VoiceEngine = require((process.platform === "linux") ? './discord_voice_linux.node' : (process.platform === "darwin" ? 'discord_voice_darwin.node' : './discord_voice.node');
|
const VoiceEngine = require((process.platform === "linux") ? './discord_voice_linux.node' : (process.platform === "darwin") ? 'discord_voice_darwin.node' : './discord_voice.node');
|
||||||
const ChildProcess = require('child_process');
|
const ChildProcess = require('child_process');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const yargs = require('yargs');
|
const yargs = require('yargs');
|
||||||
|
|
Loading…
Reference in New Issue