-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnet.kurowski.potasko.yml
More file actions
51 lines (48 loc) · 1.8 KB
/
Copy pathnet.kurowski.potasko.yml
File metadata and controls
51 lines (48 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
app-id: net.kurowski.potasko
runtime: org.gnome.Platform
runtime-version: '48'
sdk: org.gnome.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.rust-stable
- org.freedesktop.Sdk.Extension.node22
command: potasko-gui
finish-args:
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --share=network
- --device=dri
# WebKitGTK needs these for proper rendering
- --filesystem=xdg-run/dconf
- --filesystem=~/.config/dconf:ro
- --talk-name=ca.desrt.dconf
- --env=DCONF_USER_CONFIG_DIR=.config/dconf
# App data directory
- --filesystem=xdg-data/net.kurowski.potasko:create
build-options:
append-path: /usr/lib/sdk/rust-stable/bin:/usr/lib/sdk/node22/bin
env:
CARGO_HOME: /run/build/potasko/cargo
npm_config_nodedir: /usr/lib/sdk/node22
modules:
- name: potasko
buildsystem: simple
build-options:
build-args:
- --share=network
build-commands:
# Install dependencies (using npx to run pnpm without global install)
- npx pnpm install --frozen-lockfile
# Build with Tauri CLI (handles frontend + Rust build together)
- npx pnpm tauri build --ci
# Install binary
- install -Dm755 src-tauri/target/release/potasko-gui ${FLATPAK_DEST}/bin/potasko-gui
# Install icons
- install -Dm644 src-tauri/icons/128x128.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/net.kurowski.potasko.png
- install -Dm644 src-tauri/icons/32x32.png ${FLATPAK_DEST}/share/icons/hicolor/32x32/apps/net.kurowski.potasko.png
# Install desktop file and metadata
- install -Dm644 net.kurowski.potasko.desktop ${FLATPAK_DEST}/share/applications/net.kurowski.potasko.desktop
- install -Dm644 net.kurowski.potasko.metainfo.xml ${FLATPAK_DEST}/share/metainfo/net.kurowski.potasko.metainfo.xml
sources:
- type: dir
path: .