Prerequisites
Refractor requires the Dart SDK version 3.10.0 or later.Check your Dart version
Verify that you have Dart installed:You should see output like:
If you don’t have Dart installed or need to upgrade, visit the official Dart installation guide.
Install Refractor globally
Install Refractor from the GitHub repository:This installs the
refractor command globally on your system.The installation may take a few minutes as it compiles the tool and its dependencies.
Shell Completion (Optional)
Refractor supports shell completion for bash and zsh. To enable it:Updating Refractor
To update Refractor to the latest version:Uninstalling Refractor
To remove Refractor from your system:Troubleshooting
Command not found: refractor
Command not found: refractor
If you get a “command not found” error, ensure that Dart’s global bin directory is in your PATH:Then restart your terminal or run
source ~/.bashrc (or ~/.zshrc).Dart SDK version error
Dart SDK version error
If you see an error about SDK constraints:Update your Dart SDK to version 3.10.0 or later.
Installation takes too long
Installation takes too long
The initial installation compiles Refractor from source, which includes:
- Dart kernel manipulation libraries
- CLI dependencies
- Code generation for configuration
Next Steps
Quickstart
Get started with your first obfuscated build
Commands
Explore all available commands and options
Configuration
Learn how to configure obfuscation passes
Obfuscation Passes
Understand rename, string encryption, and dead code injection