spotube/deploy/linux/spotube/index.js
2021-03-21 22:15:12 -07:00

7 lines
280 B
JavaScript

const path = require("path");
// Fix so that linux resources are found correctly
// since webpack will bundle them such that the expected path is /dist from cwd
process.chdir(path.resolve(path.dirname(process.execPath)));
// Now start loading the actual bundle
require("./dist");