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.
Run meson build
to configure the build environment. Change to the build directory and run ninja
to build
meson build --prefix=/usr
cd build
ninja
To install, use ninja install
, then execute with io.github.alainm23.planify
sudo ninja install
io.github.yourusername.yourrepositoryname
Execute the following command to remove the app template's binary from your system:
sudo ninja 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 io.github.yourusername.yourrepositoryname-pot
ninja io.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 io.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 io.github.yourusername.yourrepositoryname.yml --user --install --force-clean --install-deps-from=appcenter
Then execute with
flatpak run io.github.yourusername.yourrepositoryname
flatpak uninstall io.github.yourusername.yourrepositoryname --user