[UTILITY] [FREE-OPEN SOURCE] Spacker

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 just spacker if 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 spacker directory, run cargo build --release
6 Likes

Nice release!

2 Likes

what exactly is this

i want it

1 Like

It’s mainly useful if you are making/selling resources written in an other language than Lua (I will take Typescript as an example) and you obviously only include the compiled/maybe bundled files in the manifest and spacker will take every file that you included in your fxmanifest.lua and bundle them into a .zip file for easier distribution.