From c4ac344e662445ea9f9752f7822b3d8bcb9f3cf0 Mon Sep 17 00:00:00 2001 From: Alexander Bilz <mail@alexbilz.com> Date: Sat, 19 Feb 2022 15:27:48 +0000 Subject: [PATCH] feat: added windows release target --- .gitignore | 2 ++ Makefile | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 239da37..63215ae 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,5 @@ /node_modules .devcontainer **/_gen/** +exampleSite/public/ +exampleSite/resources/ diff --git a/Makefile b/Makefile index afcc30c..d2a1d33 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ HUGO_BIN=hugo -.PHONY: build demo release + +.PHONY: build demo release release_windows build: $(HUGO_BIN) --themesDir=../.. --source=exampleSite @@ -9,4 +10,9 @@ $(HUGO_BIN) server -D --themesDir=../.. --source=exampleSite release: build - rm -rf ./resources && cp -r ./exampleSite/resources ./resources \ No newline at end of file + rm -rf ./resources && cp -r ./exampleSite/resources ./resources + +release_windows: build + IF EXIST ".\resources" rmdir ".\resources" /S /Q + mkdir resources + xcopy /s ".\exampleSite/resources" "resources" \ No newline at end of file -- Gitblit v1.10.0