From cc41b751307cfd684d93be969383e055a52663de Mon Sep 17 00:00:00 2001 From: mmcwilliams Date: Fri, 24 Apr 2020 22:12:56 -0400 Subject: [PATCH] FFMPEG not working yet --- app/lib/system/index.js | 10 ++++++++-- app/lib/system/index.js.map | 2 +- app/package.json | 19 +++++++++---------- cli/lib/system/index.js | 10 ++++++++-- cli/lib/system/index.js.map | 2 +- src/system/index.ts | 10 ++++++++-- 6 files changed, 35 insertions(+), 18 deletions(-) diff --git a/app/lib/system/index.js b/app/lib/system/index.js index 48099eb..a1a0436 100644 --- a/app/lib/system/index.js +++ b/app/lib/system/index.js @@ -20,8 +20,14 @@ async function dependencies(platform) { let ffoutput; //let imoutput : ExecOutput; let eogoutput; - obj.ffmpeg = ffmpeg; - obj.ffprobe = ffprobe.path; + obj.ffmpeg = ffmpeg; /*.replace( + 'app.asar', + 'app.asar.unpacked' + );*/ + obj.ffprobe = ffprobe.path; /*.replace( + 'app.asar', + 'app.asar.unpacked' + );*/ try { //imoutput = await exec('which convert'); } diff --git a/app/lib/system/index.js.map b/app/lib/system/index.js.map index a0473ff..f16e8c7 100644 --- a/app/lib/system/index.js.map +++ b/app/lib/system/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAOb,2BAAkC;AAClC,uCAAkC;AAClC,SAAS;AACT,+BAA4B;AAC5B;;;;;;;;IAQI;AAGJ,KAAK,UAAU,YAAY,CAAE,QAAiB;IAC7C,IAAI,GAAG,GAAS,EAAE,CAAC;IACnB,IAAI,MAAM,GAAS,OAAO,CAAC,eAAe,CAAC,CAAC;IAC5C,IAAI,OAAO,GAAS,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC9C,IAAI,QAAqB,CAAC;IAC1B,4BAA4B;IAC5B,IAAI,SAAsB,CAAC;IAE3B,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC;IACpB,GAAG,CAAC,OAAO,GAAG,OAAO,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K,UAAU,MAAM,CAAE,EAAQ;IAC9B,MAAM,GAAG,GAAS,EAAE,CAAC;IACrB,IAAI,QAAiB,CAAC;IAEtB,IAAI;QACH,GAAG,CAAC,GAAG,GAAG,WAAM,EAAE,CAAC;KACnB;IAAC,OAAO,GAAG,EAAE;QACb,GAAG,CAAC,GAAG,GAAG,MAAM,CAAA;KAChB;IAED,QAAQ,GAAG,SAAI,EAAE,CAAC;IAElB,IAAI,QAAQ,KAAK,QAAQ,EAAE;QAC1B,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC;KACrB;SAAM,IAAI,QAAQ,KAAK,YAAY,EAAE;QACrC,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC;KACrB;SAAM;QACN,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC;KACrB;IAED,GAAG,CAAC,QAAQ,GAAG,MAAM,QAAQ,EAAE,CAAA;IAC/B,GAAG,CAAC,IAAI,GAAG,MAAM,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAE5C,UAAU,CAAC,GAAG,EAAE;QACf,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACxB,CAAC,EAAE,IAAI,CAAC,CAAC;IAET,OAAO,GAAG,CAAC;AACZ,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC"} \ No newline at end of file diff --git a/app/package.json b/app/package.json index ed65fa9..9b8b6a2 100644 --- a/app/package.json +++ b/app/package.json @@ -22,29 +22,28 @@ "gui" ], "build": { - "appId" : "com.sixteenmillimeter.mcopy", + "appId": "com.sixteenmillimeter.mcopy", + "asarUnpack": [ + "node_modules/ffmpeg-static/bin/${os}/${arch}/ffmpeg", + "node_modules/ffmpeg-static/index.js", + "node_modules/ffmpeg-static/package.json" + ], "files": [ "**/*", "!config/", "!src/", "!test/", "!test_old/", - "node_modules/ffmpeg-static/bin/${os}/${arch}/ffmpeg", + "node_modules/ffmpeg-static/ffmpeg", "node_modules/ffmpeg-static/index.js", "node_modules/ffmpeg-static/package.json", - "node_modules/ffprobe-static/bin/${os}/${arch}/ffprobe", + "node_modules/ffprobe-static/ffprobe", "node_modules/ffprobe-static/index.js", "node_modules/ffprobe-static/package.json" ], "copyright": "2020 Matthew McWilliams", "mac": { - "category": "public.app-category.video", - "files": [ - "!node_modules/ffmpeg-static/bin/win${/*}", - "!node_modules/ffmpeg-static/bin/linux${/*}", - "!node_modules/ffprobe-static/bin/win${/*}", - "!node_modules/ffprobe-static/bin/linux${/*}" - ] + "category": "public.app-category.video" } }, "author": "mmcwilliams", diff --git a/cli/lib/system/index.js b/cli/lib/system/index.js index 48099eb..a1a0436 100644 --- a/cli/lib/system/index.js +++ b/cli/lib/system/index.js @@ -20,8 +20,14 @@ async function dependencies(platform) { let ffoutput; //let imoutput : ExecOutput; let eogoutput; - obj.ffmpeg = ffmpeg; - obj.ffprobe = ffprobe.path; + obj.ffmpeg = ffmpeg; /*.replace( + 'app.asar', + 'app.asar.unpacked' + );*/ + obj.ffprobe = ffprobe.path; /*.replace( + 'app.asar', + 'app.asar.unpacked' + );*/ try { //imoutput = await exec('which convert'); } diff --git a/cli/lib/system/index.js.map b/cli/lib/system/index.js.map index a0473ff..f16e8c7 100644 --- a/cli/lib/system/index.js.map +++ b/cli/lib/system/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAOb,2BAAkC;AAClC,uCAAkC;AAClC,SAAS;AACT,+BAA4B;AAC5B;;;;;;;;IAQI;AAGJ,KAAK,UAAU,YAAY,CAAE,QAAiB;IAC7C,IAAI,GAAG,GAAS,EAAE,CAAC;IACnB,IAAI,MAAM,GAAS,OAAO,CAAC,eAAe,CAAC,CAAC;IAC5C,IAAI,OAAO,GAAS,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAC9C,IAAI,QAAqB,CAAC;IAC1B,4BAA4B;IAC5B,IAAI,SAAsB,CAAC;IAE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CAAC,CAAC;IAC3B,OAAO,QAAQ,CAAC;AACjB,CAAC;AAED;;;;;;GAMG;AACH,KAAK,UAAU,MAAM,CAAE,EAAQ;IAC9B,MAAM,GAAG,GAAS,EAAE,CAAC;IACrB,IAAI,QAAiB,CAAC;IAEtB,IAAI;QACH,GAAG,CAAC,GAAG,GAAG,WAAM,EAAE,CAAC;KACnB;IAAC,OAAO,GAAG,EAAE;QACb,GAAG,CAAC,GAAG,GAAG,MAAM,CAAA;KAChB;IAED,QAAQ,GAAG,SAAI,EAAE,CAAC;IAElB,IAAI,QAAQ,KAAK,QAAQ,EAAE;QAC1B,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC;KACrB;SAAM,IAAI,QAAQ,KAAK,YAAY,EAAE;QACrC,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC;KACrB;SAAM;QACN,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC;KACrB;IAED,GAAG,CAAC,QAAQ,GAAG,MAAM,QAAQ,EAAE,CAAA;IAC/B,GAAG,CAAC,IAAI,GAAG,MAAM,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAE5C,UAAU,CAAC,GAAG,EAAE;QACf,EAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC;IACxB,CAAC,EAAE,IAAI,CAAC,CAAC;IAET,OAAO,GAAG,CAAC;AACZ,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC"} \ No newline at end of file diff --git a/src/system/index.ts b/src/system/index.ts index 1d49935..0d87407 100644 --- a/src/system/index.ts +++ b/src/system/index.ts @@ -28,8 +28,14 @@ async function dependencies (platform : string ) { //let imoutput : ExecOutput; let eogoutput : ExecOutput; - obj.ffmpeg = ffmpeg; - obj.ffprobe = ffprobe.path; + obj.ffmpeg = ffmpeg/*.replace( + 'app.asar', + 'app.asar.unpacked' + );*/ + obj.ffprobe = ffprobe.path/*.replace( + 'app.asar', + 'app.asar.unpacked' + );*/ try { //imoutput = await exec('which convert');