File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -354,18 +354,28 @@ async function ci({ filenames, current_dir }) {
354354      const  languageId  =  "vala" ; 
355355      let  version  =  0 ; 
356356
357-       const  api_file  =  ( 
358-         GLib . getenv ( "FLATPAK_ID" ) 
359-           ? Gio . File . new_for_path ( `/app/share/${ GLib . getenv ( "FLATPAK_ID" ) }  ) 
360-           : current_dir . resolve_relative_path ( "src/langs/vala" ) 
361-       ) . get_child ( "workbench.vala" ) ; 
357+       const  template_dir  =  GLib . getenv ( "FLATPAK_ID" ) 
358+         ? Gio . File . new_for_path ( 
359+             `/app/share/${ GLib . getenv ( "FLATPAK_ID" ) }  , 
360+           ) 
361+         : current_dir . resolve_relative_path ( "src/langs/vala/template" ) ; 
362+ 
363+       const  api_file  =  template_dir . get_child ( "workbench.vala" ) ; 
362364      api_file . copy ( 
363365        demo_dir . get_child ( "workbench.vala" ) , 
364366        Gio . FileCopyFlags . OVERWRITE , 
365367        null , 
366368        null , 
367369      ) ; 
368370
371+       const  meson_file  =  template_dir . get_child ( "meson.build" ) ; 
372+       meson_file . copy ( 
373+         demo_dir . get_child ( "meson.build" ) , 
374+         Gio . FileCopyFlags . OVERWRITE , 
375+         null , 
376+         null , 
377+       ) ; 
378+ 
369379      const  [ contents ]  =  await  file_vala . load_contents_async ( null ) ; 
370380      const  text  =  new  TextDecoder ( ) . decode ( contents ) ; 
371381
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments