blob: 77dd50bb16fece6147cd793c7adb2de24f7cc5d6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import { join } from 'node:path';
export function asarPath(dir: string = '') {
return dir.replace('app.asar', 'app.asar.unpacked');
}
// Replacing app.asar is not beautiful but unfortunately necessary
export function asarRecipesPath(...segments: string[]) {
return join(asarPath(join(__dirname, '..', 'recipes')), ...[segments].flat());
}
|