Skip to content

Commit

Permalink
fix(grandiose): replaces __dirname path for .asar compatibility (#561)
Browse files Browse the repository at this point in the history
Electron uses .asar files to compress resources, they get unpacked when the application is launched
to a real directory. We need to update the path so Grandiose can resolve the correct fi

fix #553
  • Loading branch information
2xAA authored Mar 2, 2021
1 parent 4c8e9bf commit f7f1c29
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/application/worker/store/modules/ndi.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ import uuidv4 from "uuid/v4";
import Vue from "vue";
import store from "../";

// eslint-disable-next-line
/* eslint-disable */
__dirname = `${__dirname}/node_modules/grandiose`;
__dirname = __dirname.replace("app.asar", "app.asar.unpacked");
/* eslint-enable */

const grandiose = require("grandiose");

Expand Down

0 comments on commit f7f1c29

Please sign in to comment.