diff options
Diffstat (limited to 'src/helpers')
-rw-r--r-- | src/helpers/asar-helpers.ts | 7 |
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 @@ | |||
1 | import { join } from 'path'; | ||
2 | |||
1 | export function asarPath(dir: string = '') { | 3 | export 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 | ||
8 | export function asarRecipesPath(...segments: any[]) { | ||
9 | return join(asarPath(join(__dirname, '..', 'recipes')), ...[segments].flat()); | ||
10 | } | ||