Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Portable Brave browser #2953

Closed
msiyer opened this issue Aug 4, 2016 · 21 comments
Closed

Portable Brave browser #2953

msiyer opened this issue Aug 4, 2016 · 21 comments

Comments

@msiyer
Copy link

msiyer commented Aug 4, 2016

I had been looking for Firefox and later Chromium binaries so that I could place them on a USB stick\hard drive and move my browser with me (portability). However, I never found them.

I was pleasantly surprised to see brave raw binaries available for Linux.

I would like to suggest the following:

  • Have binaries for all platforms available always - a USB stick\hard drive formatted using NTFS can store both Linux and Windows binaries and help the user achieve greater portability
  • Make the binaries collection\archive\compressed file self-sufficient. That is, either they have no external dependencies or the dependencies are well-documented
  • If possible, make portable brave upgrade itself - Tor browser (based on Firefox) already does this:

result

@bsclifton
Copy link
Member

This would be a great thing to offer users 😄

cc: @bbondy @bradleyrichter - I'm not sure how this prioritizes but would love to talk more (especially w/ regards to Windows)

@msiyer
Copy link
Author

msiyer commented Oct 18, 2016

@bsclifton I would be glad to help in whatever way possible.

@bsclifton
Copy link
Member

@msiyer apologies for not responding sooner- Any effort you wanted to put towards this would be appreciated. To get started, you should be able to get the project building locally and then you can generate the executable and other files by running npm run build-package.

Once you have that working, you can try different approaches at your own packaging. For example: can you simply just take the executable, zip it up, and then use it on another PC? Any findings regarding this would be appreciated 😄 I'm also curious how well the browser would work if launched from a portable drive, like a USB thumb drive (ex: does it save session properly, etc).

Windows may have an issue about the executable not being signed (where it asks if you're sure you want to run it); Solving that may prove more difficult (ex: we may have to sign it on our side; we maintain a cert at Brave Software for this purpose, but it's not public). Any info would be appreciated 😄

@msiyer
Copy link
Author

msiyer commented Nov 20, 2016

@bsclifton I tried building brave on Fedora 24, but had troubles with node.js version etc. Got busy after that. Will start building again on Arch this time. Will let you know my findings.

@msiyer
Copy link
Author

msiyer commented Dec 7, 2016

@bsclifton I compiled brave successfully on Fedora 25. The following is my test report:

Packaging and transport

  1. Created an archive (zip) of the compilation output directory, Brave-linux-x64.zip

  2. Placed the zip in:

    • an internal hard drive formatted ext4
    • a USB flash drive\pen drive formatted NTFS
    • an USB hard drive formatted ext4
  3. Tested on various virtual machines (VM) and physical machines (PM)

Dependencies missing:

Arch Linux (VM and PM):

  • gconf
  • xss
  • nss
  • libgnome-keyring

Fedora 24 (PM):
- none

Fedora 25 (VM):
- none

Fedora Rawhide (VM):
- none

Ubuntu 16.04 (PM):
- none

Saving the session

  • brave worked from all storage devices and was not bothered about the filesystem
  • the session information are stored in /home/{USERNAME}/.config/brave, which is machine specific
  • due to the above fact, the session information are not transported along with the storage media
  • however, the machine remembers session info
  • the session information stored in the machine works irrespective of the device plugged in and its filesystem. That is, a session saved by brave stored on a ext4 formatted USB hard drive works fine with brave launched from an NTFS pen drive and vice versa.

@bsclifton
Copy link
Member

@msiyer this is great info, thanks for capturing it! 😄

The same should be true for Windows, which stores the session information in the roaming profile folder (%APPDATA%)

