Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
4 changes: 2 additions & 2 deletions data/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ i18n.merge_file(
)

i18n.merge_file(
input: 'app-generator.appdata.xml.in',
output: meson.project_name() + '.appdata.xml',
input: 'app-generator.metainfo.xml.in',
output: meson.project_name() + '.metainfo.xml',
po_dir: meson.project_source_root() / 'po' / 'extra',
install: true,
install_dir: get_option('datadir') / 'metainfo'
Expand Down
2 changes: 1 addition & 1 deletion po/extra/POTFILES
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
data/app-generator.appdata.xml.in
data/app-generator.metainfo.xml.in
data/app-generator.desktop.in
8 changes: 6 additions & 2 deletions src/Views/Form.vala
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ public class Views.Form : Adw.Bin {
set_file_content (new_flatpak_file, "{{PROJECT_NAME}}", project_name);

// AppData Files
string appdata_file = GLib.Path.build_filename (project_folder, "data", "{{PROJECT_NAME}}.appdata.xml.in");
string new_appdata_file = GLib.Path.build_filename (project_folder, "data", project_name + ".appdata.xml.in");
string appdata_file = GLib.Path.build_filename (project_folder, "data", "{{PROJECT_NAME}}.metainfo.xml.in");
string new_appdata_file = GLib.Path.build_filename (project_folder, "data", project_name + ".metainfo.xml.in");
rename_file (appdata_file, new_appdata_file);
set_file_content (new_appdata_file, "{{APPLICATION_ID}}", application_id);
set_file_content (new_appdata_file, "{{PROJECT_NAME}}", project_name);
Expand Down Expand Up @@ -259,6 +259,10 @@ public class Views.Form : Adw.Bin {
set_file_content (new_appdata_file, "{{DEVELOPER_NAME}}", developer_name);
set_file_content (new_appdata_file, "{{DEVELOPER_EMAIL}}", developer_email);

// Set Po files
string po_extra_window_file = GLib.Path.build_filename (project_folder, "po", "extra", "POTFILES");
set_file_content (po_extra_window_file, "{{PROJECT_NAME}}", project_name);

created (project_name_entry.text, location_entry.text);
}

Expand Down