compiled_license/README.md

46 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2018-04-03 03:59:18 +00:00
# Compiled License
2022-02-06 19:52:37 +00:00
*A fork of [elorest's library](https://github.com/elorest/compiled_license).*
2021-10-23 10:23:24 +00:00
2018-04-03 03:58:44 +00:00
Compiles the licences of all shards used in project into binary.
2018-04-03 04:03:14 +00:00
This allows you to legally distribute binaries without having to package the licenses files from the shards.
2018-02-20 03:46:14 +00:00
## Installation
Add this to your application's `shard.yml`:
```yaml
dependencies:
compiled_license:
2022-02-06 19:53:31 +00:00
git: https://git.dergrimm.net/dergrimm/compiled_license.git
2018-02-20 03:46:14 +00:00
```
## Usage
```crystal
require "compiled_license"
2021-10-23 10:20:18 +00:00
puts CompiledLicense::LICENSES
2018-02-20 03:46:14 +00:00
```
2018-04-03 04:03:14 +00:00
Compile and run
2018-04-03 03:58:44 +00:00
```
2018-04-03 04:03:14 +00:00
$ crystal build src/testapp.cr
2021-10-23 10:23:24 +00:00
$ testapp
2018-04-03 03:58:44 +00:00
# Returns all licenses to stdout
```
2018-02-20 03:46:14 +00:00
## Contributing
2021-10-23 10:23:24 +00:00
1. Fork it ( https://github.com/grimmigerFuchs/compiled_license/fork )
2018-02-20 03:46:14 +00:00
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
## Contributors
- [elorest](https://github.com/elorest) Isaac Sloan - creator, maintainer
2022-02-06 19:53:31 +00:00
- [grimmigerFuchs](https://git.dergrimm.net/dergrimm) - contributor