writeExecutable function
Implementation
Future<String> writeExecutable(String mediaPath, String outputPath,
{bool folowMime = false}) async {
// ignore: omit_local_variable_types
List<String> args = [mediaPath, outputPath];
if (folowMime) {
args.add('--folow-mime');
}
var result;
try {
result = await Process.run('artwork_extractor', args);
} catch (_) {
result = await Process.run('artwork_extractor-bin', args);
}
return result.stdout;
}