Repository navigation
Expand file tree
/
Copy pathcom.simplefile.SimpleFile.yml
More file actions
62 lines (56 loc) · 1.76 KB
/
Copy pathcom.simplefile.SimpleFile.yml
File metadata and controls
62 lines (56 loc) · 1.76 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
52
53
54
55
56
57
58
59
60
61
62
app-id: com.simplefile.SimpleFile
runtime: org.gnome.Platform
runtime-version: "49"
sdk: org.gnome.Sdk
command: simplefile
finish-args:
# GUI sockets
- --socket=wayland
- --socket=fallback-x11
- --share=ipc
- --device=dri
# Full filesystem access for a file manager
- --filesystem=host
# Network access for webviews and update checks
- --share=network
# D-Bus access for Udisks2 (USB hotplugging)
- --talk-name=org.freedesktop.UDisks2
sdk-extensions:
- org.freedesktop.Sdk.Extension.node24
- org.freedesktop.Sdk.Extension.rust-stable
build-options:
append-path: /usr/lib/sdk/node24/bin:/usr/lib/sdk/rust-stable/bin
build-args:
- --share=network
env:
CARGO_HOME: /run/build/simplefile/cargo
NPM_CONFIG_CACHE: /run/build/simplefile/npm
modules:
- name: simplefile
buildsystem: simple
build-commands:
# Build frontend
- cd frontend && npm ci
- cd frontend && npm run build:app
# Build Tauri backend
- cd src-tauri && cargo build --release
# Install binary
- install -D src-tauri/target/release/simplefile /app/bin/simplefile
# Install icons
- install -D src-tauri/icons/128x128.png /app/share/icons/hicolor/128x128/apps/com.simplefile.SimpleFile.png
- install -D src-tauri/icons/32x32.png /app/share/icons/hicolor/32x32/apps/com.simplefile.SimpleFile.png
- mkdir -p /app/share/applications/
- |
cat <<EOF > /app/share/applications/com.simplefile.SimpleFile.desktop
[Desktop Entry]
Name=SimpleFile
Exec=simplefile %U
Icon=com.simplefile.SimpleFile
Type=Application
Categories=Utility;FileManager;
MimeType=inode/directory;
Terminal=false
EOF
sources:
- type: dir
path: .