A template for developing applications for the COSMIC™ desktop environment.
Log into your GitHub account and click the "Use this template" button above. This will create a new repository in your account. Choose a name for this repository, and then clone it locally onto your system. Make the following changes after cloning it:
- In
Cargo.toml, change thenameand set yourlicenseandrepository. - Create a
LICENSEfile containing your chosen software license. - Rename the
cosmic_app_templateportion ofi18n/en/cosmic_app_template.ftlto the new cratename. - In
justfile, change thenameandappidvariables with your own. - In
src/app.rs, change theAPP_IDvalue in theApplicationimplementation of theAppModel. - In
src/app.rs, change theREPOSITORYconst with the URL to your application's git repository. - In
res/app.desktop, change theName=,Exec=, andIcon=fields - Set your license within the SPDX tags at the top of each source file
A justfile is included by default with common recipes used by other COSMIC projects. Install from casey/just
justbuilds the application with the defaultjust build-releaserecipejust runbuilds and runs the applicationjust installinstalls the project into the systemjust vendorcreates a vendored tarballjust build-vendoredcompiles with vendored dependencies from that tarballjust checkruns clippy on the project to check for linter warningsjust check-jsoncan be used by IDEs that support LSP
Refer to the libcosmic API documentation and book for help with building applications with libcosmic.