Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/argv-minus-one/dmg-license
Generate license agreements for macOS .dmg files
https://github.com/argv-minus-one/dmg-license
dmg dmg-files eula licence license mac macos osx udif
Last synced: about 1 month ago
JSON representation
Generate license agreements for macOS .dmg files
- Host: GitHub
- URL: https://github.com/argv-minus-one/dmg-license
- Owner: argv-minus-one
- License: mit
- Created: 2019-04-13T09:56:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-30T21:34:12.000Z (over 1 year ago)
- Last Synced: 2024-11-11T05:56:21.645Z (about 1 month ago)
- Topics: dmg, dmg-files, eula, licence, license, mac, macos, osx, udif
- Language: TypeScript
- Size: 676 KB
- Stars: 21
- Watchers: 4
- Forks: 7
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dmg-license
A TypeScript/JavaScript library and command-line tool for attaching license agreements to macOS `.dmg` files, which the user must accept before mounting the disk image. Doing this correctly is surprisingly complicated, so this package is here to automate it.
**Warning:** Attaching license agreements to disk images may become impossible in future versions of macOS. It is done using the `hdiutil udifrez` command, which is deprecated as of macOS 12 with no apparent replacement. See [issue #11](https://github.com/argv-minus-one/dmg-license/issues/11) for details.
## Contents
* [License](#license)
* [Command Line Usage](#command-line-usage)
* [Installation](#installation)
* [Command Syntax](#command-syntax)
* [API](#api)## License
`dmg-license` itself is provided under the terms of the MIT license. You can find the text of the MIT license in the [LICENSE](LICENSE) file.
## Command Line Usage
Although this package is mainly intended for use by `.dmg`-generating tools like [node-appdmg](https://github.com/LinusU/node-appdmg), it can also be used by itself from the command line, to attach a license agreement to an existing `.dmg` file.
### Installation
You can install this package and use the command-line tool by running `npm install --global dmg-license`. This will add a `dmg-license` command to your system.
Alternatively, you can run it without installing, using `npx dmg-license`. Note that running it this way is relatively slow.
### Command Syntax
Usage: dmg-license [options…] json-path dmg-path
#### Parameters
- json-path
- Path to a JSON license specification file.
- dmg-path
- Path to a disk image (`.dmg`) file.
#### Options
-
-v, --verbose - Show stack traces for warnings and errors.
-
-q, --quiet - Don't show warnings at all.
-
-h, -?, --help - Show help, without doing anything else.
-
-V, --version - Show version.
## API
[API documentation is in the `docs/api` folder.](docs/api/index.md)