File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,6 +65,14 @@ async function getPackage(){
6565 console . log ( 'Renaming files' ) ;
6666 fs . renameSync ( temp , system . typePath ) ;
6767
68+ console . log ( 'Applying chmod' ) ;
69+ fs . readdirSync ( system . pathDir , { withFileTypes : true } ) . forEach ( f => {
70+ if ( ! f . isDirectory ( ) ) {
71+ console . log ( `${ system . pathDir } /${ f . name } ` ) ;
72+ fs . chmodSync ( `${ system . pathDir } /${ f . name } ` , '777' ) ;
73+ }
74+ } ) ;
75+
6876 console . log ( 'FFmpeg downloaded!' ) ;
6977}
7078
Original file line number Diff line number Diff line change @@ -39,3 +39,4 @@ module.exports.typePath = path.normalize(rootDir + '/ffmpeg/' + OS + BIT);
3939module . exports . zipPath = path . normalize ( rootDir + '/ffmpeg/' + module . exports . url . substring ( module . exports . url . lastIndexOf ( '/' ) + 1 ) ) ;
4040module . exports . rootDir = rootDir ;
4141module . exports . path = path . normalize ( module . exports . path ) ;
42+ module . exports . pathDir = path . dirname ( module . exports . path ) ;
You can’t perform that action at this time.
0 commit comments