Skip to content

Commit

Permalink
change app-id to com.github.alexr4535.siglo for flathub
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Robinson committed Aug 3, 2021
1 parent f394094 commit 6e44887
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 29 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ Once the container is running, you can launch the app:
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install --user flathub org.gnome.Sdk//3.38 org.gnome.Platform//3.38

flatpak-builder --repo=repo --force-clean build-dir/ org.gnome.siglo.json
flatpak build-bundle ./repo/ siglo.flatpak org.gnome.siglo
flatpak-builder --repo=repo --force-clean build-dir/ com.github.alexr4535.siglo.json
flatpak build-bundle ./repo/ siglo.flatpak com.github.alexr4535.siglo
flatpak install --user ./siglo.flatpak
```

Expand All @@ -79,8 +79,8 @@ sudo dnf install qemu-system-arm qemu-user-static
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install --user flathub org.gnome.Sdk/aarch64/3.38 org.gnome.Platform/aarch64/3.38

flatpak-builder --arch=aarch64 --repo=repo --force-clean build-dir org.gnome.siglo.json
flatpak build-bundle --arch=aarch64 ./repo/ siglo.flatpak org.gnome.siglo
flatpak-builder --arch=aarch64 --repo=repo --force-clean build-dir com.github.alexr4535.siglo.json
flatpak build-bundle --arch=aarch64 ./repo/ siglo.flatpak com.github.alexr4535.siglo
```

Transfer the `siglo.flatpak` file on the PinePhone and install it with the following command:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>org.gnome.siglo.desktop</id>
<id>com.github.alexr4535.siglo.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>LicenseRef-proprietary</project_license>
<description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Terminal=false
Type=Application
Categories=GTK;
StartupNotify=true
Icon=org.gnome.siglo
Icon=com.github.alexr4535.siglo
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<schemalist gettext-domain="siglo">
<schema id="org.gnome.siglo" path="/org/gnome/siglo/">
<schema id="com.github.alexr4535.siglo" path="/com/github/alexr4535/siglo/">
</schema>
</schemalist>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions data/meson.build
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
desktop_file = i18n.merge_file(
input: 'org.gnome.siglo.desktop.in',
output: 'org.gnome.siglo.desktop',
input: 'com.github.alexr4535.siglo.desktop.in',
output: 'com.github.alexr4535.siglo.desktop',
type: 'desktop',
po_dir: '../po',
install: true,
Expand All @@ -14,15 +14,15 @@ if desktop_utils.found()
)
endif

