summaryrefslogtreecommitdiffstats
path: root/src/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/asar-helpers.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/helpers/asar-helpers.ts b/src/helpers/asar-helpers.ts
index 3d9f0d941..3da90625d 100644
--- a/src/helpers/asar-helpers.ts
+++ b/src/helpers/asar-helpers.ts
@@ -1,3 +1,10 @@
1import { join } from 'path';
2
1export function asarPath(dir: string = '') { 3export function asarPath(dir: string = '') {
2 return dir.replace('app.asar', 'app.asar.unpacked'); 4 return dir.replace('app.asar', 'app.asar.unpacked');
3} 5}
6
7// Replacing app.asar is not beautiful but unfortunately necessary
8export function asarRecipesPath(...segments: any[]) {
9 return join(asarPath(join(__dirname, '..', 'recipes')), ...[segments].flat());
10}