Skip to content

gskeleton/watchdogs

Repository files navigation

Watchdogs

GNU/Linux

Choose one.

  • GNU/wget
wget -O install.sh https://github.com/gskeleton/watchdogs/raw/refs/heads/main/__gnu_linux.sh && chmod +x install.sh && ./install.sh
  • cURL
curl -L -o install.sh https://github.com/gskeleton/watchdogs/raw/refs/heads/main/__gnu_linux.sh && chmod +x install.sh && ./install.sh
  • aria2
aria2c -o install.sh https://github.com/gskeleton/watchdogs/raw/refs/heads/main/__gnu_linux.sh && chmod +x install.sh && ./install.sh

Termux

  1. Download Termux from GitHub

  2. Install the downloaded .apk file and run Termux.

  3. First time, run the following command in Termux:

Choose one.

  • GNU/wget
apt update && apt upgrade && apt install -y wget && wget -O install.sh https://github.com/gskeleton/watchdogs/raw/refs/heads/main/__termux.sh && chmod +x install.sh && ./install.sh
  • cURL
apt update && apt upgrade && apt install -y curl && curl -L -o install.sh https://github.com/gskeleton/watchdogs/raw/refs/heads/main/__termux.sh && chmod +x install.sh && ./install.sh
  • aria2
apt update && apt upgrade && apt install -y aria2 && aria2c -o install.sh https://github.com/gskeleton/watchdogs/raw/refs/heads/main/__termux.sh && chmod +x install.sh && ./install.sh

If there are other questions (e.g., Termux mirror selection ? (-openssl.cnf (Y/I/N/O/D/Z [default=N] ?)-), choose the top one or just press Enter.

watchdogs


Windows (MSYS2 Build) for Windows

  1. Install Visual C++ Redistributable Runtimes (required for pawncc)

  2. Open Windows Command Prompt, run:

powershell -Command "Invoke-WebRequest 'https://raw.githubusercontent.com/gskeleton/watchdogs/refs/heads/main/__windows.cmd' -OutFile 'install.cmd'; .\install.cmd"

Executing with Args

./watchdogs command
./watchdogs command args
./watchdogs help compile

Command Alias

Default (if in the root directory):

echo "alias watchdogs='./watchdogs'" >> ~/.bashrc
source ~/.bashrc

Running the alias:

watchdogs

Compilation Commands

Termux/Parent mode (only for linux/termux):

compile ../storage/shared/Download/_GAMEMODE_FOLDER_NAME_/gamemodes/_PAWN_FILE_NAME_.pwn

Example: I have a gamemode folder named parent in Downloads, and the main file pain.pwn is inside gamemodes/. Then the path used is:

compile ../storage/shared/Download/parent/pain.pwn

Basic Compile:

compile

Compile server.pwn:

# Default compilation
compile .
compile.

Compile with a specific path

compile server.pwn
compile path/to/server.pwn

Compile with parent location (include path automatic)

compile ../path/to/project/server.pwn
# auto-path: -i/path/to/source -i/path/to/source/pawno -i/path/to/source/qawno -i/path/to/source/gamemodes

Server Runner

Run the server:

running

Compile and run:

compiles .
compiles.

Compile with a specific path and run:

compiles server.pwn

Dependency Installer

Install dependency from watchdogs.toml:

replicate .
replicate.

Install a specific repository:

replicate repo/user

Install a specific version (tag):

replicate repo/user?v1.1

(tag)Automatic latest version:

replicate repo/user?newer

Install a specific branch:

replicate repo/user --branch master

Install to a specific location:

# root
replicate repo/user --save .
# specific location
replicate repo/user --save ../parent/myproj
replicate repo/user --save myfolder/myproj

About

Lightweight Tool (DIY)

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages