How to update my own theme from my own server?

Đã có trọn bộ đề thi thử THPT Quốc Gia 2022 các môn: vip.dethihsg247.com
QUẢNG CÁO: Đổi thẻ cào thành tiền mặt min rút 10k tại đây

I’ve been working on my own WordPress Theme, very simple stuff and it’s working as expected. But i’d like to release new versions of my theme and send it to my own server to be able to update it on the WordPress dashboard just like I do with plugins or other themes (like when I buy from themeforest).

Why I’m developing my own theme?

I have a web agency and I have many clients. For each client I develop their own theme, this way I’m not using those “All purpouse theme” that loads unecessary stuff. Also I can create things the way I want.

So I have my own website, that I’m using to host all my clients themes zip files, for example, on this folder here https://example.com/assets/themes I have many .zip files:

What I want is to upload a new zip file, let’s say first-client-1.2.0.zip to my own website folder, and then I go to https://firstclient.com/wp-admin and update the theme there.

On my development environment, I’m using Grunt to automate all this process, where I’ll compile sass and js files, bundle everything, zip the theme and send it to my own server, ex.: https://example.com/assets/themes/first-client-1.2.0.zip.

But when I go to my client website dashboard, I’m not seeing the theme with the new version to be updated. What do I need to do? Do I need to create a new function under functions.php to check for updates?

I already tried to change the versions on the readme.txt and also on the style.css comments, wich is used to gather theme information displayed on the theme section of wordpress.

This is what the style.css file looks like:

Any ideas?

Xin chào các bạn và quý Thầy Cô. Hãy nhập từ khóa mình muốn vào ô tìm kiếm trên Website để tìm kiếm mọi thứ hoặc trên google các bạn hãy nhập từ khóa + dethihsg247.com để tìm kiếm các bài viết của chúng tôi nhé.
  • Hiện tại chúng tôi có hơn 25 nghìn bài văn mẫu các thể loại.
  • Kho tài liệu, đề thi học sinh giỏi các lớp vô cùng phong phú.
  • Mỗi ngày cập nhật hơn 100 đề thi chất lượng từ các website bán tài liệu lớn.

Tải đề thi VIP với giá siêu rẻ tại Vip.Dethihsg247.Com