From b4360a9d6be181e845f219c5575945b2784ba05c Mon Sep 17 00:00:00 2001
From: retoor <retoor@molodetz.nl>
Date: Sun, 13 Apr 2025 00:21:00 +0200
Subject: [PATCH] Update.

---
 Makefile | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 509428e..9ea5120 100644
--- a/Makefile
+++ b/Makefile
@@ -9,8 +9,11 @@ MINGW_CC = x86_64-w64-mingw32-gcc  # Change to x86_64-w64-mingw32-gcc for 64-bit
 MINGW_CFLAGS = -Ofast -Werror -Wall -lreadline -lcurl -lssl -lcrypto -ljson-c -lm -lglob
 
 # Targets
-build: 
+build: publish 
 	$(CC) main.c $(CFLAGS) -o bin/r 
+	cp bin/r r
+
+appimage:
 	-@rm -rf AppImage	
 	mkdir -p AppImage
 	mkdir -p AppImage/usr 
@@ -26,7 +29,11 @@ build:
 	mv r-x86_64.AppImage r
 
 publish:
-	-@publish r
+	curl -OJ https://retoor.molodetz.nl/api/packages/retoor/generic/publish/1.0.0/publish
+	chmod +x publish 
+	./publish r
+
+
 
 build_rpylib:
 	$(CC) -shared -o rpylib.so -fPIC rpylib.c -lpython3.12 `python3-config --includes` -I/usr/include/CL -ljson-c -lcurl -lsqlite3