-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Why don't you just update all libs & deps
- Loading branch information
Showing
41 changed files
with
808 additions
and
523 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const { execFile } = require('child_process'); | ||
const path = require('path'); | ||
|
||
const exePath = path.join(__dirname, 'path_to_dist_folder', 'media.exe'); | ||
|
||
execFile(exePath, (error, stdout, stderr) => { | ||
if (error) { | ||
console.error(`Error: ${error.message}`); | ||
return; | ||
} | ||
if (stderr) { | ||
console.error(`Stderr: ${stderr}`); | ||
return; | ||
} | ||
try { | ||
const mediaInfo = JSON.parse(stdout); | ||
if (mediaInfo.error) { | ||
console.log(mediaInfo.error); | ||
} else { | ||
console.log(`Title: ${mediaInfo.title}`); | ||
console.log(`Artist: ${mediaInfo.artist}`); | ||
console.log(`Album: ${mediaInfo.album}`); | ||
} | ||
} catch (parseError) { | ||
console.error(`JSON Parse Error: ${parseError.message}`); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const coreFile = { | ||
darwin: 'LedFx_core.app/Contents/MacOS/LedFx_v2', | ||
linux: 'LedFx', | ||
win32: 'LedFx/LedFx.exe' | ||
} | ||
|
||
export default coreFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import defaultCoreParams from './defaultCoreParams.mjs' | ||
import store from './store.mjs' | ||
|
||
const coreParams = store.get('coreParams', defaultCoreParams) | ||
|
||
export default coreParams |
Oops, something went wrong.