From 2668a6f83a33566181a70af084bf42a0ba73a565 Mon Sep 17 00:00:00 2001 From: "Chris S." Date: Thu, 3 Dec 2026 11:46:27 +0000 Subject: [PATCH] feat: add Scoop package manager support for Windows --- .github/workflows/post-publish.yml | 42 +++++++++++++++++++++++++++++- README.md | 9 +++++++ bucket/cryptomator-cli.json | 26 ++++++++++++++++++ 3 files changed, 76 insertions(+), 1 deletion(-) create mode 100644 bucket/cryptomator-cli.json diff --git a/.github/workflows/post-publish.yml b/.github/workflows/post-publish.yml index fb2d021..d6d48ea 100644 --- a/.github/workflows/post-publish.yml +++ b/.github/workflows/post-publish.yml @@ -35,4 +35,44 @@ jobs: fail_on_unmatched_files: true token: ${{ secrets.CRYPTOBOT_RELEASE_TOKEN }} files: | - ${{ env.ARCHIVE_NAME }}.asc \ No newline at end of file + ${{ env.ARCHIVE_NAME }}.asc + + update-scoop-manifest: + name: Update Scoop manifest + runs-on: ubuntu-latest + if: ${{ !github.event.release.prerelease }} + steps: + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 #v4.3.1 + with: + ref: develop + token: ${{ secrets.CRYPTOBOT_RELEASE_TOKEN }} + - name: Download Windows zip and update Scoop manifest + env: + RELEASE_TAG: ${{ github.event.release.tag_name }} + run: | + set -euo pipefail + ASSET_NAME="cryptomator-cli-${RELEASE_TAG}-win-x64.zip" + DOWNLOAD_URL="https://github.com/cryptomator/cli/releases/download/${RELEASE_TAG}/${ASSET_NAME}" + curl --silent --show-error --fail --location "${DOWNLOAD_URL}" --output "${ASSET_NAME}" + SHA256=$(sha256sum "${ASSET_NAME}" | awk '{print $1}') + rm -f "${ASSET_NAME}" + jq --arg version "${RELEASE_TAG}" \ + --arg url "${DOWNLOAD_URL}" \ + --arg hash "${SHA256}" \ + '.version = $version | .architecture."64bit".url = $url | .architecture."64bit".hash = $hash' \ + bucket/cryptomator-cli.json > bucket/cryptomator-cli.json.tmp + mv bucket/cryptomator-cli.json.tmp bucket/cryptomator-cli.json + - name: Commit and push updated Scoop manifest + env: + RELEASE_TAG: ${{ github.event.release.tag_name }} + run: | + set -euo pipefail + if git diff --quiet bucket/cryptomator-cli.json; then + echo "Scoop manifest is already up to date." + exit 0 + fi + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git add bucket/cryptomator-cli.json + git commit -m "chore: update scoop manifest to ${RELEASE_TAG}" + git push origin develop diff --git a/README.md b/README.md index af77a40..4282fb8 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,15 @@ This is a minimal command-line application that unlocks a single vault of vault ## Download and Usage +### Windows (Scoop) + +```powershell +scoop bucket add cryptomator-cli https://github.com/cryptomator/cli +scoop install cryptomator-cli +``` + +### Manual Download + Download the zip file via [GitHub Releases](https://github.com/cryptomator/cli/releases) and unzip it to your desired directory, e.g. ```shell diff --git a/bucket/cryptomator-cli.json b/bucket/cryptomator-cli.json new file mode 100644 index 0000000..45902e9 --- /dev/null +++ b/bucket/cryptomator-cli.json @@ -0,0 +1,26 @@ +{ + "version": "0.6.2", + "description": "Minimal command-line application that unlocks and mounts Cryptomator vaults.", + "homepage": "https://github.com/cryptomator/cli", + "license": { + "identifier": "AGPL-3.0-only", + "url": "https://github.com/cryptomator/cli/blob/develop/LICENSE.txt" + }, + "architecture": { + "64bit": { + "url": "https://github.com/cryptomator/cli/releases/download/0.6.2/cryptomator-cli-0.6.2-win-x64.zip", + "hash": "52498fe6c0a02f76216fa801a1a114de064b4364702e51548585355fdf8b0a66" + } + }, + "extract_dir": "cryptomator-cli", + "bin": "cryptomator-cli.exe", + "notes": "For native filesystem mounting on Windows, install WinFsp (https://winfsp.dev/). Without WinFsp, you can use the WebDAV FallbackMounter.", + "checkver": "github", + "autoupdate": { + "architecture": { + "64bit": { + "url": "https://github.com/cryptomator/cli/releases/download/$version/cryptomator-cli-$version-win-x64.zip" + } + } + } +}