mirror of
https://github.com/hulthe/inkopslista.git
synced 2026-08-03 23:11:28 +02:00
Add flatpak script
This commit is contained in:
@@ -10,7 +10,8 @@ tokio = { version = "1.48.0", features = ["full"] }
|
||||
|
||||
[dependencies.slint]
|
||||
version = "1.14.1"
|
||||
features = ["live-preview"]
|
||||
default-features = false
|
||||
features = ["live-preview", "backend-winit-wayland", "renderer-femtovg", "compat-1-2"]
|
||||
|
||||
[build-dependencies]
|
||||
slint-build = "1.14.1"
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
buliddir
|
||||
repo
|
||||
inköpslista
|
||||
@@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -ex
|
||||
|
||||
cd "$(dirname 0)"
|
||||
CARGO_TARGET_DIR="${CARGO_TARGET_DIR:-../../target}"
|
||||
|
||||
# TODO: cross compilation with cross --target=aarch64-unknown-linux-gnu
|
||||
cargo b -r
|
||||
|
||||
cp "$CARGO_TARGET_DIR/release/inköpslista" .
|
||||
|
||||
# TODO: cross compilation with --arch=aarch64
|
||||
flatpak-builder -v --force-clean --user --install-deps-from=flathub --repo=repo --install builddir sh.nubo.Inkopslista.yml
|
||||
@@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Name=Inköpslista
|
||||
Exec=inköpslista %U
|
||||
Terminal=false
|
||||
Type=Application
|
||||
# Icon=sh.nubo.Inköpslista
|
||||
StartupWMClass=Inköpslista
|
||||
# Comment=
|
||||
# Categories=Network;
|
||||
@@ -0,0 +1,42 @@
|
||||
id: sh.nubo.Inkopslista
|
||||
runtime: org.freedesktop.Platform
|
||||
runtime-version: '25.08'
|
||||
sdk: org.freedesktop.Sdk
|
||||
|
||||
command: 'inköpslista'
|
||||
|
||||
modules:
|
||||
- name: inköpslista
|
||||
buildsystem: simple
|
||||
sources:
|
||||
# - type: script
|
||||
# dest-filename: gui
|
||||
# commands:
|
||||
# - echo "hello there"
|
||||
- type: file
|
||||
path: ./sh.nubo.Inkopslista.desktop
|
||||
- type: file
|
||||
path: ./inköpslista
|
||||
build-commands:
|
||||
- install -Dm755 inköpslista $FLATPAK_DEST/bin/inköpslista
|
||||
- install -Dm644 sh.nubo.Inkopslista.desktop $FLATPAK_DEST/share/applications/sh.nubo.Inkopslista.desktop
|
||||
|
||||
# Icons (max size is 512x512)
|
||||
# - install -Dm644 usr/share/icons/hicolor/16x16/apps/mullvad-vpn.png /app/share/icons/hicolor/16x16/apps/net.mullvad.MullvadVPN.png
|
||||
# - install -Dm644 usr/share/icons/hicolor/32x32/apps/mullvad-vpn.png /app/share/icons/hicolor/32x32/apps/net.mullvad.MullvadVPN.png
|
||||
# - install -Dm644 usr/share/icons/hicolor/48x48/apps/mullvad-vpn.png /app/share/icons/hicolor/48x48/apps/net.mullvad.MullvadVPN.png
|
||||
# - install -Dm644 usr/share/icons/hicolor/64x64/apps/mullvad-vpn.png /app/share/icons/hicolor/64x64/apps/net.mullvad.MullvadVPN.png
|
||||
# - install -Dm644 usr/share/icons/hicolor/128x128/apps/mullvad-vpn.png /app/share/icons/hicolor/128x128/apps/net.mullvad.MullvadVPN.png
|
||||
# - install -Dm644 usr/share/icons/hicolor/256x256/apps/mullvad-vpn.png /app/share/icons/hicolor/256x256/apps/net.mullvad.MullvadVPN.png
|
||||
# - install -Dm644 usr/share/icons/hicolor/512x512/apps/mullvad-vpn.png /app/share/icons/hicolor/512x512/apps/net.mullvad.MullvadVPN.png
|
||||
|
||||
finish-args:
|
||||
# Wayland access
|
||||
- --socket=wayland
|
||||
# GPU acceleration if needed
|
||||
- --device=dri
|
||||
# Needs to talk to the network:
|
||||
- --share=network
|
||||
# Needs to save files locally
|
||||
- --filesystem=xdg-documents
|
||||
|
||||
Reference in New Issue
Block a user