This repository provides a cross-platform installer for croc, a tool for easily and securely sending files between computers. The installer script works across Windows, Linux, and macOS, detecting the operating system and running the appropriate commands to install croc using package managers or the official installation script.
- Detects the operating system (Windows, Linux, or macOS).
- Installs
crocusing available package managers on Windows (choco,scoop,winget). - Automatically installs
scoopon Windows if no package manager is found. - Runs the official
crocbash installation script on Linux and macOS. - One script for all environments (Bash or PowerShell).
If you're running a Linux or macOS system, or using a Bash shell (e.g., WSL or Git Bash on Windows), you can use one of the following commands to download and run the installer script:
wget -qO- bess.ai/croc | bash
curl -Ls bess.ai/croc | bashThis command will:
- Download the script directly from this repository.
- Pipe the script to the Bash interpreter to run it immediately.
If you're running PowerShell on Windows, you can use one of the following commands to download and run the installer script:
irm -Uri bess.ai/croc | iexiwr bess.ai/croc -UseBasicParsing | iexThis command will:
- Use
Invoke-WebRequestto download the script from this repository. - Pipe the content to
Invoke-Expressionto execute it immediately.
-
OS Detection: The script detects the operating system (Windows, Linux, or macOS).
-
Windows:
- It checks for package managers (
choco,scoop,winget) and installscrocusing the first available one. - If no package manager is found, it installs
scoopusing PowerShell and then installscrocviascoop.
- It checks for package managers (
-
Linux/macOS:
- It runs the official
crocbash installation script.
- It runs the official
/croc-installer
|-- install-croc.sh # Main installation script
|-- README.md # This documentation file
- Windows: PowerShell version 5.1 or newer, or a compatible Bash environment (e.g., Git Bash).
- Linux/macOS: A working Bash environment.
This project is licensed under the Apache 2.0 License. See the LICENSE file for details.
Contributions are welcome! If you find issues or have suggestions for improvements, please open an issue or submit a pull request.
This script is provided "as is" and without warranties. Use it at your own risk.
This repository is not affiliated with the official croc project. It only provides an installation method for the tool.