install_data(join_paths('icons', 'org.gnome.siglo.svg'),
install_data(join_paths('icons', 'com.github.alexr4535.siglo.svg'),
install_dir: join_paths(get_option('datadir'), 'icons')
)

install_data('siglo.service', install_dir: '/etc/systemd/user/')

appstream_file = i18n.merge_file(
input: 'org.gnome.siglo.appdata.xml.in',
output: 'org.gnome.siglo.appdata.xml',
input: 'com.github.alexr4535.siglo.appdata.xml.in',
output: 'com.github.alexr4535.siglo.appdata.xml',
po_dir: '../po',
install: true,
install_dir: join_paths(get_option('datadir'), 'appdata')
Expand All @@ -35,7 +35,7 @@ if appstream_util.found()
)
endif

install_data('org.gnome.siglo.gschema.xml',
install_data('com.github.alexr4535.siglo.gschema.xml',
install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas')
)

Expand Down
2 changes: 1 addition & 1 deletion org.gnome.siglo.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"app-id" : "org.gnome.siglo",
"app-id" : "com.github.alexr4535.siglo",
"runtime" : "org.gnome.Platform",
"runtime-version" : "3.38",
"sdk" : "org.gnome.Sdk",
Expand Down
6 changes: 3 additions & 3 deletions po/POTFILES
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
data/org.gnome.siglo.desktop.in
data/org.gnome.siglo.appdata.xml.in
data/org.gnome.siglo.gschema.xml
data/com.github.alexr4535.siglo.desktop.in
data/com.github.alexr4535.siglo.appdata.xml.in
data/com.github.alexr4535.siglo.gschema.xml
src/window.ui
src/main.py
src/window.py
Expand Down
2 changes: 1 addition & 1 deletion po/nl.po
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language: nl\n"

#: data/org.gnome.siglo.desktop.in:3
#: data/com.github.alexr4535.siglo.desktop.in:3
msgid "Siglo"
msgstr "Siglo"

Expand Down
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self):
self.conf = config()
self.conf.load_defaults()
super().__init__(
application_id="org.gnome.siglo", flags=Gio.ApplicationFlags.FLAGS_NONE
application_id="com.github.alexr4535.siglo", flags=Gio.ApplicationFlags.FLAGS_NONE
)

def do_activate(self):
Expand Down
2 changes: 1 addition & 1 deletion src/siglo.gresource.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<gresources>
<gresource prefix="/org/gnome/siglo">
<gresource prefix="/com/github/alexr4535/siglo">
<file>window.ui</file>
<file>watch.svg</file>
<file>watch-icon.svg</file>
Expand Down
4 changes: 2 additions & 2 deletions src/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def data_received(self):
GLib.idle_add(self.callback, [firmware, battery])


@Gtk.Template(resource_path="/org/gnome/siglo/window.ui")
@Gtk.Template(resource_path="/com/github/alexr4535/siglo/window.ui")
class SigloWindow(Gtk.ApplicationWindow):
__gtype_name__ = "SigloWindow"
# Navigation
Expand Down Expand Up @@ -117,7 +117,7 @@ def make_watch_row(self, name, mac):
grid.set_margin_right(8)
row.add(grid)

icon = Gtk.Image.new_from_resource("/org/gnome/siglo/watch-icon.svg")
icon = Gtk.Image.new_from_resource("/com/github/alexr4535/siglo/watch-icon.svg")
grid.attach(icon, 0, 0, 1, 2)

label_alias = Gtk.Label(label="Name", xalign=1.0)
Expand Down
12 changes: 6 additions & 6 deletions src/window.ui
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<object class="GtkImage">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="resource">/org/gnome/siglo/watch.svg</property>
<property name="resource">/com/github/alexr4535/siglo/watch.svg</property>
</object>
<packing>
<property name="expand">True</property>
Expand Down Expand Up @@ -130,7 +130,7 @@
<object class="GtkImage">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="resource">/org/gnome/siglo/watch-error.svg</property>
<property name="resource">/com/github/alexr4535/siglo/watch-error.svg</property>
</object>
<packing>
<property name="expand">True</property>
Expand Down Expand Up @@ -348,7 +348,7 @@
<object class="GtkImage">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="resource">/org/gnome/siglo/watch-icon.svg</property>
<property name="resource">/com/github/alexr4535/siglo/watch-icon.svg</property>
</object>
<packing>
<property name="left-attach">0</property>
Expand Down Expand Up @@ -787,7 +787,7 @@
<object class="GtkImage" id="firmware_picture1">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="resource">/org/gnome/siglo/watch-error.svg</property>
<property name="resource">/com/github/alexr4535/siglo/watch-error.svg</property>
</object>
<packing>
<property name="expand">True</property>
Expand Down Expand Up @@ -840,7 +840,7 @@
<object class="GtkImage" id="firmware_picture">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="resource">/org/gnome/siglo/watch-progress.svg</property>
<property name="resource">/com/github/alexr4535/siglo/watch-progress.svg</property>
</object>
<packing>
<property name="expand">True</property>
Expand Down Expand Up @@ -906,7 +906,7 @@
<object class="GtkImage" id="firmware_picture2">
<property name="visible">True</property>
<property name="can-focus">False</property>
<property name="resource">/org/gnome/siglo/watch-check.svg</property>
<property name="resource">/com/github/alexr4535/siglo/watch-check.svg</property>
</object>
<packing>
<property name="expand">True</property>
Expand Down

0 comments on commit 6e44887

Please sign in to comment.