Giter Site home page Giter Site logo

ltguillaume / librewolf-winupdater Goto Github PK

View Code? Open in Web Editor NEW
141.0 6.0 4.0 227 KB

An attempt to make (automatic) updating of LibreWolf for Windows much easier. Can be used for installed and portable instances (https://github.com/ltguillaume/librewolf-portable).

Home Page: https://codeberg.org/ltguillaume/librewolf-winupdater

License: GNU General Public License v3.0

AutoHotkey 91.67% PowerShell 8.33%
librewolf updater update-checker browser firefox arkenfox autohotkey-script powershell-script windows

librewolf-winupdater's Introduction

LibreWolf WinUpdater

by ltGuillaume: Codeberg | GitHub | Buy me a beer ๐Ÿบ

An attempt to make updating LibreWolf for Windows much easier.

LibreWolf WinUpdater

Getting started

  • If you want to run the portable version of LibreWolf, download and extract librewolf-xxx.x.x-windows-x86_64-portable.zip (second blue button). It already contains a compiled version of the project hosted here.
    LibreWolf will be updated automatically whenever you run LibreWolf-Portable.exe (checks for new versions happen once a day). If you wish to perform update checks manually instead, just rename WinUpdater to e.g. LibreWolf-ManualUpdater.exe and run it when needed.
  • When installing LibreWolf, the official installer will show an option to install WinUpdater.
    Alternatively, you can download and extract the latest LibreWolf-WinUpdater_x.x.x.zip to a folder you like, e.g. %AppData%\LibreWolf. Run LibreWolf-WinUpdater.exe to check for an update. If one is available, it will be downloaded immediately.

Scheduled updates

  • Run LibreWolf WinUpdater and select the option to automatically check for updates. This will prompt for administrator permissions and a blue (PowerShell) window will notify you of the result. The scheduled task will run while the current user account is logged on (at start-up and every 4 hours).
  • If your account has administrator permissions, the update will be fully automatic. If not, the update will be downloaded and you will be asked by WinUpdater to start the update (administrator permissions required).
  • If LibreWolf is already running, the updater will notify you of the new version. The update will start as soon as you close the browser.

Remarks

  • If you're having issues with the updater on Windows 7 (not officially supported by LibreWolf anymore), please have a look at these instructions.
  • The updater needs to be able to write to LibreWolf-WinUpdater.ini in its own folder, (so make sure it has permission to do so), otherwise WinUpdater will copy itself to %AppData%\LibreWolf\WinUpdater and run from there.
  • LibreWolf-WinUpdater.ini contains a [Log] section that shows the results of the last update check and update action.
  • LibreWolf WinUpdater also updates itself automatically, so you won't have to check for new releases here. If you prefer to update WinUpdater yourself, add the following to the .ini file:
    [Settings]
    UpdateSelf=0

Credits

librewolf-winupdater's People

Contributors

ltguillaume avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

librewolf-winupdater's Issues

Ability to see installer progress.

Right now when I start an update it tells me I need an update but gives me no indication of what's happening or when it's done. Can you please add options to either

  1. Show the installer
  2. Show installer progress with notification or pinned tray icon

Autoupdate for non Portable Version

I've got both librewolf version portable and non portable.
The portable always starts the updater when i open it which i like alot because in this scenario the updater does what it's supposed to do, scan for updates and install them if found.
With the non portable version i'm having a hard time here, it never starts the updater when opened.
I did use the powershell file for automatic updates however duo to my system configuration powershell has no network access for privacy reasons, basically my whole os is blocked from accesing the internet expect if i allow it individualy.
So i manually need to run the updater for the non portable version from time to time or i wont get any updates at all.
I could ofcourse use the portable version as the main browser and the issue would be solved.
But the portable version is noticable slower than the non portable, so i preffer to use it as the main browser.

Would it be possible to configure the updater for the non portable librewolf version so it will scan for updates whenever the browser is started just like it works with the portable version?

Could not find the URL to the checksum file

OGDysQpifG

Starting having this issue today. Seems like the script may be failing to get the checksums file. Did the URL change? Not sure if this may be due to my firewall settings. ๐Ÿ˜“

improvements to updater flow

First off, thank you for making this app- it's been incredibly useful.
However, it seems to check for updates when librewolf is open and only downloads and installs when librewolf is closed. This doesn't make it as seamless as the chromium autoupdater task, which automatically updates chromium without any popups or need for the user to close out of the browser. To this end, I am suggesting a different flow method:

  1. Check for updates independent of the browser (i.e check at login for a new version of librewolf)
  2. Automatically download the installation package even if librewolf is open
  3. Install the next time that librewolf is launched, or before that if librewolf is closed

I think the first 2 steps can be done, but I am not sure if step 3 can be done if you don't have access to the install directory. I believe that you would have to "hijack" the application launch shortcut. But making so that the program downloads the librewolf installer in the background while the browser is still open would reduce browser downtime.

checksum error

I can't update librewolf, after downloading new version. it shows an error:
image
How do i fix it?

Consider mirroring repos to Codeberg

Hello @ltguillaume We should mirror our repos to Codeberg because:

  1. Codeberg is libre, free, open-source, privacy-friendly, non-profit
  2. GitHub is privacy-invasive, proprietary
  3. People on Codeberg like me can contribute to the project
  4. GitHub can take down your repos

Here are some sources for you:

  1. https://sfconservancy.org/GiveUpGitHub
  2. humanetech-community/awesome-humane-tech#33
  3. ungoogled-software/ungoogled-chromium#1894
  4. https://cadence.moe/blog/2022-07-03-git-forge-opinions-github-gitlab-gitea-sourcehut
  5. andersju/webbkoll#35
  6. https://docs.codeberg.org/advanced/migrating-repos

FAQ

  1. Q: - GitHub Actions -- this is a huge time saver for me
    - Forcing all contributors to modify their current setup and move to another hosting -- we may just lose contributors in the end

    A: As I said, we only just mirror. The repo will be available and contributable on both sites.

  2. Q: - Transferring issues -- is this possible? Issues here represent a technical knowledge base we can't live without
    - Transferring wiki and all edit history -- possible?

    A: Yes, it is possible.
    a. Example for issues:

b. Example for commits:

c. Example for wiki:

  1. Q: Despite having mirror/s, the project will still continue to be operated from GitHub for development, so having yet another mirror doesn't solve anything.

    A: You can create issues, contribute, view the repos on there without going to GitHub! Example:

  1. Q: How does Codeberg mirror comments from GitHub?

    A: It uses Access Token.
    image

  2. Q: My repos are very bandwidth-intensive projects, and I have my doubts as to whether the owner(s) of Codeberg would be prepared for such a massive bandwidth rate increase. I've also had individual projects be disabled on small sites before due to taking too much bandwidth.

    A: Oh.. I think you should directly ask https://docs.codeberg.org/contact/ about if they are ready for massive bandwidth rate increase.

Issue running ScheduledTask-Create.ps1

Hello!

I've got 3 PCs I've been trying to set this up on.

On 1 of them it asked me to change the elevation or access permissions or something with a Yes, Yes To All, No, No To All, Cancel.

But then on the other 2 PCs not copying the folder I'm creating a new folder on the local machine from the .zip download of the updater I receive this error even if running ScheduledTask-create.ps1 via navigating to the directory & typing it out in a PS shell window vs just right clicking & Run With Powershell since doing that the window disappears before I can see the failure message.

Anyway the failure message is:

ScheduledTask-Create.ps1 : The term 'ScheduledTask-Create.ps1' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1

  • ScheduledTask-Create.ps1
  •   + CategoryInfo          : ObjectNotFound: (ScheduledTask-Create.ps1:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    
    

Suggestion [3,General]: The command ScheduledTask-Create.ps1 was not found, but does exist in the current location. Windows PowerShell does not load commands from the current location by default. If you trust this command, instead type: ".\ScheduledTask-Create.ps1". See "get-help about_Command_Precedence" for more details.

Please advise!

Happy to provide whatever I can too.

My local user does have Local Administrator powers too yes.

Does the updater overwrite user modified settings to stock?

Hey,

So, I just found out about Librewolf this week and I wanted to try it as I've been using the Mozilla Firefox for about 5 years now and I'm used to the ecosystem.

And as per the official Librewolf page, they link your extension as a secondary unofficial way of updating the browser, so I wanted to ask - was this extension created to make Firefox users more familiar with the updating process of the browser and also will it overwrite all the settings that I've modified and revert it back to stock?

I apologize in advance if this isn't the correct platform to ask such questions.

Thanks for reading.

Restarting repeatedly

Win 11 Pro (ReviOS 23.01)
Winupdater Version 1.7.8.
I installed it through the Librewolf 1.5.0.2 installer.
Then updated manually to 1.6.0.1 to see if that would fix it.
It just keeps restarting itself, the log shows nothing useful:

[Log]
LastRun=10:29 AM Friday, August 4, 2023
2023-08-04.10-19-55.mp4

Does not download anything then fails

Issue : Doesn't seem to download anything then fails with a no such file or directory error

Img

Expected : Update done

Happening : Fails with having seemingly downloaded nothing which triggers a no such file or directory error


Installation information :

Portable Edition

UA is Administrator on that machine

File tree :

LibreWolf
Profiles
LibreWolf-Portable.exe
LibreWolf-WinUpdater.exe
LibreWolf-WinUpdater.ini
LibreWolf-WinUpdater.url
ScheduledTask-Create.ps1
ScheduledTask-Remove.ps1

Updater Loading Too Long

This might not really be an issue but it is a bit annoying.
The LibreWolf WinUpdater took around 4-6 minutes to finish its update process, i was monitoring the taskmanager and the time.
I had no applications running so nothing used any bandwith.
Why does the updater take so long? Updates in firefox are much faster, almost instantly.

Please dont take this critic badly, its just my opinion. I hope that future version of the updater will provide increased speed downloading/updating the librewolf browser.
Unless it is intended to "take its time" with the update, would you explain why it takes that long?
Should just be a few MB/s ?

infinite loop update check

In some cases, LibreWolf version notation in Releases and the program do not match. So, even after completing the update to the current version, it continues to incorrectly recognize the current version as a new version.

e.g.)

  • Versions on Releases: 99.0.1.2
  • Internally indicated version: 99.0.1-4

Download URL could not be found

Hi!

First of all, thanks for your work on this software. Highly appreciated! :)

Using version 1.5.1 of the updater and the portable version 110.0-1 of LibreWolf on Windows, I get this error from the updater when starting LibreWolf:

image

And after acknowledging the message, no update is found and LibreWolf starts.
As version 111 of LibreWolf is out, I would expect that this is picked up and installed by the updater instead.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.