Skip to content

Commit

Permalink
download highlighter into AppData folder (#5263)
Browse files Browse the repository at this point in the history
Co-authored-by: ggolda <gleb.golda@streamlabs.com>
  • Loading branch information
gettinToasty and ggolda authored Dec 13, 2024
1 parent c244b03 commit 3ffac32
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/services/highlighter/ai-highlighter/updater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { importExtractZip } from 'util/slow-imports';
import { spawn } from 'child_process';
import { FFMPEG_EXE } from '../constants';
import Utils from '../../utils';
import * as remote from '@electron/remote';

interface IAIHighlighterManifest {
version: string;
Expand Down Expand Up @@ -35,7 +36,7 @@ export class AiHighlighterUpdater {
public currentUpdate: Promise<void> | null = null;

constructor() {
this.basepath = getSharedResource('ai-highlighter');
this.basepath = path.join(remote.app.getPath('userData'), 'ai-highlighter');
this.manifestPath = path.resolve(this.basepath, 'manifest.json');
}

Expand All @@ -52,7 +53,7 @@ export class AiHighlighterUpdater {
}

const highlighterBinaryPath = path.resolve(
getSharedResource('ai-highlighter'),
path.join(remote.app.getPath('userData'), 'ai-highlighter'),
'bin',
'app.exe',
);
Expand Down

0 comments on commit 3ffac32

Please sign in to comment.