Browse Source

app: Build flatpaks

pull/261/head
jld3103 2 years ago
parent
commit
7eb95889c6
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 3
      .gitmodules
  2. 1
      external/flathub-shared-modules
  3. 2
      packages/app/.gitignore
  4. 30
      packages/app/de.provokateurin.neon.yaml

3
.gitmodules vendored

@ -16,3 +16,6 @@
[submodule "external/nextcloud-uppush"] [submodule "external/nextcloud-uppush"]
path = external/nextcloud-uppush path = external/nextcloud-uppush
url = https://github.com/UP-NextPush/server-app.git url = https://github.com/UP-NextPush/server-app.git
[submodule "external/flathub-shared-modules"]
path = external/flathub-shared-modules
url = https://github.com/flathub/shared-modules.git

1
external/flathub-shared-modules vendored

@ -0,0 +1 @@
Subproject commit a2441b964afefd8cd1cebcdf562c7878670daf42

2
packages/app/.gitignore vendored

@ -44,3 +44,5 @@ app.*.map.json
/android/app/debug /android/app/debug
/android/app/profile /android/app/profile
/android/app/release /android/app/release
.flatpak-builder/

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

@ -0,0 +1,30 @@
app-id: de.provokateurin.neon
runtime: org.freedesktop.Platform
runtime-version: '22.08'
sdk: org.freedesktop.Sdk
command: nextcloud-neon
finish-args:
- --share=ipc
- --socket=fallback-x11
- --socket=wayland
- --share=network
- --device=dri
modules:
- ../../external/flathub-shared-modules/libappindicator/libappindicator-gtk3-12.10.json
- name: nextcloud-neon
buildsystem: simple
build-commands:
- mkdir -p /app/nextcloud-neon/{data,lib}
- cp nextcloud-neon /app/nextcloud-neon/
- cp *.so /app/nextcloud-neon/lib/
- 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
sources:
- type: file
path: build/linux/x64/release/bundle/nextcloud-neon
- type: dir
path: build/linux/x64/release/bundle/lib/
- type: dir
path: build/linux/x64/release/bundle/data/
Loading…
Cancel
Save