Skip to content

Collects assets for a Minetest HTTP asset server and creates an index.mth file for those assets.

License

Notifications You must be signed in to change notification settings

ShadowNinja/mt_media_collector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Collects assets for a Minetest HTTP asset server and creates an index.mth file for those assets.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages