File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -22,3 +22,5 @@ content/docs/tools/pack/cli/pack*
22
22
# Tools
23
23
/bin
24
24
/tmp
25
+
26
+ /tools /bin
Original file line number Diff line number Diff line change @@ -29,7 +29,17 @@ clean:
29
29
.PHONY : install-hugo
30
30
install-hugo :
31
31
@echo " > Installing hugo..."
32
- cd tools; go install -mod=mod --tags extended github.com/gohugoio/hugo
32
+ @echo " This may take a while depending on your connection."
33
+ ifeq ($(OS ) ,Windows_NT)
34
+ @echo $(shell uname -s)
35
+ cd tools; mkdir bin; cd bin; curl -L -O $(shell curl https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r '.assets[30].browser_download_url')
36
+
37
+ else
38
+ @echo $(shell uname -s)
39
+ cd tools; mkdir bin; cd bin; curl -L -O $(shell curl https://api.github.com/repos/gohugoio/hugo/releases/latest | jq -r '.assets[26].browser_download_url')
40
+ endif
41
+
42
+
33
43
34
44
.PHONY : upgrade-pack
35
45
upgrade-pack : pack-version
You can’t perform that action at this time.
0 commit comments