Skip to content

Commit

Permalink
Fix package path.
Browse files Browse the repository at this point in the history
  • Loading branch information
perfectstrong committed Jan 29, 2018
1 parent 9e6ab3a commit 5e9f758
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion js/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ class Section {
this._showMessage('Running...');
this.lock();
this._logger.show();
let subprocess = cp.fork('./gui/js/subprocess', [], {
let subprocess = cp.fork('./js/subprocess', [], {
cwd: process.cwd(),
});
subprocess.send({
Expand Down
10 changes: 5 additions & 5 deletions js/subprocess.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ console.error = function () {
process.send(err + str);
}
const Promise = require('bluebird');
let api = require(process.cwd() + '/api');
let cpext = require('cpexternalizer');

process.on('message', (msg) => {
let args = msg.args,
cmd = () => Promise.resolve();
switch (msg.command) {
case 'dirextract':
cmd = () => api.dirextract(args.src, args.outdir);
cmd = () => cpext.dirextract(args.src, args.outdir);
break;
case 'soundfix':
cmd = () => api.soundfix(args.src, args.ulpath);
cmd = () => cpext.soundfix(args.src, args.ulpath);
break;
case 'xcpextract':
cmd = () => api.xcpextract(args.src, args.outdir, args.samplePath);
cmd = () => cpext.xcpextract(args.src, args.outdir, args.samplePath);
break;
case 'extract':
cmd = () => api.extract(args.src, args.outdir);
cmd = () => cpext.extract(args.src, args.outdir);
break;
default:
process.send('Unknown command');
Expand Down

0 comments on commit 5e9f758

Please sign in to comment.