Quantcast
Channel: CodeSection,代码区,Linux操作系统:Ubuntu_Centos_Debian - CodeSec
Viewing all articles
Browse latest Browse all 11063

Contribute to Polari with this one simple trick!

$
0
0

I’ve been rather quiet recently working on new features for Builder. But we managed to just release Builder 3.22.3 which is full of bug fixes and a really new important feature. You can now meaningfully target flatpak when building your application. Matthew Leeds has done this outstanding work and it is really going to simplify how you contribute to GNOME applications going forward.

I’m really happy with the quality of this feature because it has shown me where our LibIDE design has done well, and where it has not. Of course, we will address that for 3.24 to help make some of the UI less confusing.

Without further ado, how to clone, build, run, and hack on Polari without so much as a toolchain installed on your host system. The only prerequisite is to get GNOME Builder 3.22.3 from the GNOME flatpak repository (or your distribution if it is up to date).


Contribute to Polari with this one simple trick!
Open Builder, select Clone from the buttons in the header bar.
Contribute to Polari with this one simple trick!
Set the URL for Polari to git://git.gnome.org/polari (optionally use user@git.gnome.org:/git/polari.git if you have commit access to GNOME)
Contribute to Polari with this one simple trick!
Click on the blue Clone button and wait a few moments while we download the repository
Contribute to Polari with this one simple trick!
You’ll be presented with the Workbench like so, click on “Build Preferences” in the perspective selector.
Contribute to Polari with this one simple trick!
Now select “org.gnome.Polari.json” as the build runtime. (We expect this to be treated as a build configuration in 3.24 instead of a runtime)
Contribute to Polari with this one simple trick!
Click the Build button on the header bar or in the build popover
Contribute to Polari with this one simple trick!
On the first build, flatpak-builder is used to build all the necessary dependencies for Polari (such as telepathy). After it has built, click on the “Run” button in the header bar.
Contribute to Polari with this one simple trick!
Hey! Look at that, a Polari window connected to freenode!
Contribute to Polari with this one simple trick!
To make sure I’m not fooling you, let’s add a printf() to polari.c (the application entry point). Save, then click “Run” again.
Contribute to Polari with this one simple trick!
How about that, we can see the output in the “Run Output” panel and Polari still seems to work. Yay!

Viewing all articles
Browse latest Browse all 11063

Trending Articles