How to prevent Minion from overriding the development version of my add-on?
Hi all, just made my first ESO add-on and having a lot of fun.
I published the add-on to ESOUI yesterday after only having worked on it locally, but fortunately using Git for version control from the beginning. The first time I opened Minion after submitting my add-on, Minion completely replaced my development version with the released version... which also wiped out the changes I was working on plus some files I don't commit to Git. Fortunately, I often push my changes to my remote (I use Azure DevOps for my projects), but I'd rather not have this happen again. Is there a way I can prevent Minion from overriding my development version while still having automatic add-on updates enabled? My thoughts so far are to either:
|
Personally I recommend you do not keep your development version in the AddOns folder, simply because of Minion. It will remove all folders in the root of an addon on update. You can ignore a specific addon update by right clicking it and selecting ignore, but if some other addon were to add the folder for any reason and you update, it will still delete it.
I use some scripts to "build" my addons and copy them to the target folder. That way it doesn't matter even when I just delete the whole folder. |
Quote:
|
All right, created a few PowerShell scripts to take care of this and hooked it up to a file watcher in WebStorm, works beautifully. :cool:
|
Sounds like a helper, are you able to share it with us (maybe) if possible?
|
Sure. It's a bit rough, I have specified the necessary files manually, but I'll add some better filtering later.
The first script is bin/build.ps1, which copies files to a build/ directory and substitutes some variables: Code:
Param( Code:
Param( Code:
<?xml version="1.0" encoding="UTF-8"?> I'm planning to use this to publish new releases of my add-on through Azure Pipelines. (Massive overkill unless you already have an Azure DevOps setup, though, but I'll let you know when I get that far, as the approach should also be possible with GitHub Actions.) If you have questions, let me know. |
Thanks!
Never used Webstorm so far, need to read about it first. Hint: If you use UTF-8 for your files be sure to remove the BOM or ESO will freak out in the addon manager, sometimes at least. Especially if it's set within the txt manifest files. |
Quote:
Quote:
Code:
$PSDefaultParameterValues['Out-File:Encoding'] = "utf8" |
Quote:
Haven't build any web content for years but wanted to start with something to keep learning soon. Definately need to take a look! Thanks Edit: Is it somehow free to use or do I need to buy it? Just saw there is only a 30 days test version available. I've found threads that Webstorm is included into IntelliJ but my guess it's only in the ultimate version? The community version does not support JavaScript afaik and found online. |
Quote:
Quote:
Quote:
A free alternative that you might have heard of is Visual Studio Code. It has extensions for almost anything these days and runs quite well. If I hadn't been spoiled by JetBrains products, that's what I would use. |
All times are GMT -6. The time now is 03:32 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI