portapps / brave-portable

🚀 Brave web browser portable for Windows
https://portapps.io/app/brave-portable/
MIT License
311 stars 37 forks source link

I created a little batch script to update Brave Portable! #153

Open MagicalDrizzle opened 7 months ago

MagicalDrizzle commented 7 months ago

Script: https://github.com/MagicalDrizzle/batch-collection/blob/main/getbrave.cmd
Instructions: https://github.com/MagicalDrizzle/batch-collection/blob/main/README.getbrave.md
The script in action:

Select channel:
[1] Release
[2] Beta (default)
[3] Nightly
> 2

> Local: 1.63.126, Upstream: 1.63.126
> Up-to-date!

Press any key to continue . . .
Select channel:
[1] Release
[2] Beta (default)
[3] Nightly
> 1

> Local: 1.61.109, Upstream: 1.61.120
> New version available!
> Update? [Y,N]?
Select channel:
[1] Release
[2] Beta (default)
[3] Nightly
> 1

> Local: 1.63.126, Upstream: 1.61.120
> Warning: You may have chosen an update channel more downstream than your local version.
> For example, if you have Nightly version but you chose Beta/Release.
> Only proceed if you are switching your update channel.
> Do you wish to update anyway? [Y,N]?
ednykissyou commented 7 months ago

I won't use it, I'll save it as update.bat After running, I selected 2. If you press enter again, it will exit. It seems like nothing has been updated. I don't know if it's an update to "brake portable. exe" or an update to "brake portable \ app \ Brave. exe"

I hope to solve my confusion next time: "Brave portable. exe" generated a data folder, but it started slowly. Windows 11 still opens "brave portable \ app \ Brave. exe" by default, and Brave. exe is faster. I really wish I could use "Brave. exe", but it won't generate a Data folder. What should I do?

Thank you~

MagicalDrizzle commented 7 months ago

If you want to use brave.exe,

start "" brave.exe --user-data-dir=profile --no-default-browser-check --disable-machine-id --disable-encryption-win

copy all of that into a file named brave_portable.cmd and put the file in the same directory as brave.exe. I have created another script here, put it in the same location as brave.exe and run it to update Brave. https://github.com/MagicalDrizzle/batch-collection/blob/main/getbrave_standalone.cmd

mikuppy commented 7 months ago

So we can use this script to update portable version without waiting for portapps ?

MagicalDrizzle commented 7 months ago

That's right :) https://github.com/MagicalDrizzle/batch-collection/blob/main/getbrave_standalone.cmd If you use that script you won't even need to download brave-portable

mikuppy commented 7 months ago

That's right :) https://github.com/MagicalDrizzle/batch-collection/blob/main/getbrave_standalone.cmd If you use that script you won't even need to download brave-portable

Can you make a script for chrome as well , thanks for your work

MagicalDrizzle commented 7 months ago

Sadly there does not seem to be any official offline installer download link for Chrome, you need to run the setup...the reason why this script is possible is Brave releasing the offline installer on GitHub.

If you are comfortable with Chromium instead, there is this project and I highly recommend it! https://github.com/henrypp/chrlauncher

Dutchgold commented 6 months ago

yes the script installs brave to the portable folder but its no longer "portable" as the browsers data file now moves to the user folder hidden away in your pc,s local folder.