-
Notifications
You must be signed in to change notification settings - Fork 4
/
org.cryptomator.Cryptomator.yaml
100 lines (100 loc) · 4.13 KB
/
org.cryptomator.Cryptomator.yaml
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
app-id: org.cryptomator.Cryptomator
command: cryptomator
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
sdk-extensions:
- org.freedesktop.Sdk.Extension.openjdk17
separate-locales: false
finish-args:
- --device=dri
- --env=PATH=/app/bin/:/app/jre/bin/:/usr/bin/
- --filesystem=home
- --filesystem=xdg-run/org.keepassxc.KeePassXC.BrowserServer
- --share=ipc
- --share=network
- --socket=x11
- --talk-name=org.freedesktop.Flatpak
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.freedesktop.secrets
- --talk-name=org.gnome.keyring
- --talk-name=org.kde.kwalletd5
- --talk-name=org.gtk.vfs.*
cleanup:
- /include
- /lib/pkgconfig
modules:
- name: libfuse
config-opts:
- MOUNT_FUSE_PATH=/app/bin
post-install:
- install fusermount-wrapper.sh /app/bin/fusermount
sources:
- type: archive
url: https://github.com/libfuse/libfuse/releases/download/fuse-2.9.9/fuse-2.9.9.tar.gz
sha256: d0e69d5d608cc22ff4843791ad097f554dd32540ddc9bed7638cc6fea7c1b4b5
- type: file
path: build-aux/fusermount-wrapper.sh
- name: openjdk
buildsystem: simple
build-commands:
- /usr/lib/sdk/openjdk17/install.sh
- name: cryptomator
buildsystem: simple
build-options:
env:
PATH: /app/bin:/usr/bin:/usr/lib/sdk/openjdk17/bin
MAVEN_OPTS: -Dmaven.repo.local=.m2/repository
JAVA_HOME: /usr/lib/sdk/openjdk17/jvm/openjdk-17
VERSION: 1.6.15
REVISION_NO: '1'
build-commands:
- mvn clean package -DskipTests -Plinux
- cp dist/linux/launcher* target
- cp target/cryptomator-*.jar target/mods
- cd target
- jlink
--output runtime
--module-path "${JAVA_HOME}/jmods"
--add-modules java.base,java.desktop,java.logging,java.naming,java.net.http,java.scripting,java.sql,java.xml,jdk.unsupported,jdk.crypto.ec,jdk.accessibility
--no-header-files
--no-man-pages
--strip-debug
--compress=1
- jpackage
--type app-image
--runtime-image runtime
--input target/libs
--module-path target/mods
--module org.cryptomator.desktop/org.cryptomator.launcher.Cryptomator
--dest .
--name Cryptomator
--vendor 'Skymatic GmbH'
--copyright '(C) 2016 - 2022 Skymatic GmbH'
--java-options '-Xss5m'
--java-options '-Xmx256m'
--java-options '-Dfile.encoding='utf-8''
--java-options '-Dcryptomator.logDir='~/.local/share/Cryptomator/logs''
--java-options '-Dcryptomator.settingsPath='~/.config/Cryptomator/settings.json:~/.Cryptomator/settings.json''
--java-options '-Dcryptomator.p12Path='~/.config/Cryptomator/key.p12''
--java-options '-Dcryptomator.ipcSocketPath='~/.config/Cryptomator/ipc.socket''
--java-options '-Dcryptomator.mountPointsDir='~/.local/share/Cryptomator/mnt''
--java-options '-Dcryptomator.pluginDir='~/.local/share/Cryptomator/plugins''
--java-options '-Dcryptomator.showTrayIcon=false'
--java-options "-Dcryptomator.buildNumber='flatpak-${REVISION_NO}'"
--java-options "-Dcryptomator.appVersion='${VERSION}'"
--app-version "${VERSION}.${REVISION_NO}"
--verbose
- cp -R Cryptomator /app/
- ln -s /app/Cryptomator/bin/Cryptomator /app/bin/cryptomator
- install -D -m0644 -t /app/share/applications/ dist/linux/common/org.cryptomator.Cryptomator.desktop
- install -D -m0644 -t /app/share/icons/hicolor/scalable/apps/ dist/linux/common/org.cryptomator.Cryptomator.svg
- install -D -m0644 -t /app/share/metainfo/ org.cryptomator.Cryptomator.metainfo.xml
sources:
- maven-dependencies.yaml
- type: archive
sha256: e4c75f3fc3c60178e5f44a3f5a6199bdcc8edcb45cb09d6d4fb0efbed27170a7
url: https://github.com/cryptomator/cryptomator/archive/refs/tags/1.6.15.tar.gz
- type: file
sha256: e03d10203356963eed62ab6e78515a6eba920c3d23f630813832eb7ffbe9bf03
url: https://raw.githubusercontent.com/cryptomator/cryptomator/26ecd67a791463a7a45491f48ed184af5b7979a5/dist/linux/common/org.cryptomator.Cryptomator.metainfo.xml