{
 "app_id": "io.github.odomu.aliyunpan",
 "source_url": "https://raw.githubusercontent.com/CAB233/zuoye-flatpak/stable/manifests/io.github.odomu.aliyunpan/io.github.odomu.aliyunpan.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=xdg-download",
  "--filesystem=xdg-run/pipewire-0",
  "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons",
  "--system-talk-name=org.freedesktop.login1",
  "--talk-name=org.freedesktop.Notifications",
  "--talk-name=org.kde.StatusNotifierWatcher"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-20T13:06:14.898833+00:00",
 "manifest": {
  "app-id": "io.github.odomu.aliyunpan",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "command": "alixby",
  "separate-locales": false,
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=pulseaudio",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=dri",
   "--filesystem=xdg-download",
   "--filesystem=xdg-run/pipewire-0",
   "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons",
   "--system-talk-name=org.freedesktop.login1",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.kde.StatusNotifierWatcher"
  ],
  "cleanup": [
   "*.a",
   "*.la",
   "/include",
   "/lib/cmake",
   "/lib/debug",
   "/lib/pkgconfig",
   "/man",
   "/share/man",
   "/share/doc",
   "/share/gtk-doc"
  ],
  "modules": [
   {
    "name": "aliyunpan",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dvm644 ${FLATPAK_ID}.png -t ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps",
     "install -Dvm644 ${FLATPAK_ID}.desktop -t ${FLATPAK_DEST}/share/applications",
     "install -Dvm644 ${FLATPAK_ID}.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo",
     "install -Dvm755 apply_extra -t ${FLATPAK_DEST}/bin",
     "install -Dvm755 alixby.sh /app/bin/alixby"
    ],
    "sources": [
     {
      "type": "extra-data",
      "filename": "aliyunpan.xz",
      "only-arches": [
       "x86_64"
      ],
      "url": "https://repo.zuoye.win/archive/aliyunpan-odomu-bin/alixby-3.24.41217-linux-x64.pacman",
      "sha256": "552bd1f0562868afb144718dce7a58ecb49fbe049c7569b129d0f03764bfa02e",
      "size": 70270712
     },
     {
      "type": "extra-data",
      "filename": "app.asar",
      "url": "https://repo.zuoye.win/archive/aliyunpan-odomu-bin/app.asar",
      "sha256": "9a3115a6a892b7a7d9c87713cfa6a0b0d15d279a3d906a7dc2cbb5ac2764a81d",
      "size": 9182508
     },
     {
      "type": "script",
      "dest-filename": "apply_extra",
      "commands": [
       "bsdtar -xf aliyunpan.xz",
       "cp -r opt/\u963f\u91cc\u4e91\u76d8\u5c0f\u767d\u7f8a alixby",
       "mv app.asar alixby/resources/app.asar",
       "rm -r aliyunpan.xz opt/ usr/"
      ]
     },
     {
      "type": "script",
      "dest-filename": "alixby.sh",
      "commands": [
       "export TMPDIR=\"$XDG_RUNTIME_DIR/app/$FLATPAK_ID\"",
       "zypak-wrapper /app/extra/alixby/alixby \\\n  --enable-features=UseOzonePlatform \\\n  --ozone-platform-hint=auto \\\n  \"$@\"\n"
      ]
     },
     {
      "type": "file",
      "path": "io.github.odomu.aliyunpan.png"
     },
     {
      "type": "file",
      "path": "io.github.odomu.aliyunpan.desktop"
     },
     {
      "type": "file",
      "path": "io.github.odomu.aliyunpan.metainfo.xml"
     }
    ]
   }
  ]
 }
}