Browse Source

Merge pull request #434 from provokateurin/fix/flatpak

Fix/flatpak
pull/440/head
Kate 1 year ago committed by GitHub
parent
commit
626b333594
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      packages/app/de.provokateurin.neon.desktop
  2. 38
      packages/app/de.provokateurin.neon.yaml

6
packages/app/de.provokateurin.neon.desktop

@ -0,0 +1,6 @@
[Desktop Entry]
Type=Application
Name=Nextcloud Neon
Icon=de.provokateurin.neon
Exec=nextcloud-neon %U
Keywords=Nextcloud;Neon

38
packages/app/de.provokateurin.neon.yaml

@ -9,8 +9,26 @@ finish-args:
- --socket=wayland - --socket=wayland
- --share=network - --share=network
- --device=dri - --device=dri
- --env=LD_LIBRARY_PATH=/app/lib/:/app/nextcloud-neon/lib/
modules: modules:
- ../../external/flathub-shared-modules/libappindicator/libappindicator-gtk3-12.10.json - ../../external/flathub-shared-modules/libappindicator/libappindicator-gtk3-12.10.json
- name: aarch64-quirks
only-arches: [aarch64]
buildsystem: simple
build-commands:
- mkdir -p /app/nextcloud-neon/lib
- ln -s /usr/lib/aarch64-linux-gnu/libsqlite3.so.0 /app/nextcloud-neon/lib/libsqlite3.so
- ln -s /app/lib/libappindicator3.so /app/lib/libayatana-appindicator3.so.1
- ln -s /app/lib/libappindicator3.so /app/lib/libayatana-appindicator3.so.7
- ln -s /app/lib/libindicator3.so /app/lib/libayatana-indicator3.so.7
- ln -s /app/lib/libindicator3.so /app/lib/libayatana-ido3-0.4.so.0
- mkdir -p /app/bin
- name: x86_64-quirks
only-arches: [x86_64]
buildsystem: simple
build-commands:
- mkdir -p /app/nextcloud-neon/lib
- ln -s /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 /app/nextcloud-neon/lib/libsqlite3.so
- name: nextcloud-neon - name: nextcloud-neon
buildsystem: simple buildsystem: simple
build-commands: build-commands:
@ -18,13 +36,29 @@ modules:
- cp nextcloud-neon /app/nextcloud-neon/ - cp nextcloud-neon /app/nextcloud-neon/
- cp *.so /app/nextcloud-neon/lib/ - cp *.so /app/nextcloud-neon/lib/
- cp -r flutter_assets icudtl.dat /app/nextcloud-neon/data/ - cp -r flutter_assets icudtl.dat /app/nextcloud-neon/data/
- ln -s /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 /app/lib/libsqlite3.so
- if [ ! -e '/app/lib/libsqlite3.so' ]; then ln -s -f /usr/lib/aarch64-linux-gnu/libsqlite3.so.0 /app/lib/libsqlite3.so; fi
- ln -sf /app/nextcloud-neon/nextcloud-neon /app/bin/nextcloud-neon - ln -sf /app/nextcloud-neon/nextcloud-neon /app/bin/nextcloud-neon
- install -Dm644 de.provokateurin.neon.desktop /app/share/applications/de.provokateurin.neon.desktop
- install -Dm644 logo.svg /app/share/icons/hicolor/scalable/apps/de.provokateurin.neon.svg
sources: sources:
- type: file - type: file
path: de.provokateurin.neon.desktop
- type: file
path: assets/logo.svg
- type: file
only-arches: [x86_64]
path: build/linux/x64/release/bundle/nextcloud-neon path: build/linux/x64/release/bundle/nextcloud-neon
- type: dir - type: dir
only-arches: [x86_64]
path: build/linux/x64/release/bundle/lib/ path: build/linux/x64/release/bundle/lib/
- type: dir - type: dir
only-arches: [x86_64]
path: build/linux/x64/release/bundle/data/ path: build/linux/x64/release/bundle/data/
- type: file
only-arches: [aarch64]
path: build/linux/arm64/release/bundle/nextcloud-neon
- type: dir
only-arches: [aarch64]
path: build/linux/arm64/release/bundle/lib/
- type: dir
only-arches: [aarch64]
path: build/linux/arm64/release/bundle/data/

Loading…
Cancel
Save