diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eff087b..2db318f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -38,7 +38,7 @@ jobs: uses: flatpak/flatpak-github-actions/flatpak-builder@v6 with: bundle: AppGenerator.flatpak - manifest-path: io.github.ecommunity.app-generator.yml + manifest-path: io.github.ellie_commons.app-generator.yml run-tests: true repository-name: appcenter repository-url: https://flatpak.elementary.io/repo.flatpakrepo diff --git a/README.md b/README.md index 5f198cc..cdf2d0b 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@

Create an elementary OS app using one of the pre-made app templates

-![Screenshot](https://raw.githubusercontent.com/elementary-community/app-generator/refs/heads/main/data/io.github.ecommunity.app-generator.png) +![Screenshot](https://raw.githubusercontent.com/ellie-commons/app-generator/refs/heads/main/data/io.github.ellie_commons.app-generator.png) ## Building and Installation @@ -27,11 +27,11 @@ cd build ninja ``` -To install, use `ninja install`, then execute with `io.github.ecommunity.app-generator` +To install, use `ninja install`, then execute with `io.github.ellie_commons.app-generator` ```bash ninja install -io.github.ecommunity.app-generator +io.github.ellie_commons.app-generator ``` ## Flatpak @@ -39,11 +39,11 @@ io.github.ecommunity.app-generator Run `flatpak-builder` to configure the build environment, download dependencies, build, and install ```bash - flatpak-builder build io.github.ecommunity.app-generator.yml --user --install --force-clean --install-deps-from=appcenter + flatpak-builder build io.github.ellie_commons.app-generator.yml --user --install --force-clean --install-deps-from=appcenter ``` Then execute with ```bash - flatpak run io.github.ecommunity.app-generator + flatpak run io.github.ellie_commons.app-generator ``` \ No newline at end of file diff --git a/data/app-generator.appdata.xml.in b/data/app-generator.appdata.xml.in index 2c6c1a3..362a7ed 100644 --- a/data/app-generator.appdata.xml.in +++ b/data/app-generator.appdata.xml.in @@ -1,37 +1,39 @@ - io.github.ecommunity.app-generator - CC-BY-4.0 - GPL-3.0-or-later - App Generator - Create an elementary OS app using one of the pre-made app templates - -

- App Generator streamlines the process of creating Vala and GTK projects, allowing you to quickly get started without having to configure everything from scratch. With just a few clicks, it generates a well-organized and functional project structure, optimizing your workflow and saving you from repetitive setup tasks. Perfect for developers who want to focus on coding without worrying about configuration details. -

-
- - - https://raw.githubusercontent.com/elementary-community/app-generator/refs/heads/main/data/io.github.ecommunity.app-generator.png - - - - ModernToolkit - HiDpiIcon - - elementary Community - https://github.com/elementary-community/app-generator - https://github.com/elementary-community/app-generator/issues - io.github.ecommunity.app-generator.desktop - - - -

First Release!!!

-
-
-
- - - #603461 - + io.github.ellie_commons.app-generator + CC-BY-4.0 + GPL-3.0-or-later + App Generator + Create an elementary OS app using one of the pre-made app templates + +

+ App Generator streamlines the process of creating Vala and GTK projects, allowing you to quickly get started without having to configure everything from scratch. With just a few clicks, it generates a well-organized and functional project structure, optimizing your workflow and saving you from repetitive setup tasks. Perfect for developers who want to focus on coding without worrying about configuration details. +

+
+ + + https://raw.githubusercontent.com/ellie-commons/app-generator/refs/heads/main/data/io.github.ellie_commons.app-generator.png + + + + ModernToolkit + HiDpiIcon + + + elementary Commons + + https://github.com/ellie-commons/app-generator + https://github.com/ellie-commons/app-generator/issues + io.github.ellie_commons.app-generator.desktop + + + +

First Release!!!

+
+
+
+ + + #603461 +
\ No newline at end of file diff --git a/data/app-generator.desktop.in b/data/app-generator.desktop.in index f78e648..5c581f3 100644 --- a/data/app-generator.desktop.in +++ b/data/app-generator.desktop.in @@ -6,6 +6,6 @@ Name=App Generator Comment=Create an elementary OS app using one of the pre-made app templates. Categories=Development;Education; -Icon=io.github.ecommunity.app-generator -Exec=io.github.ecommunity.app-generator +Icon=io.github.ellie_commons.app-generator +Exec=io.github.ellie_commons.app-generator Terminal=false diff --git a/data/app-generator.gresource.xml b/data/app-generator.gresource.xml index 3fa9753..5c01957 100644 --- a/data/app-generator.gresource.xml +++ b/data/app-generator.gresource.xml @@ -1,6 +1,6 @@ - + Application.css \ No newline at end of file diff --git a/data/app-generator.gschema.xml b/data/app-generator.gschema.xml index ddb8631..e25bfc3 100644 --- a/data/app-generator.gschema.xml +++ b/data/app-generator.gschema.xml @@ -1,6 +1,6 @@ - + 700 Most recent window height diff --git a/data/io.github.ecommunity.app-generator.png b/data/io.github.ellie_commons.app-generator.png similarity index 100% rename from data/io.github.ecommunity.app-generator.png rename to data/io.github.ellie_commons.app-generator.png diff --git a/io.github.ecommunity.app-generator.yml b/io.github.ellie_commons.app-generator.yml similarity index 93% rename from io.github.ecommunity.app-generator.yml rename to io.github.ellie_commons.app-generator.yml index 4d94196..a2ba373 100644 --- a/io.github.ecommunity.app-generator.yml +++ b/io.github.ellie_commons.app-generator.yml @@ -1,5 +1,5 @@ # This is the same ID that you've used in meson.build and other files -app-id: io.github.ecommunity.app-generator +app-id: io.github.ellie_commons.app-generator # Instead of manually specifying a long list of build and runtime dependencies, # we can use a convenient pre-made runtime and SDK. For this example, we'll be @@ -10,7 +10,7 @@ sdk: io.elementary.Sdk # This should match the exec line in your .desktop file and usually is the same # as your app ID -command: io.github.ecommunity.app-generator +command: io.github.ellie_commons.app-generator # Here we can specify the kinds of permissions our app needs to run. Since we're # not using hardware like webcams, making sound, or reading external files, we diff --git a/meson.build b/meson.build index 16ddf04..d396a23 100644 --- a/meson.build +++ b/meson.build @@ -1,6 +1,6 @@ # project name and programming language project( - 'io.github.ecommunity.app-generator', + 'io.github.ellie_commons.app-generator', 'vala', 'c', version: '0.1' ) diff --git a/po/de.po b/po/de.po index 026ab7a..06b1f19 100644 --- a/po/de.po +++ b/po/de.po @@ -1,11 +1,11 @@ -# German translations for io.github.elementary-community.app-generator package. -# Copyright (C) 2024 THE io.github.elementary-community.app-generator'S COPYRIGHT HOLDER -# This file is distributed under the same license as the io.github.elementary-community.app-generator package. +# German translations for io.github.ellie_commons.app-generator package. +# Copyright (C) 2024 THE io.github.ellie_commons.app-generator'S COPYRIGHT HOLDER +# This file is distributed under the same license as the io.github.ellie_commons.app-generator package. # Automatically generated, 2024. # msgid "" msgstr "" -"Project-Id-Version: io.github.elementary-community.app-generator\n" +"Project-Id-Version: io.github.ellie_commons.app-generator\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2024-10-13 09:15+0300\n" "PO-Revision-Date: 2024-09-19 11:25-0500\n" diff --git a/po/es.po b/po/es.po index 929c7e7..0f89877 100644 --- a/po/es.po +++ b/po/es.po @@ -1,11 +1,11 @@ -# Spanish translations for io.github.elementary-community.app-generator package. -# Copyright (C) 2024 THE io.github.elementary-community.app-generator'S COPYRIGHT HOLDER -# This file is distributed under the same license as the io.github.elementary-community.app-generator package. +# Spanish translations for io.github.ellie_commons.app-generator package. +# Copyright (C) 2024 THE io.github.ellie_commons.app-generator'S COPYRIGHT HOLDER +# This file is distributed under the same license as the io.github.ellie_commons.app-generator package. # Automatically generated, 2024. # msgid "" msgstr "" -"Project-Id-Version: io.github.elementary-community.app-generator\n" +"Project-Id-Version: io.github.ellie_commons.app-generator\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2024-10-13 09:15+0300\n" "PO-Revision-Date: 2024-09-19 11:25-0500\n" diff --git a/po/io.github.ecommunity.app-generator.pot b/po/io.github.ellie_commons.app-generator.pot similarity index 95% rename from po/io.github.ecommunity.app-generator.pot rename to po/io.github.ellie_commons.app-generator.pot index 9911c33..f6f52c5 100644 --- a/po/io.github.ecommunity.app-generator.pot +++ b/po/io.github.ellie_commons.app-generator.pot @@ -1,12 +1,12 @@ # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the io.github.ecommunity.app-generator package. +# This file is distributed under the same license as the io.github.ellie_commons.app-generator package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: io.github.ecommunity.app-generator\n" +"Project-Id-Version: io.github.ellie_commons.app-generator\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2024-10-13 09:15+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" diff --git a/src/Application.vala b/src/Application.vala index 236ba57..17d8b51 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -7,19 +7,19 @@ public class AppGenerator : Gtk.Application { public MainWindow main_window; public static AppGenerator _instance = null; - public static AppGenerator instance { - get { - if (_instance == null) { - _instance = new AppGenerator (); - } - return _instance; - } - } + public static AppGenerator instance { + get { + if (_instance == null) { + _instance = new AppGenerator (); + } + return _instance; + } + } public AppGenerator () { Object ( - application_id: "io.github.ecommunity.app-generator", + application_id: "io.github.ellie_commons.app-generator", flags: ApplicationFlags.FLAGS_NONE ); } @@ -44,9 +44,9 @@ public class AppGenerator : Gtk.Application { protected override void activate () { if (main_window != null) { - main_window.present (); - return; - } + main_window.present (); + return; + } var main_window = new MainWindow (this); @@ -55,7 +55,7 @@ public class AppGenerator : Gtk.Application { * Set maximize after height/width else window is min size on unmaximize * Bind maximize as SET else get get bad sizes */ - var settings = new Settings ("io.github.ecommunity.app-generator"); + var settings = new Settings ("io.github.ellie_commons.app-generator"); settings.bind ("window-height", main_window, "default-height", SettingsBindFlags.DEFAULT); settings.bind ("window-width", main_window, "default-width", SettingsBindFlags.DEFAULT); @@ -67,7 +67,7 @@ public class AppGenerator : Gtk.Application { // Use Css var provider = new Gtk.CssProvider (); - provider.load_from_resource ("/io/github/ecommunity/app-generator/Application.css"); + provider.load_from_resource ("/io/github/ellie_commons/app-generator/Application.css"); Gtk.StyleContext.add_provider_for_display ( Gdk.Display.get_default (), @@ -79,6 +79,6 @@ public class AppGenerator : Gtk.Application { public static int main (string[] args) { AppGenerator app = AppGenerator.instance; - return app.run (args); + return app.run (args); } } diff --git a/src/Config.vala.in b/src/Config.vala.in index 5f9bcde..76c2a97 100644 --- a/src/Config.vala.in +++ b/src/Config.vala.in @@ -1,3 +1,3 @@ public const string GETTEXT_PACKAGE = @GETTEXT_PACKAGE@; public const string LOCALEDIR = @LOCALEDIR@; -public const string REPOSITORY_TEMPLATE_URL = "https://github.com/elementary-community/elementary-app-template.git"; +public const string REPOSITORY_TEMPLATE_URL = "https://github.com/ellie-commons/elementary-app-template.git"; diff --git a/src/MainWindow.vala b/src/MainWindow.vala index d07afa1..c3ae825 100644 --- a/src/MainWindow.vala +++ b/src/MainWindow.vala @@ -17,15 +17,15 @@ public class MainWindow : Gtk.ApplicationWindow { } static construct { - weak Gtk.IconTheme default_theme = Gtk.IconTheme.get_for_display (Gdk.Display.get_default ()); - default_theme.add_resource_path ("/io/github/ecommunity/app-generator/"); - } + weak Gtk.IconTheme default_theme = Gtk.IconTheme.get_for_display (Gdk.Display.get_default ()); + default_theme.add_resource_path ("/io/github/ellie_commons/app-generator/"); + } construct { var headerbar = new Gtk.HeaderBar () { - title_widget = new Gtk.Label (null), - hexpand = true - }; + title_widget = new Gtk.Label (null), + hexpand = true + }; var project_icon = new Gtk.Image.from_icon_name ("applications-development") { pixel_size = 96 @@ -86,8 +86,8 @@ public class MainWindow : Gtk.ApplicationWindow { main_box.append (form_box); var toolbar_view = new Adw.ToolbarView (); - toolbar_view.add_top_bar (headerbar); - toolbar_view.content = main_box; + toolbar_view.add_top_bar (headerbar); + toolbar_view.content = main_box; child = toolbar_view; diff --git a/src/Services/FormControl.vala b/src/Services/FormControl.vala index 16e6e17..985c996 100644 --- a/src/Services/FormControl.vala +++ b/src/Services/FormControl.vala @@ -10,13 +10,13 @@ public class FormControl : GLib.Object { if (value == null) { return false; } - + foreach (Validator validator in validators) { if (!validator.validate (value)) { return false; } } - + return true; } } @@ -51,4 +51,4 @@ public class FormControl : GLib.Object { return null; } -} \ No newline at end of file +} diff --git a/src/Services/FormGroup.vala b/src/Services/FormGroup.vala index 8e3e716..82a9d64 100644 --- a/src/Services/FormGroup.vala +++ b/src/Services/FormGroup.vala @@ -21,7 +21,7 @@ public class FormGroup : GLib.Object { } public FormGroup () { - controls = new Gee.ArrayList(); + controls = new Gee.ArrayList (); } public void add_control (FormControl control) { @@ -30,4 +30,4 @@ public class FormGroup : GLib.Object { value_changed (control, new_value); }); } -} \ No newline at end of file +} diff --git a/src/Services/Validators.vala b/src/Services/Validators.vala index 5488941..6f8e79b 100644 --- a/src/Services/Validators.vala +++ b/src/Services/Validators.vala @@ -25,7 +25,7 @@ public class Validators.Regex : Validator { if (regex == null) { return true; } - + return regex.match (value); } -} \ No newline at end of file +} diff --git a/src/Views/Developer.vala b/src/Views/Developer.vala index ef06b2a..2a833cf 100644 --- a/src/Views/Developer.vala +++ b/src/Views/Developer.vala @@ -72,4 +72,4 @@ public class Views.Developer : Adw.Bin { name_entry.text = ""; email_entry.text = ""; } -} \ No newline at end of file +} diff --git a/src/Views/Form.vala b/src/Views/Form.vala index 1993e3d..6b825f9 100644 --- a/src/Views/Form.vala +++ b/src/Views/Form.vala @@ -62,7 +62,7 @@ public class Views.Form : Adw.Bin { secondary_icon_name = "folder-symbolic", text = GLib.Environment.get_user_special_dir (GLib.UserDirectory.TEMPLATES) }; - + var spinner = new Gtk.Spinner () { valign = Gtk.Align.CENTER, halign = Gtk.Align.CENTER, @@ -193,7 +193,7 @@ public class Views.Form : Adw.Bin { } private void set_project_values (string destination_folder, string project_name, string application_id) { - string project_folder = GLib.Path.build_filename (destination_folder, project_name); + string project_folder = GLib.Path.build_filename (destination_folder, project_name); string application_id_schema = application_id.replace (".", "/"); // Readme File @@ -233,7 +233,7 @@ public class Views.Form : Adw.Bin { string new_gresource_file = GLib.Path.build_filename (project_folder, "data", project_name + ".gresource.xml"); rename_file (gresource_file, new_gresource_file); set_file_content (new_gresource_file, "{{APPLICATION_ID_GSCHEMA}}", application_id_schema); - + // Gschema Files string gschema_file = GLib.Path.build_filename (project_folder, "data", "{{PROJECT_NAME}}.gschema.xml"); string new_gschema_file = GLib.Path.build_filename (project_folder, "data", project_name + ".gschema.xml"); @@ -272,10 +272,10 @@ public class Views.Form : Adw.Bin { try { string content; FileUtils.get_contents (filename, out content); - + string new_content = content.replace (key, value); - - FileUtils.set_contents (filename, new_content, -1); + + FileUtils.set_contents (filename, new_content, -1); } catch (Error e) { debug (e.message); } @@ -290,4 +290,4 @@ public class Views.Form : Adw.Bin { debug (e.message); } } -} \ No newline at end of file +} diff --git a/src/Views/Success.vala b/src/Views/Success.vala index 99dd548..6bd1358 100644 --- a/src/Views/Success.vala +++ b/src/Views/Success.vala @@ -13,7 +13,7 @@ public class Views.Success : Adw.Bin { } else { success_icon.remove_css_class ("animation"); } - + } } @@ -95,7 +95,7 @@ public class Views.Success : Adw.Bin { }; var row_label = new Gtk.Label (title); - + var row_box = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 6); row_box.append (row_icon); row_box.append (row_label); @@ -110,4 +110,4 @@ public class Views.Success : Adw.Bin { return row; } -} \ No newline at end of file +} diff --git a/src/Widgets/Stepper.vala b/src/Widgets/Stepper.vala index 1c3ae6a..e25a1df 100644 --- a/src/Widgets/Stepper.vala +++ b/src/Widgets/Stepper.vala @@ -18,7 +18,7 @@ public class Widgets.Stepper : Gtk.Grid { foreach (Gtk.Button button in stepper_map.values) { button.remove_css_class (Granite.STYLE_CLASS_SUGGESTED_ACTION); } - + if (stepper_map.has_key (value)) { stepper_map.get (value).add_css_class (Granite.STYLE_CLASS_SUGGESTED_ACTION); } @@ -68,8 +68,8 @@ public class Widgets.Stepper : Gtk.Grid { } main_box.append (button_box); - + stepper_map[index] = number_button; index++; } -} \ No newline at end of file +}