[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-bugs] #25578 [Applications/Tor Browser]: Package and distribute Tor Browser using Flatpak



#25578: Package and distribute Tor Browser using Flatpak
--------------------------------------+--------------------------
 Reporter:  mjog                      |          Owner:  tbb-team
     Type:  enhancement               |         Status:  new
 Priority:  Medium                    |      Milestone:
Component:  Applications/Tor Browser  |        Version:
 Severity:  Normal                    |     Resolution:
 Keywords:                            |  Actual Points:
Parent ID:                            |         Points:
 Reviewer:                            |        Sponsor:
--------------------------------------+--------------------------

Comment (by muelli):

 The following manifest seems to work for me:

 {{{
 app-id: org.torproject.browser

 runtime: org.gnome.Platform
 runtime-version: "3.32"
 sdk: org.gnome.Sdk

 command: launch.sh

 finish-args:
   - --socket=x11
   # - --share=ipc
   - --share=network

 modules:
   - name: torbrowser
     buildsystem: simple
     build-commands:
         - install -D Browser/browser/chrome/icons/default/default64.png
 /app/share/icons/hicolor/64x64/apps/org.torproject.browser.png
         #- install -D Browser/start-tor-browser.desktop
 /app/share/applications/org.torproject.browser.desktop
         - sed -i s,Icon=torbrowser,Icon=org.torproject.browser,
 torbrowser.desktop
         - sed -i "s,Exec=torbrowser-launcher %u,Exec=/app/bin/launch.sh,"
 torbrowser.desktop
         - install -D torbrowser.appdata.xml
 /app/share/metainfo/org.torproject.browser.appdata.xml
         - install -D torbrowser.desktop
 /app/share/applications/org.torproject.browser.desktop
         - mv Browser /app
         - install -D -m a=rx launch.sh   /app/bin/launch.sh

     cleanup:
       - /Browser/TorBrowser/Docs/
     sources:
         - type: file
           url: https://raw.githubusercontent.com/micahflee/torbrowser-
 launcher/develop/share/metainfo/torbrowser.appdata.xml
           sha256:
 4aa47248ce6ea3b54fe349bfa03169dc72cceb2f206d517cbf37eeab929d68d0

         - type: file
           url: https://raw.githubusercontent.com/micahflee/torbrowser-
 launcher/develop/share/applications/torbrowser.desktop
           sha256:
 edc4a08adcfb78468a34bd46ef8f0de0ef5fdb141bd438709e755dc8b2a3eee6

         - type: script
           commands:
             # Yes. This is dirty. The tarball contains a Firefox profile
 directory which Firefox expects to be able to write...
             # The tmp directory is, at least when following this manifest
 and not overwriting the settings, a tmpfs, so we can (or have to) copy
 over everytime we launch.
             - cp -ar --reflink=auto /app/Browser /tmp/
             - cd /tmp/
             - cd Browser
             - ./start-tor-browser
           dest-filename: launch.sh

         - type: archive
           url: https://www.torproject.org/dist/torbrowser/8.5.3/tor-
 browser-linux64-8.5.3_en-US.tar.xz
           sha256:
 4f2011f83f014abddc1a23ead058efd7b8ec75bfdd23040573b4c6c3be02b496
 }}}

 I build with `flatpak-builder --user --install --ccache --keep-build-dirs
 --force-clean -v  --repo=/var/tmp/fb.repo fpbuilder
 org.torproject.browser.yml`.
 I'd love to build from source, but I haven't had much success with that in
 the past.



 is anyone from upstream interested in co-maintaining the package on
 Flathub if it gets accepted?

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/25578#comment:8>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs