Skip to content

Commit 88371a0

Browse files
committed
feat: use asdf to install latest gohugo, close #14
1 parent 964cfd8 commit 88371a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packageData.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,8 @@
482482
"Hugo": {
483483
"description": "靜態網站產生器",
484484
"install": {
485-
"linux": "sudo apt install hugo -y",
486-
"mac": "brew install hugo",
485+
"linux": "asdf plugin add hugo && HUGO_LATEST_VERSION=$(asdf list-all hugo | tail -1) && asdf install hugo extended_$HUGO_LATEST_VERSION && asdf global hugo extended_$HUGO_LATEST_VERSION",
486+
"mac": "asdf plugin add hugo && HUGO_LATEST_VERSION=$(asdf list-all hugo | tail -1) && asdf install hugo extended_$HUGO_LATEST_VERSION && asdf global hugo extended_$HUGO_LATEST_VERSION",
487487
"windows": "choco install hugo-extended -y"
488488
},
489489
"type": "enable"

0 commit comments

Comments
 (0)