Skip to content

Commit

Permalink
feat: added windows release target
Browse files Browse the repository at this point in the history
  • Loading branch information
lxndrblz committed Feb 19, 2022
1 parent b6c506e commit c4ac344
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ demo/
/node_modules
.devcontainer
**/_gen/**
exampleSite/public/
exampleSite/resources/
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
HUGO_BIN=hugo

.PHONY: build demo release

.PHONY: build demo release release_windows

build:
$(HUGO_BIN) --themesDir=../.. --source=exampleSite
Expand All @@ -9,4 +10,9 @@ demo:
$(HUGO_BIN) server -D --themesDir=../.. --source=exampleSite

release: build
rm -rf ./resources && cp -r ./exampleSite/resources ./resources
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"

0 comments on commit c4ac344

Please sign in to comment.