This is a module of Bearsampp project involving ngrok.
https://bearsampp.com/module/ngrok
This project uses Gradle for building and packaging releases.
- Java 8 or higher
- Gradle (or use the Gradle wrapper if available)
- 7-Zip (optional, for
.7zformat; falls back to.zipif not available)
# List all available tasks
gradle tasks
# Build a specific version interactively
gradle release
# Build a specific version non-interactively
gradle release -PbundleVersion=3.19.1
# Build all available versions
gradle releaseAll
# Display build information
gradle info
# Verify build environment
gradle verify
# List available local versions
gradle listVersions
# List available remote releases
gradle listReleases
# Clean build artifacts
gradle cleanEdit build.properties to configure the build:
bundle.name = ngrok
bundle.release = YYYY.MM.DD
bundle.type = tools
bundle.format = 7z- Version Detection: Gradle scans the
bin/directory for folders matchingbin/ngrok<version>(e.g.,bin/ngrok3.19.1) - Binary Download: If
ngrok.exeis not present locally, it's downloaded from the modules-untouched repository - Staging: Files are staged in
bearsampp-build/tmp/bundles_prep/tools/ngrok/ - Packaging: The final archive is created in
bearsampp-build/tools/ngrok/<release>/with hash files (MD5, SHA1, SHA256, SHA512)
Archives are created with the naming pattern:
bearsampp-ngrok-<version>-<release>.<format>
For example: bearsampp-ngrok-3.19.1-2025.02.16.7z
Override download URL:
gradle release -PbundleVersion=3.19.1 -PngrokUrl=https://example.com/ngrok.exe
# or set environment variable
set NGROK_DOWNLOAD_URL=https://example.com/ngrok.exeUse local ngrok.exe:
gradle release -PbundleVersion=3.19.1 -PngrokLocalExe=C:/path/to/ngrok.exe
# or set environment variable
set NGROK_EXE_PATH=C:/path/to/ngrok.exeCustom build path:
# In build.properties
build.path = C:/custom-build-path
# or set environment variable
set BEARSAMPP_BUILD_PATH=C:/custom-build-pathFor detailed documentation, see the .gradle-docs directory.
Issues must be reported on Bearsampp repository.