getnf / embellish

Install Nerd Fonts
GNU General Public License v3.0
23 stars 1 forks source link

Unable to build #5

Open FineFindus opened 1 month ago

FineFindus commented 1 month ago

I can't build the project, either using GNOME Builder or manually using meson. Can you please tell me the correct way to build the application?

ronniedroid commented 1 month ago

Are you using flatpak builder?

What error are you encountering?

FineFindus commented 1 month ago

I'm using GNOME Builder (which I'm pretty sure uses flatpak-builder internally).

There is no error, just the app just isn't being built. My guess would be that Builder just downloads and installs the release version, as there is no .Devel manifest.

ninja: no work to do.
[0/1] Installing files.
Installing data/io.github.getnf.embellish.data.gresource to /home/jtb/.var/app/org.gnome.Builder/cache/gnome-builder/install/embellish/host/share/io.github.getnf.embellish
Installing data/io.github.getnf.embellish.desktop to /home/jtb/.var/app/org.gnome.Builder/cache/gnome-builder/install/embellish/host/share/applications
Installing data/io.github.getnf.embellish.metainfo.xml to /home/jtb/.var/app/org.gnome.Builder/cache/gnome-builder/install/embellish/host/share/metainfo
Installing src/io.github.getnf.embellish.src.gresource to /home/jtb/.var/app/org.gnome.Builder/cache/gnome-builder/install/embellish/host/share/io.github.getnf.embellish
Installing /home/jtb/Documents/dev/git/embellish/data/io.github.getnf.embellish.gschema.xml to /home/jtb/.var/app/org.gnome.Builder/cache/gnome-builder/install/embellish/host/share/glib-2.0/schemas
Installing /home/jtb/Documents/dev/git/embellish/data/icons/io.github.getnf.embellish.svg to /home/jtb/.var/app/org.gnome.Builder/cache/gnome-builder/install/embellish/host/share/icons/hicolor/scalable/apps
Installing /home/jtb/Documents/dev/git/embellish/data/icons/io.github.getnf.embellish-symbolic.svg to /home/jtb/.var/app/org.gnome.Builder/cache/gnome-builder/install/embellish/host/share/icons/hicolor/symbolic/apps
Installing /home/jtb/.var/app/org.gnome.Builder.Devel/cache/gnome-builder/projects/embellish/builds/default-host-x86_64-main/data/io.github.getnf.embellish.service to /home/jtb/.var/app/org.gnome.Builder/cache/gnome-builder/install/embellish/host/share/dbus-1/services
Installing /home/jtb/.var/app/org.gnome.Builder.Devel/cache/gnome-builder/projects/embellish/builds/default-host-x86_64-main/src/io.github.getnf.embellish to /home/jtb/.var/app/org.gnome.Builder/cache/gnome-builder/install/embellish/host/bin
Running custom install script '/usr/bin/glib-compile-schemas /home/jtb/.var/app/org.gnome.Builder/cache/gnome-builder/install/embellish/host/share/glib-2.0/schemas'
Running custom install script '/usr/bin/gtk4-update-icon-cache -q -t -f /home/jtb/.var/app/org.gnome.Builder/cache/gnome-builder/install/embellish/host/share/icons/hicolor'
Running custom install script '/usr/bin/update-desktop-database -q /home/jtb/.var/app/org.gnome.Builder/cache/gnome-builder/install/embellish/host/share/applications'
ronniedroid commented 1 month ago

I have not tried using builder, will test soon. Can you try with flatpak builder directly please?

BTW, love eyedropper, one of my favorite apps on Gnome.

FineFindus commented 1 month ago

I've modified the included manifest, as flatpak-builder requires one, to point to the local repository, and it seems to work fine. If you're not using GNOME Builder, I'm now genuine curious to what your development workflow is like.

BTW, love eyedropper, one of my favorite apps on Gnome.

Thanks, that's super nice to hear :)

ronniedroid commented 1 month ago

Can you please share what you did so I can get it working too?

I am using emacs, just because I am used to it and haven't gotten into builder yet, but I want to give it a chance.

FineFindus commented 1 month ago

I just modified https://github.com/getnf/embellish/blob/main/io.github.getnf.embellish.yml to use

modules:
  - name: embellish
    buildsystem: meson
    sources:
      - type: dir
        path: ./

I am using emacs, just because I am used to it and haven't gotten into builder yet, but I want to give it a chance.

I meant how do you build and test your application?

ronniedroid commented 1 month ago

I mean, that is same thing as is in my config, except the forward slash, I will try it now.

Ah, I use a terminal and flatpak-builder, I am just using gnome builder now and the experience is not bad, miss my emacs bindings though.

ronniedroid commented 1 month ago

Adding this .buildconfig makes it work without any change to the manifest file. Problem is, it is refusing to build gnome-autoar for me on builder.

[default]
name=Default
runtime=flatpak:org.gnome.Sdk/x86_64/46
toolchain=default
config-opts=
run-opts=
prefix=/app
app-id=io.github.getnf.embellish
postbuild=
prebuild=
run-command=io.github.getnf.embellish
default=true