GitXplorerGitXplorer
S

mt_media_collector

public
5 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
dadaedacc1d639f6c73dce5922824103f5d35858

Use _by_key variants of sort and dedup

SShadowNinja committed 7 years ago
Unverified
e6f4a7f712dd651964e1332dcf9be12831a895c2

Update dependencies

SShadowNinja committed 7 years ago
Unverified
784ebc9301225ee783f221bc64735886f74283a8

Add README

SShadowNinja committed 8 years ago
Unverified
0e4d879b24e31d58ce743cc32b5c11791e2837a8

Add seperate --index and --media options

SShadowNinja committed 8 years ago
Unverified
4abce774e1b9d48713a9777ac9ecdc0fe125ea8f

Don't overwrite assets in output directory

SShadowNinja committed 8 years ago
Unverified
c200b3d0ec77203f511b4a826ce2a6d6038ff477

Change top-level error handling

SShadowNinja committed 8 years ago

README

The README file for this repository.

Minetest media collector

This generates an index.mth file to be served over HTTP to Minetest clients and optionally collects all of the necessary media files into a directory.

Installation

Simply install rust (and cargo). You can build the binary with cargo build or just use cargo run as below and the project will be built automatically.

Examples

List all options:

$ cargo run -- --help

Copys all media files to /srv/http/mt and save an index there.

$ cargo run -- --copy \
	--world ~/.minetest/worlds/world \
	--game ~/.minetest/games/minetest_game \
	--out /srv/http/mt

Hard link all media files in /srv/http/mt/media and add an index in /srv/http/mt/foo:

$ cargo run -- --hardlink \
	--world ~/.minetest/worlds/world \
	--game ~/.minetest/games/minetest_game \
	--media /srv/http/mt/media \
	--index /srv/http/mt/foo/index.mth

Symlink all media files in /srv/http/mt/media:

$ cargo run -- --symlink \
	--world ~/.minetest/worlds/world \
	--game ~/.minetest/games/minetest_game \
	--media /srv/http/mt/media