Skip to content

A ugly bash script implementation for Garry's Mod gmpublish binary for publish and upgrade workshop addons through terminal

License

Notifications You must be signed in to change notification settings

LoveRenamon/gmpublish-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

GMPublish-helper

And why in hell I would need this? Well, since I keep all my already compiled vProjects into a single folder called "1xcompiled" and crowbar isn't fast and stable with WINE. I would like to push updates to workshop through a single command and inside my terminal. Making easier my addon maintances.

With my poorly skills I did this to help me.

How to use:

  • You need be online at your Steam account.
  • Download this script and put where you wish to. (I personally directly at $HOME/.local/bin to directly call from any terminal instance)
  • Make sure your gmpublish and gmad are visible by adding a symlink to your gmpublish binary. example:
ln -s $HOME/.steam/steam/steamapps/common/GarrysMod/bin/linux64/gmpublish_linux $HOME/.local/bin/gmpublish
ln -s $HOME/.steam/steam/steamapps/common/GarrysMod/bin/linux64/gmad_linux $HOME/.local/bin/gmad
  • Make sure GMod bin/linux64 folder is visible to your $LD_LIBRARY_PATH variable.
export LD_LIBRARY_PATH="$HOME/.steam/steam/steamapps/common/GarrysMod/bin/linux64:$LD_LIBRARY_PATH"
  • Edit exports and paths as you envirovment need, (since mostly people have their own different methods)
  • Make sure jq is avaliable
sudo apt install jq
  • Call the script, with gpublish.sh <foldername> to call gmad and parse the addon.json and addon.jpg.
    • If workshopid exist inside your addon.json, the script will automatically read the id inside and push a upgrade instead.

Update a existing addon:

just add "workshopid": <id> at your addon.json a sample can be found here

About

A ugly bash script implementation for Garry's Mod gmpublish binary for publish and upgrade workshop addons through terminal

Topics

Resources

License

Stars

Watchers

Forks

Languages