Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mp3butcher authored Feb 8, 2025
1 parent 6d01515 commit 3aec406
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,9 @@ app.on('ready', async () => {
app.setAppUserModelId("com.mp3butcher.youtube-dl-gui");
env = new Environment(app);
await env.initialize();
let baseappdir = app.isPackaged ? path.dirname(env.paths.packedPrefix) : '.';
let basewheels = app.isPackaged ? path.join(baseappdir, "resources/libs/wheels/") : "./resources/libs/wheels/"
let pyodidepath = app.isPackaged ? path.join(baseappdir,'resources/pyodide/') : 'node_modules/pyodide';
let baseappdir = env.paths.baseappdir;
let basewheels = app.isPackaged ? baseappdir + '/resources/libs/wheels/': baseappdir +'/resources/libs/wheels/'
let pyodidepath = app.isPackaged ? 'resources/resources/pyodide/' : 'node_modules/pyodide';
let somepackages = [
"certifi-2024.2.2-py3-none-any.whl","charset_normalizer-3.3.2-py3-none-any.whl",
"construct-2.8.8-py2.py3-none-any.whl","idna-3.6-py3-none-any.whl",
Expand Down

0 comments on commit 3aec406

Please sign in to comment.