Skip to content

A CLI tool to bundle all files found in an fxmanifest.lua file into a zip file, for easy distribution.

Notifications You must be signed in to change notification settings

wowjeeez/spacker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spacker

A CLI tool to bundle all files found in an fxmanifest.lua file into a zip file, for easy distribution.

Installation

  • Download the latest release from the 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

About

A CLI tool to bundle all files found in an fxmanifest.lua file into a zip file, for easy distribution.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published