1
1
desktop_file = i18n.merge_file(
2
- input : ' re.sonny.Workbench.desktop' ,
3
- output : ' re.sonny.Workbench.desktop' ,
2
+ input : configure_file (
3
+ input : ' app.desktop' ,
4
+ output : ' tmp.app.desktop' ,
5
+ configuration : { ' app_id' : app_id }
6
+ ),
7
+ output :
' @[email protected] ' .format(app_id),
4
8
type : ' desktop' ,
5
9
po_dir : ' ../po' ,
6
10
install : true ,
@@ -15,19 +19,21 @@ if desktop_utils.found()
15
19
endif
16
20
17
21
appstream_file = i18n.merge_file(
18
- input : ' re.sonny.Workbench.metainfo.xml' ,
19
- output : ' re.sonny.Workbench.metainfo.xml' ,
22
+ input : configure_file (
23
+ input : ' app.metainfo.xml' ,
24
+ output : ' tmp.app.metainfo.xml' ,
25
+ configuration : { ' app_id' : app_id }
26
+ ),
27
+ output :
' @[email protected] ' .format(app_id),
20
28
po_dir : ' ../po' ,
21
29
install : true ,
22
30
install_dir : join_paths (get_option (' datadir' ), ' metainfo' )
23
31
)
24
32
25
- service_conf = configuration_data ()
26
- service_conf.set(' bindir' , bindir)
27
33
configure_file (
28
- input : ' re.sonny.Workbench .service' ,
29
- output : ' re.sonny.Workbench. service' ,
30
- configuration : service_conf ,
34
+ input : ' app .service' ,
35
+ output : ' @0@. service' .format(app_id) ,
36
+ configuration : { ' app_id ' : app_id, ' bindir ' : bindir } ,
31
37
install_dir : join_paths (get_option (' datadir' ), ' dbus-1/services' )
32
38
)
33
39
@@ -38,7 +44,10 @@ if appstream_util.found()
38
44
)
39
45
endif
40
46
41
- install_data (' re.sonny.Workbench.gschema.xml' ,
47
+ configure_file (
48
+ input : ' app.gschema.xml' ,
49
+ output :
' @[email protected] ' .format(app_id),
50
+ configuration : { ' app_id' : app_id },
42
51
install_dir : join_paths (get_option (' datadir' ), ' glib-2.0/schemas' )
43
52
)
44
53
@@ -49,4 +58,4 @@ if compile_schemas.found()
49
58
)
50
59
endif
51
60
52
- install_subdir (' icons/' , install_dir : join_paths (get_option (' datadir' )))
61
+ install_subdir (' icons/hicolor ' , install_dir : join_paths (get_option (' datadir' ), ' icons ' ))
0 commit comments