XY_Update downloader

Discuss and share scripts and script files...
highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: XY_Update downloader

Post by highend »

Update is in the first post...

You need to add the two new .ini settings by hand!
See the first posting how this looks like...

Code: Select all

v2018.01.18
Added: A new context menu item was added: Update XYplorer
       It will be enabled when a new version was downloaded successfully
       After updating XYplorer the menu will be disabled until the next
       version was downloaded

       Make sure that this application runs with the necessary permissions
       if you want to update an XYplorer installation that resides e.g.
       in a path that is protected by User Access Control (UAC)!

       .ini settings:
       XYplorerPath. Default = "" [empty]
       If it's a valid path, you can now use the systray icon context menu
       to update XYplorer to the latest stored version
       OnUpdateSaveSettings. Default = 1 [true]
       By default XYplorer will be gracefully shut down and settings are
       saved while doing this. Set it to 0 to NOT save settings!
       When no XYplorer instance is running, this setting is ignored
One of my scripts helped you out? Please donate via Paypal

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: XY_Update downloader

Post by Filehero »

Hi highend,

what are the remaining differences to YAUM? Just the manual tweaking of settings?

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: XY_Update downloader

Post by highend »

YAUM has a few features that XY_Update downloader doesn't has (maybe yet).

Postponing updates
Pre- and post execute commands

XY_Update downloader doesn't need a real GUI (and I don't want it to have one).
It's more a startup and forget thing (and it's main purpose stays to catch all
XY updates)...
One of my scripts helped you out? Please donate via Paypal

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: XY_Update downloader

Post by Filehero »

Thanks, so I will stick with the fabulous YAUM. :)

highend
Posts: 13274
Joined: 06 Feb 2011 00:33

Re: XY_Update downloader

Post by highend »

Ok, my Windows PC isn't running 24/7 so I wrote a bit of go code...

It doesn't use any external imports and thanks to go, it can easily be cross-compiled.
In my case, I'm running it on my external webserver (which ofc I have shell access to)...

To cross-compile you can use something like this in a command prompt (Windows):

Code: Select all

set GOOS=linux
set GOARCH=amd64
go build -o <file name> <file name>.go
All available environments are here:
https://golang.org/doc/install/source#environment

It requires a config.json (plain UTF-8, no bom) file in the correct folder! By default it is the same in
where the app resides but this can change when it is started via a cronjob / runwhen / etc.
so you need to figure out where to place it...

Code: Select all

{
  "include_beta_versions": true,
  "archive_path": "R:/xy_downloads/",
  "download_url_prefix": "https://www.xyplorer.com/download/",
  "official_version_url": "https://www.xyplorer.com/version.php",
  "beta_version_url": "https://www.xyplorer.com/version_beta.php"
}
If you're using it on windows, use either "/" for the archive_path or
escape any backslashes, e.g.: "R:\\xy_downloads\\",

Under linux I would use a full path (didn't test anything else) like:
"/home/your user name/xy_updates" or wherever you want to store the files...
Attachments
xy_update_downloader.zip
(2.46 KiB) Downloaded 112 times
One of my scripts helped you out? Please donate via Paypal

Post Reply