Help with packaging addons
Can someone help with packaging addons? I have two questions regarding ZIP files generated from the Git Control Panel:
* Is it possible to collect external libraries without having them in a repository * How to make ZIP which will contain a project folder in the zip ready to copy/move to WoW interface folder. This is a small addon that loads some media files for my WA in case some files are missing. The addon also requires two libraries: LibStub and LibSharedMedia. I made a current zip file manually and uploaded it to my addon website. The process of creating a ZIP file in the Git Control Panel only adds files to the ZIP. The structure is: Libs\Media\File1.ogg ...........File2.ogg AddOnName.toc embeds.xml core.lua What I would need is following. The process would first create a folder with the addon name and then put everything in that folder and then create the ZIP: AddOnName\Libs\Media\File1.ogg .....................File2.ogg AddOnName\AddOnName.toc AddOnName\embeds.xml AddOnName\core.lua Edit. I just realised I could simply copy everything to one folder but still don't know how to auto-include external libraries. |
|
Quote:
|
I don't know what you mean by "windows 10 allows running Linux". You do not need a virtual box or anything. You can simply do this using cygwin. It also includes a version of curl which is used to do the uploading automatically. Let me know if you are stuck.
|
Quote:
https://www.microsoft.com/en-us/p/ub...ot:overviewtab This is included in every version of Windows 10 including Home. You just need to enable developer mode. I am not an expert here but it seems a fully working Linux terminal, e.g. I had to run "sudo apt install zip subversion" etc. to install required applications. You have also easy access to C: D: drives. I feel it's easier solution than Cygwin. And BTW thanks for the offer. I've never used curl so I will definitely have to read about it. |
Wow, this is the first time I am hearing about this "Windows Subsystem for Linux (WSL)".
For the moment I am not touching my cygwin setup though. Took me long enough to get this to work ;) But on my next PC I will give WSL a try. |
WSL is nice if you want to package it manually. You can also use GitHub Actions to let them package it for you
Code:
name: Release AddOn Quote:
You use the .pkgmeta file for including external libraries (provided you use the CurseForge or BigWigs packager) Code:
package-as: SomeAddon |
First, thanks for the clue on .pkgmeta. I have run `release.sh` and created a package plus a zip file, which collected external libraries.
Sorry but I don't really know what I am doing with GitHub Actions, though. I read through the links but these are I believe different approaches to GitHub Actions. I made a file in .github/workflow called main.yaml which is almost the same as yours. I only changed the line - uses: actions/checkout@v1 to - uses: actions/checkout@master I create a package from the master commit. I was on GitHub Actions, I saw the `main.yaml` file but nothing happens :p Thanks PS. I created secrets. Thanks for the link. |
All times are GMT -6. The time now is 04:12 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI