@@ -697,8 +697,7 @@ function onBinariesInstallDone() {
697697 // get exe file list from folders
698698 for ( const dir of [
699699 File . fromArray ( [ resManager . GetBinDir ( ) . path , 'scripts' ] ) ,
700- File . fromArray ( [ resManager . getLegacyBuilderDir ( ) . path , 'utils' ] ) ,
701- File . fromArray ( [ resManager . getUnifyBuilderExe ( ) . dir ] )
700+ File . fromArray ( [ resManager . getLegacyBuilderDir ( ) . path , 'utils' ] )
702701 ] ) {
703702 dir . GetList ( undefined , File . EXCLUDE_ALL_FILTER )
704703 . forEach ( ( f ) => {
@@ -708,12 +707,17 @@ function onBinariesInstallDone() {
708707 } ) ;
709708 }
710709
710+ if ( exeLi . length > 0 )
711+ GlobalEvent . emit ( 'globalLog.append' , 'Setup binaries permissions -> ' + os . EOL ) ;
712+
711713 for ( const path of exeLi ) {
712714 try {
713- ChildProcess . execSync ( `chmod +x "${ path } "` ) ;
714- GlobalEvent . emit ( 'globalLog' , newMessage ( 'Info' , `chmod +x "${ path } "` ) ) ;
715+ const cmd = `chmod +x "${ path } "` ;
716+ GlobalEvent . emit ( 'globalLog.append' , cmd + os . EOL ) ;
717+ ChildProcess . execSync ( cmd ) ;
715718 } catch ( error ) {
716719 GlobalEvent . emit ( 'globalLog' , ExceptionToMessage ( error , 'Error' ) ) ;
720+ GlobalEvent . emit ( 'globalLog.show' ) ;
717721 }
718722 }
719723 }
@@ -1039,7 +1043,7 @@ async function InitComponents(context: vscode.ExtensionContext): Promise<boolean
10391043 fs . accessSync ( exePath , fs . constants . R_OK | fs . constants . X_OK ) ;
10401044 } catch ( error ) {
10411045 const cmd = `chmod +x "${ exePath } "` ;
1042- GlobalEvent . emit ( 'globalLog.append' , cmd ) ;
1046+ GlobalEvent . emit ( 'globalLog.append' , cmd + os . EOL ) ;
10431047 ChildProcess . execSync ( cmd ) ;
10441048 }
10451049 }
0 commit comments