mirror of https://github.com/lxndrblz/anatole.git

Alexander Bilz
19.27.2022 c4ac344e662445ea9f9752f7822b3d8bcb9f3cf0
feat: added windows release target

2 files modified
12 ■■■■ changed files
.gitignore 2 ●●●●● patch | view | raw | blame | history
Makefile 10 ●●●● patch | view | raw | blame | history
.gitignore
@@ -6,3 +6,5 @@
/node_modules
.devcontainer
**/_gen/**
exampleSite/public/
exampleSite/resources/
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
    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"