-
Contributor
PoeHUD Plugin: PoeHUD PluginsUpdater
This plugin can update/download other plugins and update itself from Github just pressing Update buttons.
Supported updates type:
- From Releases (.zip file)
- Directly from repository (optionally can be selected some branch)
Only GitUpdateConfig.txt file is requed to update or download plugin. It can be created even in empty plugin directory.
Github: GitHub - Stridemann/PoeHUD_PluginsUpdater: Plugin for updating plugins in PoeHUD
GitUpdateConfig.txt examples
GitUpdateConfig.txt should be placed to plugin directory.
1) From release:
https://github,com/nymann/Stashie
Code:
Owner:nymann
Name:Stashie
Release
2) From repository:
https://github,com/Stridemann/PoE_PassiveSkillTreePlanter
Code:
Owner: Stridemann
Name: PoE_PassiveSkillTreePlanter
Repository
Ignore:
src
.gitignore
README.md
LICENSE
Owner - nick of plugin author (Git account name) (from URL).
Name - Repository name (from URL).
Repository/Release - keywords indicating that update will be processed from repository or release.
Optional commands:
Ignore: - List of files that will be ignored and not checked/downloaded from repository (or will be deleted from release .zip file after unzipping) (all lines that goes after this command will be added to filter). Allows paths, for example "src\SubDirectory\File.txt".
Branch:master - (repository only) Selecting the branch to update from (not tested).
Tag: - (release only) This is regex filter for branches. For example: V[0-9].[0-9].[0-5] will allow "V1.0.5" but not "V1.0.8".
Regex reference: .NET Regex Reference - Regex Storm
Regex tester: .NET Regex Tester - Regex Storm
Technical information: Update process
- From release:
It search for latest release, check "PublishedAt" time with local version in file "%PluginVersion.txt" (auto created after update), get .zip file, downloads and unzip it to "%PluginUpdate%" local plugin directory. (if zip contains only one folder with files - it move files to upper durectory)
- From repository directly:
It check all the files in repository and compare SHA1 hash with local files. If hash is different- it will download files to "%PluginUpdate%" local plugin directory.
It's impossible (too hard) to update plugin dll files which loaded in PoeHUD, so after launching PoeHUD it replace all plugin files from "%PluginUpdate%" directory, then load dll's.
All replaced files are backuped to %Backup% directory (if %Backup% directory is exist before backuping- it move it to recycle bin, not deleting permanently).
Last edited by Stridemann; 07-02-2017 at 06:31 PM.
-
Post Thanks / Like - 22 Thanks
Preaches,
GameHelper,
Deezilbub,
Sithylis,
vmv,
stfufag,
noneyatemp,
zaffrex,
TehCheat,
Ket,
Treasure_Box,
misterhacker,
virus8899,
gulba,
BrasileirinhoPe,
sketax,
toadskin,
Genocyber,
macchedici,
ShrekIII,
Dragomitch,
pearcen (22 members gave Thanks to Stridemann for this useful post)
-
Contributor
I think we can create configs to all PoeHUD plugins and add them to this plugin. Then I can add new window with list where will be possible to download all plugins which we even not have installed.
-
Member
I copy pasted your passive skill tree planter from your post but It says that local and remote versions are undefinded and that there's no git config. Same happens with every other plugin I add to the GitUpdateConfig.txt
-
Contributor
Originally Posted by
martti96
I copy pasted your passive skill tree planter from your post but It says that local and remote versions are undefinded and that there's no git config. Same happens with every other plugin I add to the GitUpdateConfig.txt
Originally Posted by
Stridemann
GitUpdateConfig.txt should be placed to plugin directory.
Each plugin should have own GitUpdateConfig.txt in his directory.
-
Contributor
Update:
*) Added release tag to display information
You can update PluginsUpdater through PluginsUpdater.
-
Member
Originally Posted by
martti96
I copy pasted your passive skill tree planter from your post but It says that local and remote versions are undefinded and that there's no git config. Same happens with every other plugin I add to the GitUpdateConfig.txt
Originally Posted by
Stridemann
Each plugin should have own GitUpdateConfig.txt in his directory.
it doesn't work, i made a config file for every plugin that i have and it says undefined, even your PoE_PassiveSkillTreePlanter
-
Contributor
Originally Posted by
Maelzel
it doesn't work, i made a config file for every plugin that i have and it says undefined, even your PoE_PassiveSkillTreePlanter
That is strange, because at least @Preaches test it and everything works fine.
You can wait a little, today I'm goning to make an update with a list of all available (registered) plugins for PoeHUD in other window tab. Just press Install and plugin+config will be downloaded automatically:
-
Contributor
-
There should be another field in available plugin, where it tells that if that plugin is still working or dev have left the community.
Edit: also, allow support for multiple owners, sometime plugin got more than 1 owner so if 1 owner left we can ping another one.
Condition: all owners must have "contributor" status on that plugin.
So they can change things on request.
Last edited by GameHelper; 06-26-2017 at 02:15 PM.
If I did not reply to you, it mean the question you are asking is stupid.
-
Contributor
Originally Posted by
zaafar
There should be another field in available plugin, where it tells that if that plugin is still working or dev have left the community.
Edit: also, allow support for multiple owners, sometime plugin got more than 1 owner so if 1 owner left we can ping another one.
Owner mean repository owner. It used for forming url (technically to get repository by owner name and repository name).
Also if plugin dev left the community and plugin is broken- I can just remove it from AvailableList (config)
Last edited by Stridemann; 06-26-2017 at 02:20 PM.
-
Member
Thanks Stridemann for the update but now I'm getting this:
and this:
now, if you see I already have your plugin (PassiveSkillTreePlanter) but it doesn't recognize it, also, what happens with my personal config in the previous versions of the other plugins.
-
Contributor
Originally Posted by
Maelzel
Thanks Stridemann for the update but now I'm getting this:
and this:
now, if you see I already have your plugin (PassiveSkillTreePlanter) but it doesn't recognize it, also, what happens with my personal config in the previous versions of the other plugins.
Well, I made one mistake in logic. When it print Owned- that mean only that folder with name of plugin exist. It even don't check gitconfigs. I will fix that later.
I just pushed an update. For now it will throw warnings to log: why it doesn't accept config.
One more thing I found: if Release\Repository is not defined in code- it just ignore config and print that No config instead of Wrong config. Fixed.
Last edited by Stridemann; 06-26-2017 at 04:30 PM.
-
Contributor
If you like what I'm doing and you want to support or speed up the development plagins, BTC donations can be send to: 1NLBDfMY7hURujkzfi9Uq6dnMf1zF3Vqcm
-
Post Thanks / Like - 1 Thanks
toadskin (1 members gave Thanks to kSacred for this useful post)
-
Contributor
Originally Posted by
kSacred
I need:
Short description (max 67 cymbols)
GitUpdateConfig.txt to each your repository
Last edited by Stridemann; 06-27-2017 at 10:14 AM.
-
Contributor
Originally Posted by
kSacred
Added.
Update pushed.
-
Post Thanks / Like - 1 Thanks
toadskin (1 members gave Thanks to Stridemann for this useful post)