Skip to content
This repository has been archived by the owner. It is now read-only.

Linux support #237

Merged
merged 9 commits into from
Jun 21, 2016
Merged

Linux support #237

merged 9 commits into from
Jun 21, 2016

Conversation

davejm
Copy link
Contributor

@davejm davejm commented May 21, 2016

Adds support for running and building for Linux 64bit.

Note that boilerplate comments are set up in the gulpfile to copy a custom build ffmpeg library for Linux into the dist, however, I don't have this at the moment so sound doesn't work. Making it work would be a matter of getting the custom libffmpegsumo.so library built for Linux 64bit with the relevant codec support, putting it in ./lib and uncommenting the code in gulpfile for copying the linux library.

@davejm davejm mentioned this pull request May 21, 2016
@davejm
Copy link
Contributor Author

davejm commented Jun 3, 2016

@antiboredom do you have the ffmpeg lib with mp3 codecs etc. for linux (and nw.js 12.3)?

@@ -16,13 +16,15 @@ var info = require('./package.json');
var request = require('request');

var isWin = process.platform.indexOf('win') > -1;
var isMac = process.platform.indexOf('darwin') > -1;
var isLinux = process.platform.indexOf('linux') > -1;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jedahan Yes definitely. I was just following the logic for the respective files. Do you think the other logic is cleaner/clearer?

@jedahan
Copy link

jedahan commented Jun 4, 2016

After reading https://nodejs.org/api/process.html#process_process_platform , I think I most prefer the simplicity of

var isWin = process.platform === 'win32';
var isMac = process.platform === 'darwin';
var isLinux = process.platform === 'linux';

Honestly this is nitpicking at this point, and would love to see this merged sooner than later :)

@davejm
Copy link
Contributor Author

davejm commented Jun 4, 2016

@jedahan yes that is cleaner. I had looked at that api page as well but assumed from the regexes that the method could return -32 and -64 variants but it seems not so I'll change it.

@lmccart lmccart merged commit f232084 into processing:master Jun 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants