Spacker is a CLI tool, written in Rust to bundle all files found in an fxmanifest.lua file into a zip file, for easy distribution.
GitHub link
Installation
- Download the latest release from the GitHub Releases section
- Add the spacker binary path to your PATH enviromental variable
Usage
- Invoke the program like:
spacker resource/fxmanifest.lua, or justspackerif the manifest file is in the current directory.
Adding files to the archive, without including them in the Cfx runtime
- Spacker exposes a custom directive called
spacker_keep, which will add the files to the archive. - Example:
fx_version 'cerulean'
game 'gta5'
name 'awesome-resource'
--snip--
spacker_keep { --this won't affect your cfx runtime, but will include the files in the archive
"typedefs/types.lua",
}
Building from source
- You have to have the Rust toolchain installed
- In the
spackerdirectory, runcargo build --release