Thread Tools Display Modes
12-16-14, 07:42 AM   #1
hizuro
A Kobold Labourer
 
hizuro's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2009
Posts: 1
Question about Git

I want to centralize my addons workspace and plan to setup an own git daemon on my webserver.

Maybe i'm a little bit blind but i can't find an option to use external git repositories.
If not exists, then I beg you add the option.

greetings Hizuro
  Reply With Quote
12-16-14, 08:55 AM   #2
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
If you're using Git, there's really no need for this feature -- just create a Git repo for your addon on WoWI, then add its URL as a remote in addition to the repo on your server. Then when you're ready to make a release, push to both repos instead of only to your server, come to WoWI, and click the button to auto-package a ZIP file from your repo.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
12-16-14, 09:13 PM   #3
Nimhfree
A Frostmaul Preserver
AddOn Author - Click to view addons
Join Date: Aug 2006
Posts: 267
I wonder if I should make use of WoWI git repository and packaging instead of still doing my own. I had no idea there was a git repo at WoWI, and perhaps had I known before I would have used it, but I have grown my own deployment system at this point. Hmmm...
  Reply With Quote
12-17-14, 01:40 AM   #4
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Unfortunately WoWI does not have any way to pull in libraries when packaging from a Git repo, so it's only usable if (a) your addon does not use any libraries or (b) you hard-embed all the libraries your addon uses. Note that (b) is bad, and you should not do it, since you will quickly end up shipping outdated libraries or wasting tons of your time keeping track of library updates by hand.

I'm currently letting the Curse packager make my ZIPs, since it can pull in libraries from any type of repository, and manually uploading them to WoWI.

Previously I was using SVN and letting WoWI's packager make my ZIPs, since it can pull things in by using svn:externals and nearly all libraries are in SVN repos, and manually uploading them to Curse.

Manually uploading to WoWI is actually much less painful than manually uploading to Curse, so even if I went back to SVN at this point (very unlikely) I would probably continue packaging on Curse and manually uploading on WoWI.

There is also the WoWI Mod Uploader script, but it is rather outdated by now, and when I tried to use it a few months ago to automate uploading my Curse ZIPs to WoWI, I ran into issues on both ends since both sites have changed since 2010 but the script has not. It may work for very basic stuff, though.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
12-17-14, 01:58 AM   #5
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
Upon a request, Dolby was working on an API that we could use for authenticating and uploading addons through scripts, but I'm not sure where it's at right now.

This was the last thing I saw him working on:
http://api.wowinterface.com/addons/list.json
  Reply With Quote
12-17-14, 02:20 PM   #6
jeffy162
A Pyroguard Emberseer
 
jeffy162's Avatar
AddOn Author - Click to view addons
Join Date: May 2009
Posts: 2,364
@ p3lim: When I click that link, why does it give me all of my addons and a bunch of other stuff? I mean, it's all printed out really nice, but ..... WHY?
Code:
[{"id":"15330","title":"MinimapButtonFrame_ClassRings","details":"http:\/\/api.wowinterface.com\/addons\/details\/15330.json"},{"id":"15333","title":"MinimapButtonFrame_EmotionRings","details":"http:\/\/api.wowinterface.com\/addons\/details\/15333.json"},{"id":"15345","title":"MinimapButtonFrame_Shapes","details":"http:\/\/api.wowinterface.com\/addons\/details\/15345.json"},{"id":"15346","title":"MinimapButtonFrame_Rings","details":"http:\/\/api.wowinterface.com\/addons\/details\/15346.json"},{"id":"19683","title":"MinimapButtonFrame_sClassButtons","details":"http:\/\/api.wowinterface.com\/addons\/details\/19683.json"},{"id":"20318","title":"Masque_ClassButtons","details":"http:\/\/api.wowinterface.com\/addons\/details\/20318.json"},{"id":"20412","title":"Masque_Dark","details":"http:\/\/api.wowinterface.com\/addons\/details\/20412.json"},{"id":"20415","title":"MinimapButtonFrame_sDark","details":"http:\/\/api.wowinterface.com\/addons\/details\/20415.json"}]
(direct copy / paste - so you can see what I mean)
I don't do any work in any of the languages (code) used to write programs (except Lua, for sddons), so... I just don't understand THIS ^^^^.
__________________
Ahhhh, the vagueries of the aging mind. Wait.... What was I saying?


Carbonite <----- GitHub main module (Maps ONLY) download link. The other modules are also available on GitHub.
Carbonite-CLASSIC<----- GitHub link to Carbonite Classic. Thanks to ircdirk for this!
  Reply With Quote
12-17-14, 03:33 PM   #7
Choonstertwo
A Chromatic Dragonspawn
 
Choonstertwo's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2011
Posts: 194
Originally Posted by jeffy162 View Post
@ p3lim: When I click that link, why does it give me all of my addons and a bunch of other stuff? I mean, it's all printed out really nice, but ..... WHY?
That data is in JSON format, a common data format used by web APIs. Applications can send a HTTP request to that URL to get that list of AddOns by a particular author and then do something with the data. The details URL in each AddOn's entry appears to return an empty response, so it looks like Dolby hasn't finished that part of the API yet.

Since it's returning a list of your own AddOns without the author being specified in the URL, I'd guess that it uses the session cookie sent along with the request to determine which author's AddOns to return.
  Reply With Quote
12-17-14, 03:37 PM   #8
Dolby
PPAP
 
Dolby's Avatar
WoWInterface Admin
Join Date: Feb 2004
Posts: 2,341
The above API isnt finished and you're right it uses the session cookie at the moment. Other projects kept getting in the way but I finally have a story in this next sprint to finish up the API. So its now on the schedule to get finished.

You'll be able to GET a list the addons you have access to (like now)

GET details about an addon of yours if you supply the ID.

POST updates to the file, and data

I want to switch the authentication to our new oauth stuff ZAM has so you would get a access token by authenticating and then use the access token in your requests to the API.

Last edited by Dolby : 12-17-14 at 03:39 PM.
  Reply With Quote
12-18-14, 02:01 AM   #9
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
And I have planned a script that automatically uploads/updates an addon when it's pushed to github/curse (which fits my release environment), using the API that Dolby is talking about.
  Reply With Quote
12-18-14, 12:42 PM   #10
Choonstertwo
A Chromatic Dragonspawn
 
Choonstertwo's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2011
Posts: 194
Originally Posted by p3lim View Post
And I have planned a script that automatically uploads/updates an addon when it's pushed to github/curse (which fits my release environment), using the API that Dolby is talking about.
It would be extremely useful to auto-upload Curse-packaged AddOn updates to WoWI. I'm looking forward to this API/script.
  Reply With Quote

WoWInterface » Site Forums » Site help, bugs, suggestions/questions » Question about Git


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off