Skip to content

autumngmod/libloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

libloader

libloader is an attempt to make a package manager for Garry's Mod.
All packages are searched on GitHub, in open source repositories.

showcase

join us on discord!

Table of contents

Official available libraries

Installation

Download latest release, and put it to GarrymodDS/garrysmod/lua/autorun/ (its minified version of libloader)

Note

Alternatively, you can just download this repository, and install libloader as an addon. This way you can make sure that the code is not modified and does not contain anything dangerous.

Usage

Note

You can hide tooltips (hints) by using the libloader_showhints 0 command

Library installation

# Installation of latest version of library
lib i/install autumngmod/binloader

# Forcing a version
lib install autumngmod/binloader@0.1.0
# # Forcing a version with a flag
lib install autumngmod/binloader --version 0.1.0

Library enabling

Note

Libraries are disabled by default, so enable them after installation.

lib en/enable autumngmod/binloader@0.1.0

Library disabling

lib disable autumngmod/binloader@0.1.0

Library removing

lib remove/delete/r autumngmod/binloader@0.1.0

Show the list of installed libraries

lib list

For developers

Your repository should have an addon.json file in GitHub release, and its contents should match this json schema.

Example:

{
  "$schema": "https://raw.githubusercontent.com/autumngmod/json/refs/heads/main/addon.scheme.json",
  "name": "Addon's name",
  "description": "Short description",
  "authors": ["author1", "author2"],
  "version": "0.1.0",
  "githubRepo": "https://github.com/example/repo",
  "side": ["server", "client"]
}

Also, the library itself should be uploaded to GitHub Release under the name lib.lua.

Note

Yes, the library itself should be compressed into a single file.

You can do this either manually or via GitHub Actions like gm-donate/igs.

Note

GitHub Release should have a name like β€œv*...*”, e.g. β€œv0.1.0”.

Ideal example of a repository with an addon on GitHub