A template application repository for the Adwaita for Swift framework
Go to file Use this template
2024-02-10 09:18:33 +01:00
data Initial Commit 2023-11-26 22:19:52 +01:00
Sources Update to adwaita-swift 0.2.0 2024-01-30 15:51:22 +01:00
.gitignore Initial Commit 2023-11-26 22:19:52 +01:00
io.github.AparokshaUI.AdwaitaTemplate.json Fix symbolic icon not being installed correctly 2023-12-16 16:53:23 +01:00
LICENSE.md Initial Commit 2023-11-26 22:19:52 +01:00
Package.swift Update to adwaita-swift 0.2.0 2024-01-30 15:51:22 +01:00
README.md Add instructions for permission error #2 2024-02-10 09:18:33 +01:00

Adwaita Template Icon

Adwaita Template

Adwaita Template is a template application for the Adwaita package.

Table of Contents

Installation

Install the Swift Freedesktop SDK Extension

  1. Install flatpak and flatpak-builder (https://flatpak.org/).
  2. Add Flathub to Flatpak:
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
  1. Install the newest version of the Freedesktop SDK:
flatpak install org.freedesktop.Sdk
  1. Install the LLVM 16 Freedesktop extension:
flatpak install org.freedesktop.Sdk.Extension.llvm16/x86_64/23.08
  1. Install the GNOME SDK. It's not required for building the Swift Freedesktop SDK extension, but later for building the application:
flatpak install org.gnome.Sdk
  1. Download the Swift Freedesktop SDK extension using this link.
  2. In a terminal, enter the downloaded directory using cd.
  3. Install the Swift Freedesktop SDK extension:
sudo flatpak-builder build-dir org.freedesktop.Sdk.Extension.swift.json --install --force-clean

Note

If you get the error:

bwrap: Can't find source path [path]: Permission denied

Run the following command:

chmod u+s /usr/bin/bwrap

Note

Add the --user flag to the installation command if you get the error:

open(O_TMPFILE): Permission denied

Install Other Tools

The following tools are required or recommended for editing this repository:

Usage

  1. Open this project in GNOME Builder. Copy the path to the containing folder of this file (in the sidebar) and replace the following piece of text in the io.github.AparokshaUI.AdwaitaTemplate.json file:
https://github.com/AparokshaUI/AdwaitaTemplate

with the following syntax (replace /path/to/directoy):

file:///path/to/directory
  1. Build and run the application.
  2. 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
  3. Edit the code. Help is available here, ask questions in the discussions.
  4. Edit the app's icons using the previously installed tools according to this tutorial.
  5. In GNOME Builder, click on the dropdown next to the hammer and then on Export. Wait until the file explorer appears, open the .flatpak file and install the app on your device!

Thanks

Dependencies