From 66de3159e9fef4c549a087114031e472a9574c96 Mon Sep 17 00:00:00 2001 From: shariq Date: Thu, 1 Jun 2017 00:48:23 +0500 Subject: [PATCH] Added make target to upload to itch --- build/linux/makefile | 6 ++++++ build/win_mingw64/makefile | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/build/linux/makefile b/build/linux/makefile index b42e90a..8372560 100644 --- a/build/linux/makefile +++ b/build/linux/makefile @@ -11,6 +11,7 @@ CFLAGS = -Wall -I$(INCLUDE_DIR) -DUSE_GLAD -std=c99 $(shell pkg-config CFLAGS_DEBUG = -g -DGL_DEBUG_CONTEXT -DAL_DEBUG CFLAGS_RELEASE = -O3 -ffast-math LFLAGS = $(shell pkg-config --libs sdl2 openal) -lm +ITCH_BUTLER = ~/.config/itch/bin/butler all: release @@ -59,6 +60,11 @@ dist: release -@chmod +x $(DIST_DIR)/$(PROJECT_NAME)/$(PROJECT_NAME) -@echo -e "\e[32mDONE creating distribution\e[0m" +upload_itch: dist + -@echo -e "\e[34mUploading Linux build to Itch\e[0m" + -@${ITCH_BUTLER} push ${DIST_DIR}/${PROJECT_NAME}/ bluerriq/symmetry:linux-prealpha + -@echo -e "\e[32mDONE uploading to Itch\e[0m" + clean: -@echo -e "\e[31m" -rm -f $(PROJECT_NAME) diff --git a/build/win_mingw64/makefile b/build/win_mingw64/makefile index 58310e8..d478f3f 100644 --- a/build/win_mingw64/makefile +++ b/build/win_mingw64/makefile @@ -10,6 +10,7 @@ CFLAGS = -Wall -I$(INCLUDE_DIR) -DUSE_GLAD -std=c99 -DCOLOURED_STDOUT CFLAGS_RELEASE = -O3 -ffast-math LFLAGS = $(shell mingw64-pkg-config --libs --static sdl2 openal) LIB_BINARY_DIR = $(patsubst -L%/lib,%/bin, $(shell mingw64-pkg-config --libs-only-L sdl2)) +ITCH_BUTLER = ~/.config/itch/bin/butler all: release @@ -43,6 +44,11 @@ dist: release -@cp OpenAL32.dll $(DIST_DIR)/$(PROJECT_DIST_NAME) -@echo -e "\e[32mDONE creating distribution\e[0m" +upload_itch: dist + -@echo -e "\e[34mUploading Windows build to Itch\e[0m" + -@${ITCH_BUTLER} push ${DIST_DIR}/${PROJECT_DIST_NAME}/ bluerriq/symmetry:windows-prealpha + -@echo -e "\e[32mDONE uploading to Itch\e[0m" + clean: -@echo -e "\e[31m" -rm -f $(PROJECT_NAME)