Important
This project has moved. You can find it here.
The decision is based on this article.
Thanks to No GitHub for the badge used below.
Adwaita Template is a template application for the Adwaita for Swift package.
Install the GNOME Builder IDE.
For designing an app icon, App Icon Preview and Inkscape are recommended.
Note
You do not have to install any dependencies of Adwaita for Swift, including Swift, on your system. The Adwaita template runs in a Flatpak. The GNOME Builder will automatically download dependencies from Flathub. You can also use Visual Studio Code with a Docker dev container hosting the Swift toolchain and Adwaita libraries.
- Open this project in the GNOME Builder. It will start downloading the dependencies.
- GNOME Builder will start downloading dependencies when opened.
- For Visual Studio Code, enable the Dev Containers extension, the Swift extension and the CodeLLDB extension and reopen the project window with the dev container. It may take a couple minutes to build.
- Build and run the application.
- For GNOME Builder, use the "run" icon in the toolbar.
- For Visual Studio Code, select the "run and debug" tab in the leftmost sidebar, and then tap the run icon next to "Debug AdwaitaTemplate".
- Change the app's name and other information about the application in the following files (and file names):
README.md
Package.swift
io.github.AparokshaUI.AdwaitaTemplate.json
Sources/AdwaitaTemplate.swift
data/io.github.AparokshaUI.AdwaitaTemplate.metainfo.xml
data/io.github.AparokshaUI.AdwaitaTemplate.desktop
data/icons/io.github.AparokshaUI.AdwaitaTemplate.Source.svg
data/icons/io.github.AparokshaUI.AdwaitaTemplate.svg
data/icons/io.github.AparokshaUI.AdwaitaTemplate-symbolic.svg
- Edit the code. Help is available here, ask questions in the discussions.
- You can edit the app's icons using the previously installed tools according to this tutorial.
- In GNOME Builder, click on the dropdown next to the hammer and then on
Export
. Wait until the file manager appears, open the.flatpak
file and install the app on your device! - If you want to publish your app, replace
debug
in the following build commands byrelease
:
"swift build -c debug --static-swift-stdlib",
"install -Dm755 .build/debug/AdwaitaTemplate /app/bin/AdwaitaTemplate",
If you want to e.g. publish your app on Flathub where no internet connection is allowed while running the build commands, you can use this tool that lets you generate a Flatpak manifest JSON from a Swift package.
- Adwaita for Swift licensed under the MIT License
- Localized licensed under the MIT License