Skip to content

Add Support for Proxy and Redirects in Updater-Script #5

@wazilla

Description

@wazilla

Hi,

i've had some problems getting this to work behind a corporate proxy. Maybe you could switch to cURL (instead of wget) in the Updater-Script to fix these issues for others in the future?

  • First i had to set an EnvVar for wget to use the proxy: set http_proxy=http://#host#:#port#
  • Then i ran into a problem, because github sends a 302 Redirect, which isn't followed by wget
  • Other Versions of wget seems to have a parameter for this (--max-redirect=20), but your version (thru busybox) doenst support this parameter
  • The solution in the end was to use curl instead of wget for the download.

Here are my changes to the Updater.bat - Script:

set http_proxy=http://localhost:3128
set CURL="%HERE%App\Utils\curl.exe"
%CURL% --insecure --location --proxy %http_proxy% %OBSIDIAN% -o TMP\Obsidian-%LATEST%.exe

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions