Skip to content

Commit

Permalink
Get arch specific micromamba path
Browse files Browse the repository at this point in the history
  • Loading branch information
reyery committed May 29, 2024
1 parent 8d0f008 commit 6fcd425
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion electron/cea/env.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { app } from 'electron';
import path from 'path';
import os from 'os';
import { exec, execSync, spawn } from 'child_process';
import { existsSync } from 'fs';
import { CEAError, MicromambaError } from './errors.mjs';
Expand All @@ -10,7 +11,7 @@ const execAsync = promisify(exec);

const paths = {
darwin: {
micromamba: path.join(process.resourcesPath, 'micromamba'),
micromamba: path.join(process.resourcesPath, os.arch(), 'micromamba'),
root: path.join(app.getPath('documents'), 'CityEnergyAnalyst'),
},
win32: {
Expand Down

0 comments on commit 6fcd425

Please sign in to comment.