-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathorg.nuicpp.nui_sftp.yml
More file actions
134 lines (126 loc) · 4.6 KB
/
Copy pathorg.nuicpp.nui_sftp.yml
File metadata and controls
134 lines (126 loc) · 4.6 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
id: org.nuicpp.nui_sftp
runtime: org.gnome.Platform
runtime-version: '50'
sdk: org.gnome.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.llvm21
- org.freedesktop.Sdk.Extension.node24
command: nui-sftp
finish-args:
- --share=network
- --share=ipc
- --filesystem=host
- --socket=wayland
- --socket=fallback-x11
- --socket=ssh-auth
- --device=dri
cleanup:
- /include
- /lib/cmake
- /lib/pkgconfig
modules:
- name: boost
buildsystem: simple
build-commands:
- ./bootstrap.sh --prefix=/app
- ./b2 --with-program_options --with-filesystem --with-system --with-serialization --with-thread --with-mpi --with-iostreams --with-asio --with-process install
sources:
- type: archive
url: https://archives.boost.io/release/1.90.0/source/boost_1_90_0.tar.gz
sha256: 5e93d582aff26868d581a52ae78c7d8edf3f3064742c6e77901a1f18a437eea9
- name: libssh
buildsystem: cmake-ninja
builddir: true
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- -DWITH_EXAMPLES=OFF
sources:
- type: git
url: https://git.libssh.org/projects/libssh.git/
tag: libssh-0.11.4
commit: ca9c055d7c78ce357346ac7c2b14047568d47aa1
- name: interval-tree
buildsystem: simple
build-commands:
- mkdir -p /app/include
- cp -r include/interval-tree /app/include/interval-tree
sources:
- type: git
url: https://github.com/5cript/interval-tree.git
tag: v3.1.1
commit: dab26b24cd1b163b5640cf6dd9d52968b3532869
- name: nlohmann-json
buildsystem: cmake-ninja
sources:
- type: git
url: https://github.com/nlohmann/json.git
tag: v3.12.0
commit: 55f93686c01528224f448c19128836e7df245f72
- name: nui-sftp-frontend
buildsystem: simple
build-commands:
- mkdir -p /app/frontend
- cp -r * /app/frontend
sources:
- type: archive
url: https://github.com/5cript/nui-sftp/releases/download/v1.3.1/nui-sftp-linux-frontend_1.3.1.tar.gz
sha256: a8ac5edaac2a1b4ce21d48c90f0c3502572b5f3ec1ed225aa42f5c97c10d1caf
- name: nui-sftp
buildsystem: cmake-ninja
builddir: true
no-make-install: true
build-options:
env:
CC: clang
CXX: clang++
LD: lld
INSTALL_TARGET: /app
Boost_ROOT: /app
append-path: "/usr/lib/sdk/llvm21/bin:/usr/lib/sdk/node24/bin"
prepend-ld-library-path: "/usr/lib/sdk/llvm21/lib"
config-opts:
- -DCMAKE_BUILD_TYPE=Release
- -DCMAKE_C_COMPILER=clang
- -DCMAKE_CXX_COMPILER=clang++
- -DCMAKE_LINKER=lld
- -DCMAKE_CXX_EXTENSIONS=ON
- -DCMAKE_CXX_STANDARD=23
- -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
- -DOFFLINE_BUILD=ON
- -DJSON_Diagnostics=ON
- -DFORCED_PROJECT_VERSION=1.1.0
post-install:
- OMIT_FRONTEND=true BUILD_DIRECTORY="$(pwd)" ../scripts/deploy.sh
# Copy icons to assets/icons dir
- mkdir -p /app/assets/icons
- cp -r ../dependencies/icons/* /app/assets/icons/
- cp ../dependencies/icons/os_folders/windows/11/folder_main.png /app/assets/icons/folder_main.png
# Rename the desktop Icon= entry to the reverse-DNS app id used by Flatpak.
# Upstream ships "Icon=nui_sftp" because the icon filename differs across
# packaging formats.
- desktop-file-edit --set-icon=org.nuicpp.nui_sftp ../org.nuicpp.nui_sftp.desktop
# Install AppStream metadata
- install -Dm644 ../deploy-meta/org.nuicpp.nui_sftp.metainfo.xml /app/share/metainfo/org.nuicpp.nui_sftp.metainfo.xml
# Install desktop file
- install -Dm644 ../org.nuicpp.nui_sftp.desktop /app/share/applications/org.nuicpp.nui_sftp.desktop
# Image
- install -Dm644 ../NUI-SFTP_Logo-01_nopad.svg /app/share/icons/hicolor/scalable/apps/org.nuicpp.nui_sftp.svg
sources:
- type: git
url: https://github.com/5cript/nui-sftp
tag: v1.3.1
commit: 3f9419a53aa612dc97abef755ede0308fba5e64a
- type: archive
url: https://s3.g.s4.mega.io/jgemkib4a5fte35rktt5wxrwkw4ejk4ybemkf/nui-scp/icons.tar.gz
sha256: 30ffa48c3a509e878db31a1e5d80376242852e34d9c2aa3b44d2e3d1da2ce32e
dest: 'dependencies/icons'
strip-components: 0
- type: git
url: https://github.com/5cript/nui-sftp-deploy
tag: flatpak/1.1.0_1
commit: 8ff88536f0342261ee3bbab55d147ad4cfff80bd
disable-submodules: true
dest: deploy-meta
- type: file
url: https://s3.g.s4.mega.io/jgemkib4a5fte35rktt5wxrwkw4ejk4ybemkf/nui-scp/images/NUI-SFTP_Logo-01_nopad.svg
sha256: cf0fc442069dfd28bd8b7769da6dfdca92111044ea9817197716ed9bfada3869