# Default recipe: build and package the module default: build # Recompile the LevelDB and create a distribution zip build: python3 build_db.py just zip # Package the module into a zip file for distribution zip: rm -f monster-slayer-subclass.zip zip -r monster-slayer-subclass.zip monster-slayer-subclass -x "*.DS_Store" "*~" # Dump a LevelDB compendium to a SQLite database # Usage: just dump-pack [path/to/leveldb] [output.db] dump-pack ldb_path="monster-slayer-subclass/packs/monster-slayer-db" sqlite_path="monster-slayer-items.db": python3 ldb_to_sqlite.py {{ldb_path}} {{sqlite_path}} # Shortcut to dump the Monster Slayer pack specifically dump: just dump-pack monster-slayer-subclass/packs/monster-slayer-db monster-slayer-items.db