app-id: sh.popcorntime.PopcornTime runtime: org.freedesktop.Platform runtime-version: '18.08' branch: stable sdk: org.freedesktop.Sdk base: io.atom.electron.BaseApp base-version: '18.08' command: popcorntime-wrapper separate-locales: false finish-args: - --share=ipc - --share=network - --socket=x11 - --socket=pulseaudio - --filesystem=home:ro - --talk-name=org.freedesktop.Notifications modules: - name: popcorntime buildsystem: simple cleanup: - Popcorn-Time-0.3.10_linux64.tar.xz sources: - type: file only-arches: - x86_64 url: https://ci.popcorntime.sh/job/Popcorn-Time-Desktop/332/artifact/build/Popcorn-Time-0.3.10_linux64.tar.xz sha256: f852f8824365d9767a7bd84eb05c15a1d161ad07c1e6a920aa69feee36734e33 - type: script dest-filename: popcorntime-wrapper commands: - exec /app/popcorntime/Popcorn-Time build-commands: - install -d /app/popcorntime - tar -xvf Popcorn-Time-0.3.10_linux64.tar.xz -C /app/popcorntime - 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 -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