Skip to content

This project provides a simple solution to automatically create and update the `contents.json` file for WhatsApp stickers by scanning folders and files located in the `assets` directory of a WhatsApp sticker project.

License

Notifications You must be signed in to change notification settings

yusufadji/whatsapp-sticker-json-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WhatsApp Sticker Content JSON Generator

GitHub license Platform Version Stargazers Forks

Easily automate the creation and updating of contents.json for WhatsApp stickers! This tool scans the assets directory of your WhatsApp sticker project and generates the necessary JSON file, saving you time and effort.

🚀 Features

  • Auto-Generate contents.json – No manual edits required!
  • Cross-Platform Support – Works on both Windows and Linux.
  • Simple & Efficient – Just update a few variables and run the script.
  • Folder-Based Organization – Automatically detects sticker packs inside assets.

📌 Supported Platforms

  • Windowsgenerate-content-json.bat
  • Linuxgenerate-content-json.sh (tested and verified)

Note: The Windows script is not tested yet.


🔧 Getting Started

Prerequisites

Windows

Ensure jq is installed:

  • Using Chocolatey:
    choco install jq
  • Using Scoop:
    scoop install jq
  • Manual Installation: Download from the official jq website and add it to your system's PATH.

Linux

Install jq via package manager:

sudo apt-get install jq  # Debian/Ubuntu
sudo yum install jq      # CentOS/RHEL
sudo dnf install jq      # Fedora

Ensure execution permissions for the script:

chmod +x generate-content-json.sh

📥 Installation

  1. Clone the repository:
    git clone https://github.com/yusufadji/whatsapp-sticker-json-generator.git
    cd whatsapp-sticker-json-generator
  2. Place your sticker files in the assets folder.

▶️ Usage

Linux

  1. Open generate-content-json.sh in a text editor and modify the [MODIFY THIS] variables.
  2. Run:
    ./generate-content-json.sh

Windows

  1. Open generate-content-json.bat and modify the REM [MODIFY THIS] variables.
  2. Double-click generate-content-json.bat to execute.

📂 Example Folder Structure

Organize your project like this:

project-root/
│
├── assets/
│   ├── sticker_pack_1/
│   │   ├── sticker1.png
│   │   ├── sticker2.png
│   │   └── tray.png
│   ├── sticker_pack_2/
│   │   ├── sticker1.png
│   │   └── tray.png
├── generate-content-json.bat
└── generate-content-json.sh

📌 Development Status

  • Linux script is fully functional
  • 🚧 Windows script is not tested yet
  • 🚀 Future updates planned!

🤝 Contributing

Want to improve this tool? Feel free to submit pull requests or report issues!

📜 License

This project is licensed under the MIT License – see the LICENSE file for details.


💡 Make your WhatsApp sticker management effortless! Give this project a ⭐ on GitHub!

About

This project provides a simple solution to automatically create and update the `contents.json` file for WhatsApp stickers by scanning folders and files located in the `assets` directory of a WhatsApp sticker project.

Topics

Resources

License

Stars

Watchers

Forks