Repository voor Fase 2 van de Proofs-of-Concept. Deze repository bevat een simpele calculator-app, gebruik makend van Adwaita for Swift.
Go to file
david-swift 447a06e5cb Update Flatpak manifest and instructions 2024-03-26 06:27:51 +01:00
Sources Mark menu as primary and add tooltip 2024-03-05 17:03:33 +01:00
data Initial Commit 2023-11-26 22:19:52 +01:00
.gitignore Initial Commit 2023-11-26 22:19:52 +01:00
LICENSE.md Initial Commit 2023-11-26 22:19:52 +01:00
Package.swift Add localization 2024-03-04 21:23:38 +01:00
README.md Update Flatpak manifest and instructions 2024-03-26 06:27:51 +01:00
io.github.AparokshaUI.AdwaitaTemplate.json Update Flatpak manifest and instructions 2024-03-26 06:27:51 +01:00

README.md

Adwaita Template Icon

Adwaita Template

Adwaita Template is a template application for the Adwaita for Swift package.

Table of Contents

Installation

Install the GNOME Builder IDE.

For designing an app icon, App Icon Preview and Inkscape are recommended.

Usage

  1. Open this project in the GNOME Builder. It will start downloading the dependencies.
  2. Build and run the application using the "run" icon in the toolbar.
  3. 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
  4. Edit the code. Help is available here, ask questions in the discussions.
  5. You can edit the app's icons using the previously installed tools according to this tutorial.
  6. 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!

Flatpak SPM Generator

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.

Thanks

Dependencies