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.
- 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
andgmad
are visible by adding a symlink to yourgmpublish
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 callgmad
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.
- If
just add "workshopid": <id>
at your addon.json
a sample can be found here