Commit Graph

4 Commits (master)

Author SHA1 Message Date
Aaron Suen 7b12f24b1d Upgrade deps, fix package lock 2022-04-11 09:49:10 -04:00
Aaron Suen 8362e41b0e Metadata editing, releasing via the API
Left to do:
- test out including commit hash, when ruben
  finishes implementing this in the API.
- screenshot reconciliation.
2021-02-27 11:20:52 -05:00
Aaron Suen a8ed60296a Add --fromgit to pull settings from a git repo.
If --fromgit=<url> is specified:
- Shallow-clone the repo.
- Export the tree from the clone.
- Run .cdbrelease.lua hook in the root of the tree.
- Merge any data returned into config.

.cdbrelease.lua can do more-or-less whatever lua allows (e.g.
using dofile, filesystem access, etc.) to figure out the settings
it wants to provide.  This allows it to do things like include
files from mods for shared versioning logic and perform more
complex version number calculations, like NodeCore does.  It could
also be a security risk, so this should be used only on repos that
the user has good control over.

The canonical example is for .cdbrelease.lua to compute its own
version number from stats that get baked into the file by the
export step based on .gitattributes.  Things like defaulting the
pacakge name and author are possible too.

Settings that are already explicitly specified at an earlier step
are ignored from .cdbrelease.lua.
2019-03-31 09:24:16 -04:00
Aaron Suen c0e8b94b75 New project. 2019-02-09 00:02:19 -05:00