File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -352,16 +352,28 @@ async function ci({ filenames }) {
352352 const languageId = "vala" ;
353353 let version = 0 ;
354354
355- const file_api = Gio . File . new_for_path ( pkg . pkgdatadir ) . get_child (
356- "workbench.vala" ,
357- ) ;
358- file_api . copy (
355+ const template_dir = GLib . getenv ( "FLATPAK_ID" )
356+ ? Gio . File . new_for_path (
357+ `/app/share/${ GLib . getenv ( "FLATPAK_ID" ) } /langs/vala/template` ,
358+ )
359+ : current_dir . resolve_relative_path ( "src/langs/vala/template" ) ;
360+
361+ const api_file = template_dir . get_child ( "workbench.vala" ) ;
362+ api_file . copy (
359363 demo_dir . get_child ( "workbench.vala" ) ,
360364 Gio . FileCopyFlags . OVERWRITE ,
361365 null ,
362366 null ,
363367 ) ;
364368
369+ const meson_file = template_dir . get_child ( "meson.build" ) ;
370+ meson_file . copy (
371+ demo_dir . get_child ( "meson.build" ) ,
372+ Gio . FileCopyFlags . OVERWRITE ,
373+ null ,
374+ null ,
375+ ) ;
376+
365377 const [ contents ] = await file_vala . load_contents_async ( null ) ;
366378 const text = new TextDecoder ( ) . decode ( contents ) ;
367379
You can’t perform that action at this time.
0 commit comments