Delete travis-ffmpeg-config.js

This commit is contained in:
Malte Rosenbjerg 2020-02-16 21:09:24 +01:00 committed by GitHub
parent 007c042d3e
commit 5d8ce56b47
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +0,0 @@
const fs = require('fs');
const path = require('path');
const CONFIG_PATH = path.resolve('./FFMpegCore.Test/ffmpeg.config.json');
console.log('--- Configuring ffmpeg binary path for:', process.env.TRAVIS_OS_NAME);
let data = require(CONFIG_PATH);
data.RootDirectory = process.env.TRAVIS_OS_NAME === 'linux' ?
'/usr/bin' :
'/usr/local/bin';
fs.writeFileSync(CONFIG_PATH, JSON.stringify(data, null, 4));