Guild icon
S3Drive
Community / general / Build rclone with v2 cipher
5:04 AM
Thought of giving more details to the Windows build steps. This assumes you have winget installed (it comes with Windows 11 and modern versions of Windows 10, if not, check this out: https://learn.microsoft.com/en-us/windows/package-manager/winget/) For PowerShell: # Install dependencies winget install Golang.Go WinFsp.WinFsp # After installing, restart PowerShell so that the environment variables are updated # Download source code git clone https://github.com/tomekit/rclone.git cd rclone git checkout v1.71.0-with-v2-cipher # Build rclone go run bin/resource_windows.go -version v1.71.0-with-v2-cipher -syso resource_windows_`go env GOARCH`.syso $env:CPATH = "C:\Program Files (x86)\WinFsp\inc\fuse" go build -v --ldflags "-s -X github.com/rclone/rclone/fs.Version=v1.71.0-with-v2-cipher" -tags "cmount" -buildmode exe On Command Prompt: # Install dependencies winget install Golang.Go WinFsp.WinFsp # After installing, restart Command Prompt so that the environment variables are updated # Download source code git clone https://github.com/tomekit/rclone.git cd rclone git checkout v1.71.0-with-v2-cipher # Build rclone go run bin/resource_windows.go -version v1.71.0-with-v2-cipher -syso resource_windows_`go env GOARCH`.syso SET CPATH=C:\Program Files (x86)\WinFsp\inc\fuse go build -v --ldflags "-s -X github.com/rclone/rclone/fs.Version=v1.71.0-with-v2-cipher" -tags "cmount" -buildmode exe
Isaac changed the channel name: Build rclone with v2 cipher 9/29/2025 5:04 AM
Avatar
Avatar
Isaac
Thought of giving more details to the Windows build steps. This assumes you have winget installed (it comes with Windows 11 and modern versions of Windows 10, if not, check this out: https://learn.microsoft.com/en-us/windows/package-manager/winget/) For PowerShell: # Install dependencies winget install Golang.Go WinFsp.WinFsp # After installing, restart PowerShell so that the environment variables are updated # Download source code git clone https://github.com/tomekit/rclone.git cd rclone git checkout v1.71.0-with-v2-cipher # Build rclone go run bin/resource_windows.go -version v1.71.0-with-v2-cipher -syso resource_windows_`go env GOARCH`.syso $env:CPATH = "C:\Program Files (x86)\WinFsp\inc\fuse" go build -v --ldflags "-s -X github.com/rclone/rclone/fs.Version=v1.71.0-with-v2-cipher" -tags "cmount" -buildmode exe On Command Prompt: # Install dependencies winget install Golang.Go WinFsp.WinFsp # After installing, restart Command Prompt so that the environment variables are updated # Download source code git clone https://github.com/tomekit/rclone.git cd rclone git checkout v1.71.0-with-v2-cipher # Build rclone go run bin/resource_windows.go -version v1.71.0-with-v2-cipher -syso resource_windows_`go env GOARCH`.syso SET CPATH=C:\Program Files (x86)\WinFsp\inc\fuse go build -v --ldflags "-s -X github.com/rclone/rclone/fs.Version=v1.71.0-with-v2-cipher" -tags "cmount" -buildmode exe
Oh cool, thanks! We've also recently added quick summary regarding building Rclone with V2 support: https://docs.s3drive.app/advanced/v2support/ We will update instructions adding the: winget install Golang.Go WinFsp.WinFsp step for Windows
Personal storage compatible with S3, WebDav and 70+ other Rclone back-ends
Avatar
The difference between the PowerShell and Command Prompt versions is setting the CPATH environment variable!
👍 1
Exported 5 message(s)
Timezone: UTC+0