fix systemaudiodump path
This commit is contained in:
		
							parent
							
								
									5f007096d7
								
							
						
					
					
						commit
						8402e7d296
					
				@ -33,7 +33,7 @@ extraResources:
 | 
			
		||||
      to: out
 | 
			
		||||
 | 
			
		||||
asarUnpack:
 | 
			
		||||
    - "src/assets/SystemAudioDump"
 | 
			
		||||
    - "src/ui/assets/SystemAudioDump"
 | 
			
		||||
    - "**/node_modules/sharp/**/*"
 | 
			
		||||
    - "**/node_modules/@img/**/*"
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -471,8 +471,8 @@ class SttService {
 | 
			
		||||
        const { app } = require('electron');
 | 
			
		||||
        const path = require('path');
 | 
			
		||||
        const systemAudioPath = app.isPackaged
 | 
			
		||||
            ? path.join(process.resourcesPath, 'app.asar.unpacked', 'src', 'assets', 'SystemAudioDump')
 | 
			
		||||
            : path.join(app.getAppPath(), 'src', 'assets', 'SystemAudioDump');
 | 
			
		||||
            ? path.join(process.resourcesPath, 'app.asar.unpacked', 'src', 'ui', 'assets', 'SystemAudioDump')
 | 
			
		||||
            : path.join(app.getAppPath(), 'src', 'ui', 'assets', 'SystemAudioDump');
 | 
			
		||||
 | 
			
		||||
        console.log('SystemAudioDump path:', systemAudioPath);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user