View Single Post
07/29/19, 11:15 AM   #32
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,912
Basically it's the zip extraction software which will do this or Minion (if used).
If you build a zip archive containing 2 folders, 1 for your addon and 1 for a library (or like another addon did in the past "Libraries for addon xyz": All needed libraries as own folders in a zip archive) the software will extract the zip and extract all folders to the "AddOns" directory directly then.

Minion will overwrite other exisitng folders afaik (maybe only those which got the name of the installed Addon, but I'm not sure about this).
If you manually extract the zip archive and the popup says "Overwrite existing ..." and you press Yes (what you will do if the addon existed already ) it will overwrite the existing library folders as well.

Edit:
It does not need to be a /libs/ directory. You could also ship the library within your addons directory directly, without a subfolder.
/Addons/YourAddon/LibAddonMenu-2.0/LibAddonMenu-2.0.txt
Maybe it's easier to "find" and "read" though if it's a /lib/ subfolder.

Just don't add the library directly to the zip's folder depth 0 (which will be the AddOns directory after extraction).

Last edited by Baertram : 07/29/19 at 11:17 AM.
  Reply With Quote