cli MVP
This commit is contained in:
parent
367c19386c
commit
1ea50c50bc
62 changed files with 9982 additions and 608 deletions
13
packaging/flatpak/net.catcrafts.Nostro.flatpakref
Normal file
13
packaging/flatpak/net.catcrafts.Nostro.flatpakref
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
[Flatpak Ref]
|
||||
Title=Nostro
|
||||
Name=net.catcrafts.Nostro
|
||||
Branch=stable
|
||||
Url=https://flatpak.catcrafts.net/repo/
|
||||
SuggestRemoteName=catcrafts
|
||||
Homepage=https://catcrafts.net
|
||||
Comment=Banking client for Linux
|
||||
Description=nostro and nostrod, its daemon; install it system-wide with the system files from packaging/system
|
||||
Icon=
|
||||
RuntimeRepo=https://dl.flathub.org/repo/flathub.flatpakrepo
|
||||
IsRuntime=false
|
||||
GPGKey=GPG_KEY_BASE64_PLACEHOLDER
|
||||
27
packaging/flatpak/net.catcrafts.Nostro.metainfo.xml
Normal file
27
packaging/flatpak/net.catcrafts.Nostro.metainfo.xml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- SPDX-License-Identifier: CC0-1.0 -->
|
||||
<component type="console-application">
|
||||
<id>net.catcrafts.Nostro</id>
|
||||
<name>Nostro</name>
|
||||
<summary>Banking client for Linux</summary>
|
||||
<metadata_license>CC0-1.0</metadata_license>
|
||||
<project_license>LGPL-3.0-only</project_license>
|
||||
<developer id="net.catcrafts">
|
||||
<name>Catcrafts</name>
|
||||
</developer>
|
||||
<description>
|
||||
<p>
|
||||
Nostro talks to your bank's API directly: accounts, transactions, payments, requests, schedules, draft payments
|
||||
and cards, for bunq so far. Its daemon, nostrod, runs as a system user of its own and keeps every local user's
|
||||
bank connections where no program of theirs can read them; the nostro command asks it over the system bus, and
|
||||
your password is asked for before anything moves money.
|
||||
</p>
|
||||
<p>
|
||||
Apps can have Nostro pay an order at checkout, from an account you chose, once you have confirmed the payment.
|
||||
</p>
|
||||
</description>
|
||||
<provides>
|
||||
<binary>nostro</binary>
|
||||
</provides>
|
||||
<content_rating type="oars-1.1"/>
|
||||
</component>
|
||||
63
packaging/flatpak/net.catcrafts.Nostro.yaml
Normal file
63
packaging/flatpak/net.catcrafts.Nostro.yaml
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
# SPDX-License-Identifier: LGPL-3.0-only
|
||||
# SPDX-FileCopyrightText: Copyright (C) 2026 Catcrafts®
|
||||
#
|
||||
# nostro as a Flatpak: the CLI, which is the command, and nostrod, which systemd runs from it as the system user nostro
|
||||
# (packaging/system/nostrod.service). Install it system-wide, with the system files packaging/system/install.sh or
|
||||
# packaging/arch/PKGBUILD put in place; a Flatpak cannot install those itself.
|
||||
#
|
||||
# Built with crafter-build's own Flatpak as the base app, for its clang 23 and libc++, then stripped back to the two
|
||||
# binaries and the three C++ runtime libraries they link. libssl, libcrypto and libsystemd come from the Platform.
|
||||
app-id: net.catcrafts.Nostro
|
||||
runtime: org.freedesktop.Platform
|
||||
runtime-version: '26.08'
|
||||
sdk: org.freedesktop.Sdk
|
||||
base: net.catcrafts.CrafterBuild
|
||||
base-version: stable
|
||||
branch: stable
|
||||
command: nostro
|
||||
finish-args:
|
||||
# nostrod talks to the bank, and to the bus, logind and polkit on the system bus; the CLI talks to nostrod there.
|
||||
# Nothing else: no files, no session bus. nostrod keeps its state in the service's home, which is its own.
|
||||
- --share=network
|
||||
- --socket=system-bus
|
||||
modules:
|
||||
- name: nostro
|
||||
buildsystem: simple
|
||||
build-options:
|
||||
# crafter-build fetches Crafter.Network, Crafter.Thread, Crafter.DB and Crafter.LintRules from git, unpinned (see
|
||||
# AGENTS.md).
|
||||
build-args:
|
||||
- --share=network
|
||||
# A baseline CPU: crafter-build builds for the building machine's own (-march=native) unless told otherwise.
|
||||
env:
|
||||
NOSTRO_MARCH: x86-64-v2
|
||||
arch:
|
||||
aarch64:
|
||||
env:
|
||||
NOSTRO_MARCH: armv8-a
|
||||
build-commands:
|
||||
- HOME="$PWD/.home" crafter-build --banks=bunq --march=$NOSTRO_MARCH --mtune=generic
|
||||
- HOME="$PWD/.home" crafter-build --banks=bunq --product=daemon --march=$NOSTRO_MARCH --mtune=generic
|
||||
- install -Dm755 "$(ls -t bin/nostro-*/nostro | head -n1)" /app/bin/nostro
|
||||
- install -Dm755 "$(ls -t bin/nostrod-*/nostrod | head -n1)" /app/bin/nostrod
|
||||
- install -Dm644 packaging/flatpak/net.catcrafts.Nostro.metainfo.xml -t /app/share/metainfo/
|
||||
sources:
|
||||
- type: dir
|
||||
path: ../..
|
||||
skip:
|
||||
- .git
|
||||
- .home
|
||||
- bin
|
||||
- build
|
||||
cleanup-commands:
|
||||
# The base app's toolchain is in /app too: keep what nostro needs at run time, its metainfo, and the licenses of what
|
||||
# it ships: its own, which flatpak-builder recorded, and LLVM's, for libc++, libc++abi and libunwind.
|
||||
- mkdir -p /var/tmp/keep/bin /var/tmp/keep/lib /var/tmp/keep/share/metainfo /var/tmp/keep/share/licenses
|
||||
- cp -a /app/bin/nostro /app/bin/nostrod /var/tmp/keep/bin/
|
||||
- cp -a /app/lib/libc++.so.1* /app/lib/libc++abi.so.1* /app/lib/libunwind.so.1* /var/tmp/keep/lib/
|
||||
- cp -a /app/share/metainfo/net.catcrafts.Nostro.metainfo.xml /var/tmp/keep/share/metainfo/
|
||||
- cp -a /app/share/licenses/net.catcrafts.Nostro /var/tmp/keep/share/licenses/
|
||||
- install -Dm644 /app/share/licenses/net.catcrafts.CrafterBuild/llvm/LICENSE.TXT /var/tmp/keep/share/licenses/net.catcrafts.Nostro/llvm/LICENSE.TXT
|
||||
- find /app -mindepth 1 -maxdepth 1 -exec rm -rf {} +
|
||||
- cp -a /var/tmp/keep/. /app/
|
||||
- rm -rf /var/tmp/keep
|
||||
Loading…
Reference in a new issue