Would your ideal solution be saving the session locally (and not contaminating the PC that you're logged into)?

@msiyer
Copy link
Author

msiyer commented Dec 15, 2016

@bsclifton yes, the ideal solution will be self-contained in all respects and can update itself.
People can then use this portable system and safeguard their privacy, at least, as far as sessions, history etc. are concerned.

I would be happy to contribute.

@hieudang9
Copy link

hieudang9 commented Dec 22, 2016

@msiyer Thanks for tip in Linux, it would be so great if you have a similar tip for Windows.
Thanks in advance.

@msiyer
Copy link
Author

msiyer commented Dec 23, 2016

@hieudang9 I will try to compile on Windows and test just for the fun of it. However, the findings would be similar.

@bsclifton
Copy link
Member

One issue with portable, at least on Windows (courtesy of @izzylaif), is that we can't set default browser for a portable instance (per #5246)

@crazy-max
Copy link

See issue #8691 if you are interested :)

@bsclifton bsclifton changed the title [Suggestion] Portable brave browser Portable Brave browser May 9, 2017
@bsclifton
Copy link
Member

bsclifton commented May 9, 2017

Per @crazy-max, there is a project called brave-portable

All instructions are available in the README.md of brave-portable repository

@bsclifton
Copy link
Member

Good news: the default browser resetting issue that Windows 10 users experience with portable executables will be fixed with Windows 10 Creators update 1703. The RuntimeBroker process will not wipe out the default settings, which mean if you launch Brave from a memory stick, etc and configure as the default browser, it will be preserved

Thanks to @izzylaif for confirming (using Firefox portable)

@sapioit
Copy link

sapioit commented Jun 1, 2017

Hi!

It seems there's also someone on the PortableApps.com website who is willing to make it trully portable. I tried the project from the brave-portable repo, but it wasn't fully portable. But since Brave is a Chromium-based browser, I figured it would be easier for someone who can make Chrome portable to make Brave portable.

Oh, and you'd get extra exposure, from their site. Well, you could always talk with the person in charge to have the download file on the official website, if you need it for metrics, and on PortableApps.com to have a link to that, so you get an accurate download count, for stats and whatever, but I still think that you can earn more by letting someone else do the extra work instead of you.

@Timovzl
Copy link

Timovzl commented Oct 12, 2017

@bsclifton How have you managed to set Brave Portable as the default browser? For me, no portable browser shows under Web browser => Choose an app!

@sapioit
Copy link

sapioit commented Oct 14, 2017

I haven't even spent any more time on it, and haven't used for more than a few hours.
The browser sounds good, but doesn't work as advertised.

@luixxiul
Copy link
Contributor

Please make sure that the brave-portable repo is unofficial and not managed by the team.

@bsclifton
Copy link
Member

@Timovzl no I haven't been able to do that ☹️

@eljuno
Copy link
Contributor

eljuno commented Dec 28, 2017

@NumDeP
Copy link

NumDeP commented Jul 2, 2018

I agree with @sapioit - this will certainly bring great exposure and will arguably be the best browser they'll (PortableApps) have in their selection of browsers, truly, post v1 of course.
I don't think many users that utilize the portable version of the browsers from PortableApps make the type of modifications and changes as one usually would with a standard desktop browser but seeing as how Brave is quite radically different to most browsers with features such as ad&track blocking and the new Tor functionality given that they're built-in, it would be loved by the community of users. I think it will be seen as a 4-in-1 browser and the better/best choice with one unique feature, being the Tor feature which isn't currently available with greater ease, flexibility and with Brave's portable version, portability.

Not to come of across as rude but I don't think anyone would bother with it right now, as they properly haven't in almost 2 years and I think that was a really good stance to maintain as least coherently because it would wasted a lot of time and would be much better to have this post v1 so other new users aren't annoyed by Moun/Electron issues and so they can fully appreciate Brave working its best in the full Chromium environment efficiently.

I wish @bsclifton that you'd leave this open and stick a post v1 label on it and consider corresponding with John T. Haller later on so it can be be advertised and properly built in PortableApps there after.

Thanks

@bsclifton
Copy link
Member

Closing in favor of brave/brave-browser#694

@bsclifton bsclifton added wontfix post-v1 We don't expect to be able to resolve this before releasing v1.0 with Brave Core (instead of Muon). labels Aug 6, 2018
@bsclifton bsclifton removed this from the Triage Backlog milestone Aug 6, 2018
@bsclifton bsclifton added open-in-brave-core and removed post-v1 We don't expect to be able to resolve this before releasing v1.0 with Brave Core (instead of Muon). labels Aug 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

10 participants