blob: 9d975c19315768fd1105fe26555d46b520e99649 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import { join } from '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());
}
|