diff --git a/.github/workflows/script-kcl.yml b/.github/workflows/script-kcl.yml index aa0578bbc..72baf7676 100644 --- a/.github/workflows/script-kcl.yml +++ b/.github/workflows/script-kcl.yml @@ -65,6 +65,16 @@ jobs: - name: Check KCL run run: C:\kclvm\bin\kcl.exe hello.k && C:\kclvm\bin\kcl.exe hello.k --target native + - name: Check Scoop Install + shell: powershell + run: | + iwr -useb get.scoop.sh -outfile 'install.ps1' + .\install.ps1 -RunAsAdmin + scoop bucket add kcl-lang https://github.com/kcl-lang/scoop-bucket.git + scoop install kcl-lang/kclvm + kcl.exe hello.k + kcl.exe hello.k --target native + - name: Set up Go uses: actions/setup-go@v2 with: @@ -81,8 +91,6 @@ jobs: - name: Check Go Installation run: go install kusionstack.io/kclvm-go/cmds/kcl-go@main && C:\Users\runneradmin\go\bin\kcl-go.exe run hello.k - - check-kcl-brew-install: strategy: matrix: diff --git a/docs/user_docs/getting-started/install.md b/docs/user_docs/getting-started/install.md index e79ef049a..ae5ed68ea 100644 --- a/docs/user_docs/getting-started/install.md +++ b/docs/user_docs/getting-started/install.md @@ -54,6 +54,15 @@ powershell -Command "iwr -useb https://kcl-lang.io/script/install.ps1 | iex" brew install kcl-lang/tap/kclvm ``` +### Scoop (Windows) + +Install [Scoop](https://scoop.sh/) first, then add this bucket and install `kcl` by running: + +```bash +scoop bucket add kcl-lang https://github.com/kcl-lang/scoop-bucket.git +scoop install kcl-lang/kclvm +``` + ### From Python3 Install `kcl` through the `python3` and `pip` (`python3` requires 3.7.3+). diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/current/user_docs/getting-started/install.md b/i18n/zh-CN/docusaurus-plugin-content-docs/current/user_docs/getting-started/install.md index d10dcb573..20d9040a2 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/current/user_docs/getting-started/install.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/current/user_docs/getting-started/install.md @@ -54,6 +54,15 @@ powershell -Command "iwr -useb https://kcl-lang.io/script/install.ps1 | iex" brew install kcl-lang/tap/kclvm ``` +### Scoop (Windows) + +首先安装 [Scoop](https://scoop.sh/), 然后通过如下命令安装 `kcl`: + +```bash +scoop bucket add kcl-lang https://github.com/kcl-lang/scoop-bucket.git +scoop install kcl-lang/kclvm +``` + ### 使用 Python3 安装 通过 `Python3` 和 `pip` 安装 `kcl` (Python3 要求 3.7.3+) diff --git a/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.4.5/user_docs/getting-started/install.md b/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.4.5/user_docs/getting-started/install.md index d10dcb573..20d9040a2 100644 --- a/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.4.5/user_docs/getting-started/install.md +++ b/i18n/zh-CN/docusaurus-plugin-content-docs/version-0.4.5/user_docs/getting-started/install.md @@ -54,6 +54,15 @@ powershell -Command "iwr -useb https://kcl-lang.io/script/install.ps1 | iex" brew install kcl-lang/tap/kclvm ``` +### Scoop (Windows) + +首先安装 [Scoop](https://scoop.sh/), 然后通过如下命令安装 `kcl`: + +```bash +scoop bucket add kcl-lang https://github.com/kcl-lang/scoop-bucket.git +scoop install kcl-lang/kclvm +``` + ### 使用 Python3 安装 通过 `Python3` 和 `pip` 安装 `kcl` (Python3 要求 3.7.3+) diff --git a/versioned_docs/version-0.4.5/user_docs/getting-started/install.md b/versioned_docs/version-0.4.5/user_docs/getting-started/install.md index e79ef049a..ae5ed68ea 100644 --- a/versioned_docs/version-0.4.5/user_docs/getting-started/install.md +++ b/versioned_docs/version-0.4.5/user_docs/getting-started/install.md @@ -54,6 +54,15 @@ powershell -Command "iwr -useb https://kcl-lang.io/script/install.ps1 | iex" brew install kcl-lang/tap/kclvm ``` +### Scoop (Windows) + +Install [Scoop](https://scoop.sh/) first, then add this bucket and install `kcl` by running: + +```bash +scoop bucket add kcl-lang https://github.com/kcl-lang/scoop-bucket.git +scoop install kcl-lang/kclvm +``` + ### From Python3 Install `kcl` through the `python3` and `pip` (`python3` requires 3.7.3+).