a template to develop Apps for elementary OS and its AppCenter
This template is based on the official elementary Developer Documentation. Simply download it and your ready to hack!
This app template assumes you installed the following as documented in The Basic Setup of the elementary Developer Documentation:
- Development Libraries (
elementary-sdk
) - elementary Flatpak Platform and Sdk (
io.elementary.Platform
andio.elementary.Sdk
)
The Build System is preconfigured an ready to use according to The Build System described in the elementary Developer Documentation.
That said, you can simply execute the following commands in your Terminal from the project root to compile, install and start this template:
meson build --prefix=/usr
ninja -C build install
com.github.yourusername.yourrepositoryname
Execute the following command to remove the app template's binary from your system:
sudo ninja -C build uninstall
This template is fully translatable and everything is setup as described in the Translations section of the elementary Developer Documentation'
Remember that each time you add new translatable strings or change old ones, you should regenerate your *.pot
and *.po
files using the *-pot
and *-update-po
build targets from the previous two steps as follows:
ninja -C build com.github.yourusername.yourrepositoryname-pot
ninja -C build com.github.yourusername.yourrepositoryname-update-po
If you want to support more languages, just list them in the LINGUAS file and generate the new po file with the *-update-po
target:
ninja -C build com.github.yourusername.yourrepositoryname-update-po
Support for icons is configured too according to the Icons section of the elementary Developer Documentation.
Support for Flatpak is builtin as well and setup according to the Packaging section of the elementary Developer Documentation.
To run a test build and install your app, you can execute flatpak-builder from the project root:
flatpak-builder build com.github.yourusername.yourrepositoryname.yml --user --install --force-clean
flatpak uninstall com.github.yourusername.yourrepositoryname --user
To run the Unit Tests, you can execute the following command from the project root:
ninja -C build test
To run the UI Tests, you can execute the following command from the project root:
ninja -C build test