Pactorio is a tool that packages factorio mods and uses toml for config files.
The latest precompiled binaries are available on github.
Alternatively you can install pactorio from crates.io with cargo. This requires the nightly toolchain of Rust.
shell
cargo +nightly install pactorio
This requires the nightly toolchain of Rust.
shell
cargo +nightly build --release
pactorio [FLAGS] [OPTIONS]
-c, --compact Output info.json compactly
-h, --help Prints help information
-V, --version Prints version information
-z, --zip Output a zip file instead
--compression <compression> Specify the compression method, ignored without `-z/--zip` flag [default: stored] [possible values: stored, bz2, deflate]
-d, --dir <dir> Set working directory
-i, --input <input> Specify the config file to use [default: pactorio.toml]
-o, --output <output> Specify the output directory [default: release]
-p, --publish <publish>... Publish to mod portal, accepts up to two arguments for username and password
By default, pactorio uses pactorio.toml
as its config file.
It is similar to the info.json
file and uses TOML syntax.
Here is an example of a pactorio config file.
```toml
[package]
name = "example_mod"
version = "0.1.0"
title = "Example mod"
author = "You"
contact = "you@example.com"
homepage = "https://you.example.com"
description = "Example mod. Does something and some other things. "
factorio_version = "1.0"
[deps.required]
base = ">= 1.0"
[deps.conflict] # or [deps.incompatible]
bad_mod = ""
incomp = "< 3"
[deps.optional]
opt_dep = "= 0.2.1"
[deps.hidden]
hidden_dep = "> 2.0"
[source]
dir = "src"
include = ["/"]
ignore = [] ```
See CHANGELOG.md