mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Update:Windows binary manager to install ffmpeg/ffprobe 5.1 #1098
This commit is contained in:
		
							parent
							
								
									38f12f4795
								
							
						
					
					
						commit
						d2b006b909
					
				@ -11,8 +11,8 @@ const fileUtils = require('../utils/fileUtils')
 | 
				
			|||||||
class BinaryManager {
 | 
					class BinaryManager {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  defaultRequiredBinaries = [
 | 
					  defaultRequiredBinaries = [
 | 
				
			||||||
    { name: 'ffmpeg', envVariable: 'FFMPEG_PATH', validVersions: ['5.1', '6'] },
 | 
					    { name: 'ffmpeg', envVariable: 'FFMPEG_PATH', validVersions: ['5.1'] },
 | 
				
			||||||
    { name: 'ffprobe', envVariable: 'FFPROBE_PATH', validVersions: ['5.1', '6'] }
 | 
					    { name: 'ffprobe', envVariable: 'FFPROBE_PATH', validVersions: ['5.1'] }
 | 
				
			||||||
  ]
 | 
					  ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  constructor(requiredBinaries = this.defaultRequiredBinaries) {
 | 
					  constructor(requiredBinaries = this.defaultRequiredBinaries) {
 | 
				
			||||||
@ -135,7 +135,7 @@ class BinaryManager {
 | 
				
			|||||||
    if (!binaries.length) return
 | 
					    if (!binaries.length) return
 | 
				
			||||||
    Logger.info(`[BinaryManager] Installing binaries: ${binaries.join(', ')}`)
 | 
					    Logger.info(`[BinaryManager] Installing binaries: ${binaries.join(', ')}`)
 | 
				
			||||||
    let destination = await fileUtils.isWritable(this.mainInstallPath) ? this.mainInstallPath : this.altInstallPath
 | 
					    let destination = await fileUtils.isWritable(this.mainInstallPath) ? this.mainInstallPath : this.altInstallPath
 | 
				
			||||||
    await ffbinaries.downloadBinaries(binaries, { destination, version: '6.1', force: true })
 | 
					    await ffbinaries.downloadBinaries(binaries, { destination, version: '5.1', force: true })
 | 
				
			||||||
    Logger.info(`[BinaryManager] Binaries installed to ${destination}`)
 | 
					    Logger.info(`[BinaryManager] Binaries installed to ${destination}`)
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user