webtorrent-desktop icon indicating copy to clipboard operation
webtorrent-desktop copied to clipboard

Working Snap Package ready

Open soumyaDghosh opened this issue 1 year ago • 6 comments

Hello, I have made a snap package for your desktop app. Would you like to have it as official package?

soumyaDghosh avatar Sep 29 '23 04:09 soumyaDghosh

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

github-actions[bot] avatar Nov 28 '23 12:11 github-actions[bot]

Hii, upstream any updates?

soumyaDghosh avatar Nov 29 '23 20:11 soumyaDghosh

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

github-actions[bot] avatar Jan 30 '24 12:01 github-actions[bot]

Yes, there has been no update yet. Upstream kindly give some update on this

soumyaDghosh avatar Jan 30 '24 12:01 soumyaDghosh

Hey what changes have you done ?

tomihbk avatar Feb 05 '24 22:02 tomihbk

I have created the snap package and this is the manifest for it.

name: webtorrent-desktop
base: core22 
version: '0.24.0'
summary: WebTorrent is a streaming torrent client for the web browser and the desktop.
description: |
  WebTorrent is written completely in JavaScript – the language of the web – and uses WebRTC for peer-to-peer transport whenever possible. No browser plugins, extensions  , or installation is required to use WebTorrent in your browser.

grade: stable
confinement: strict
contact: [email protected]
license: MIT
website: https://webtorrent.io/desktop
issue: https://github.com/soumyaDghosh/webtorrent-desktop-snap/issues
source-code: https://github.com/webtorrent/webtorrent-desktop

architectures: [ amd64, arm64 ]

parts:
  launcher:
    source: launcher
    plugin: dump
    override-build: |
      cp launcher $CRAFT_PART_INSTALL/usr/bin
  webtorrent-desktop:
    plugin: dump
    source: https://github.com/webtorrent/webtorrent-desktop/releases/download/v$SNAPCRAFT_PROJECT_VERSION/webtorrent-desktop_$SNAPCRAFT_PROJECT_VERSION_$CRAFT_TARGET_ARCH.deb 
    override-build: |
      craftctl default
      rm $CRAFT_PART_INSTALL/usr/lib/webtorrent-desktop/chrome-sandbox $CRAFT_PART_INSTALL/usr/share/doc
      sed -i 's|webtorrent-desktop|usr/share/icons/hicolor/256x256/apps/webtorrent-desktop.png|' $CRAFT_PART_INSTALL/usr/share/applications/webtorrent-desktop.desktop


plugs:
  shmem:
    interface: shared-memory
    private: true

apps:
  webcord:
    command: launcher
    desktop: usr/share/applications/webtorrent-desktop.desktop
    autostart: webtorrent-desktop.desktop
    environment:
      TMPDIR: $XDG_RUNTIME_DIR
      GTK_USE_PORTAL: 1
    extensions: [ gnome ]
    plugs:
      - audio-playback
      - network
      - shmem
      - unity7

soumyaDghosh avatar Feb 06 '24 05:02 soumyaDghosh

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

github-actions[bot] avatar Apr 06 '24 12:04 github-actions[bot]