1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
diff -ura package.orig/vdhcoapp-1.1.2/app/converter.js package.new/vdhcoapp-1.1.2/app/converter.js
--- package.orig/vdhcoapp-1.1.2/app/converter.js 2017-11-14 08:35:27.000000000 -0300
+++ package.new/vdhcoapp-1.1.2/app/converter.js 2017-11-16 16:46:57.183615000 -0300
@@ -44,7 +44,7 @@
else
throw new Error("Unsupported architecture",process.arch);
-const binaryDir = path.join(path.dirname(process.execPath),"..","converter","build",platform,arch);
+const binaryDir = platform == "linux" ? "/usr/bin" : path.join(path.dirname(process.execPath),"..","converter","build",platform,arch);
const binaryPath = path.join(binaryDir,"ffmpeg");
const probeBinaryPath = path.join(binaryDir,"ffprobe");
const playBinaryPath = path.join(binaryDir,"ffplay");
diff -ura package.orig/vdhcoapp-1.1.2/app/native-autoinstall.js package.new/vdhcoapp-1.1.2/app/native-autoinstall.js
--- package.orig/vdhcoapp-1.1.2/app/native-autoinstall.js 2017-11-14 08:35:27.000000000 -0300
+++ package.new/vdhcoapp-1.1.2/app/native-autoinstall.js 2017-11-16 17:36:30.888842000 -0300
@@ -72,7 +72,10 @@
mode = "system";
var config;
try {
- config = JSON.parse(fs.readFileSync(path.resolve(path.dirname(process.execPath),"../config.json"),"utf8"));
+ if(process.platform == "linux")
+ config = JSON.parse(fs.readFileSync(path.resolve(path.dirname(process.execPath),"../share/vdhcoapp/config.json"),"utf8"));
+ else
+ config = JSON.parse(fs.readFileSync(path.resolve(path.dirname(process.execPath),"../config.json"),"utf8"));
} catch(err) {
DisplayMessage("Cannot read config file: "+err.message,"Error");
process.exit(-1);
|