2022-12-15 12:53:34 +01:00
|
|
|
app-id: sh.popcorntime.PopcornTime
|
|
|
|
runtime: org.freedesktop.Platform
|
|
|
|
runtime-version: '21.08'
|
|
|
|
sdk: org.freedesktop.Sdk
|
|
|
|
base: org.electronjs.Electron2.BaseApp
|
|
|
|
base-version: '21.08'
|
|
|
|
command: popcorntime-wrapper
|
|
|
|
separate-locales: false
|
|
|
|
finish-args:
|
|
|
|
- --share=ipc
|
|
|
|
- --share=network
|
|
|
|
- --socket=x11
|
|
|
|
- --socket=pulseaudio
|
|
|
|
- --filesystem=host
|
|
|
|
- --talk-name=org.freedesktop.Notifications
|
|
|
|
modules:
|
|
|
|
- name: popcorntime
|
|
|
|
buildsystem: simple
|
|
|
|
cleanup:
|
2024-02-10 20:13:24 +01:00
|
|
|
- Popcorn-Time-0.5.0-linux64.zip
|
2022-12-15 12:53:34 +01:00
|
|
|
sources:
|
|
|
|
- type: file
|
|
|
|
only-arches:
|
|
|
|
- x86_64
|
2024-02-10 20:13:24 +01:00
|
|
|
url: https://github.com/popcorn-official/popcorn-desktop/releases/download/v0.5.0/Popcorn-Time-0.5.0-linux64.zip
|
|
|
|
sha256: 0391bae8a90243502238e3b4d9d645015cfa76abc2a26adde655d0e167354b4b
|
2022-12-15 12:53:34 +01:00
|
|
|
- type: file
|
|
|
|
path: sh.popcorntime.PopcornTime.metainfo.xml
|
|
|
|
- type: script
|
|
|
|
dest-filename: popcorntime-wrapper
|
|
|
|
commands:
|
|
|
|
- exec /app/popcorntime/Popcorn-Time
|
|
|
|
build-commands:
|
|
|
|
- install -d /app/popcorntime
|
2024-02-10 20:13:24 +01:00
|
|
|
- unzip Popcorn-Time-0.5.0-linux64.zip -d /app/popcorntime
|
2022-12-15 12:53:34 +01:00
|
|
|
- install popcorntime-wrapper /app/bin/
|
|
|
|
- install -d /app/share/icons/hicolor/256x256/apps/
|
|
|
|
- install /app/popcorntime/src/app/images/icon.png /app/share/icons/hicolor/256x256/apps/sh.popcorntime.PopcornTime.png
|
|
|
|
- install -d /app/share/applications
|
|
|
|
- touch sh.popcorntime.PopcornTime.desktop
|
|
|
|
- install -Dp -m644 sh.popcorntime.PopcornTime.metainfo.xml /app/share/metainfo/sh.popcorntime.PopcornTime.metainfo.xml
|
|
|
|
- install -m644 sh.popcorntime.PopcornTime.desktop /app/share/applications/sh.popcorntime.PopcornTime.desktop
|
|
|
|
- desktop-file-edit --set-key=Exec --set-value='popcorntime-wrapper %U' --set-key=Icon --set-value='sh.popcorntime.PopcornTime' --set-key=Comment --set-value='Watch Movies and TV Shows instantly' --set-key=Name --set-value='Popcorn-Time' --set-key=MimeType --set-value='application/x-bittorrent;x-scheme-handler/magnet;' --set-key=StartupNotify --set-value='false' --set-key=Categories --set-value='AudioVideo;Video;Player;' --set-key=Type --set-value='Application' /app/share/applications/sh.popcorntime.PopcornTime.desktop
|