https://github.com/adamwestman/dpm
The Defold Package Manager
https://github.com/adamwestman/dpm
defold-game-engine dependencies dependency-manager package-manager tool
Last synced: about 1 month ago
JSON representation
The Defold Package Manager
- Host: GitHub
- URL: https://github.com/adamwestman/dpm
- Owner: adamwestman
- License: mit
- Created: 2017-09-03T20:56:07.000Z (almost 9 years ago)
- Default Branch: develop
- Last Pushed: 2018-06-27T03:43:05.000Z (almost 8 years ago)
- Last Synced: 2025-03-31T04:18:34.634Z (about 1 year ago)
- Topics: defold-game-engine, dependencies, dependency-manager, package-manager, tool
- Language: Lua
- Size: 32.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DPM
The Defold Package Manager
Provides transitive dependency management for Defold projects. No longer worry about additional dependencies for native extensions and libraries.
# Install
Install from [homebrew](https://brew.sh) ```$ brew install dpm```
Install from ```/bin/``` by adding a PATH reference to **dpm.o**
# Usage
Setup a new project depending on the Debeat library version 1.2.+, where + will be the latest patch version available.
```sh
$ dpm init # requests name and version of project.
$ dpm install debeat 1.2.+ # resolves and updates the game.project dependency line.
```
Update to the latest version, following the lock rule.
```sh
$ dpm update debeat
```
Update version lock to the latest version.
```sh
$ dpm update debeat +
```
## Init
The ```$ dpm init``` command generates a ```dpm.package``` based on the local ```game.project``` if available, or requested user input if not.
```
[package]
name={game.project title}
version={game.project version}
```
## Install
The ```$ dpm install X``` command installs a new dependency to the ```dpm.package``` and outputs the resolved url to ```game.project``` if available. If no ```game.project``` is available a new one will be generated.
Eg, ```$ dpm install debeat 1.2.+```would output the following to ```dpm.package``` and ```game.project``` after resolving the debeat version and transient dependency on extension-openal.
```
[package]
name=example
version=0.1.0
[dependencies]
debeat=1.2.+
```
```
[project]
title = example
version = 0.1.0
dependencies = https://github.com/adamwestman/debeat/archive/debeat-1.2.3.zip, https://github.com/Lerg/extension-openal/archive/1.0.1.zip