A CLI tool to bundle all files found in an fxmanifest.lua file into a zip file, for easy distribution.
- Download the latest release from the Releases section
- Add the spacker binary path to your PATH enviromental variable
- Invoke the program like:
spacker resource/fxmanifest.lua, or justspackerif the manifest file is in the current directory.
- 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",
}- You have to have the Rust toolchain installed
- In the
spackerdirectory, runcargo build --release