Utilities that make Ren'Py distribution less of a pain in the arse
Project description
Ren'Py Distribution Tools
The Ren'Py Distribution Tools (RDT) is a set of utilities that make distribution of Ren'Py projects easier and more seamless programmatically.
Getting Started
Quick Start: Install via PyPI/Poetry
To install via PyPI:
pip install renpy-distribute-tools
Or, if you're using a Poetry project, just add the dependency:
poetry add renpy-distribute-tools
Building from source
Requirements
- Python 3.7 or higher
- Poetry package manager
Ren'Py Distribute Tools is a Poetry project and can be built using Poetry's build
command.
- Clone the repository.
- In the root of the project, run
poetry install
. - Finally, run
poetry build
.
What's included
The Ren'Py Distribution Tools set comes with utilities that make it easy to do the following:
- Modifying a visual novel's
Info.plist
. - Code-signing the visual novel binaries in the Mac app with entitlements.
- Creating a ZIP copy of the Mac app and sending it to Apple's notarization servers.
- Verifying the notarization status of an app.
- Stapling the notarization ticket to a macOS app.
- Distributing app content through Itch.io.
Usage
The documentation website covers all of the modules contained in the RDT package. View docs ›
Example Usage: Notarizing a macOS build
import renpy_distribute_tools as rdt
author = "Joe Smith"
bundle_identifier = "com.example.my-vn"
code_sign_identity = "Developer ID Application: Joe Smith (XXXXXXXXXX)"
app_path = "VN-1.0.0-dists/VN-1.0.0-mac/VN.app"
apple_email = "example.joesmith@icloud.com"
apple_provider = "XXXXXXXXXX"
rdt.fix_plist(app_path + "/Contents/Info.plist",
bundle_identifier,
"© %s %s. All rights reserved." % (date.today().year, author))
rdt.code_sign(code_sign_identity,
app_path,
entitlements="../../entitlements.plist",
enable_hardened_runtime=True)
try:
rdt.upload_to_notary(app_path,
bundle_identifier,
apple_email,
"@keychain:AC_PASSWORD",
provider=apple_provider)
except CalledProcessError:
print("\033[31;1mNotarization request failed. Aborting.\033[0m")
sys.exit(1)
License
RDT is licensed under the MIT License, which is available in the LICENSE file in the source code repository.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for renpy-distribute-tools-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a61ab7ee7915124628171cd2383ff8b0bb295058d1e4892c7beb46fbde75abe6 |
|
MD5 | f169d3e9152f55b9170fe984600a073c |
|
BLAKE2b-256 | 265e9646ee26cf806ce90a146f6b4fb2372de33cbcc5e3afda4652025727764b |
Hashes for renpy_distribute_tools-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 01a2017ca65bcd1d15c562284da4de6062980bb4bb1325d6dcedbd5beb59a614 |
|
MD5 | 226f4e273ba1f2039371c915865d03da |
|
BLAKE2b-256 | 486043c79079b338b2e0ee8e8d8bf37d11edc4bbe4fd6909a36e8a7d53bb0bde |