Skip to content

Instantly share code, notes, and snippets.

@btarg
Created January 15, 2018 18:24
Show Gist options
  • Save btarg/ad7117c0968e2f0c587a770bc5210cb4 to your computer and use it in GitHub Desktop.
Save btarg/ad7117c0968e2f0c587a770bc5210cb4 to your computer and use it in GitHub Desktop.
Garry's Mod Addon Publisher Batch Tool
@echo off
title GMA Publisher Batch Tool
cls
echo ------------------------------------------
echo iCrazyBlaze's Garry's Mod Addon Publisher
echo ------------------------------------------
echo.
color C
echo Notice - It's recommended that you run this file from the Garry's Mod bin folder. If you want to run it somewhere else, copy "gmpublish.exe" and "steam_api.dll" into the same directory as this file.
echo You can only upload .GMA files; other filetypes are not supported!!
echo.
echo Press any key to continue...
echo.
echo.
pause >nul
:main
color 7
cls
echo ------------------------------------------
echo iCrazyBlaze's Garry's Mod Addon Publisher
echo ------------------------------------------
echo.
set /p input1=GMA File to upload:
set /p input2=Thumbnail (512x512):
echo.
IF EXIST "gmpublish.exe" goto exists
IF NOT EXIST "gmpublish.exe" goto nope
:exists
echo ==GMPUBLISH START==
echo.
gmpublish.exe create -addon %input1% -icon %input2%
echo.
echo ==GMPUBLISH END==
echo.
pause
exit
:nope
color C
echo ERROR: "gmpublish.exe" is missing!
echo.
pause
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment