src/Project/Meson.vala
authorAlan <alan@roojs.com>
Fri, 9 Feb 2024 06:16:36 +0000 (14:16 +0800)
committerAlan <alan@roojs.com>
Fri, 9 Feb 2024 06:16:36 +0000 (14:16 +0800)
src/Project/Meson.vala

index e91fc93..3a07ab2 100644 (file)
@@ -221,7 +221,14 @@ install_data(
                        
                        }
                        gr += "</gresources>\n";
-                       FileUtils.set_contents(this.project.path + "/resources/gresources.xml", gr, gr.length);
+                       try {
+                               FileUtils.set_contents(this.project.path + "/resources/gresources.xml", gr, gr.length);
+                       } catch (GLib.Error e) { 
+                               return "";
+                       )
+                       
+                       
+                       
                        
                        this.has_resources = true;
                        
@@ -232,8 +239,7 @@ install_data(
        c_name: '" + this.project.name + "_resources' 
 )";
                        
-                
-                       return "";
+                 
                
                }