Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Bearsampp/module-ngrok

Open more actions menu

Repository files navigation

GitHub release Total downloads

This is a module of Bearsampp project involving ngrok.

Documentation and downloads

https://bearsampp.com/module/ngrok

Build

This project uses Gradle for building and packaging releases.

Requirements

  • Java 8 or higher
  • Gradle (or use the Gradle wrapper if available)
  • 7-Zip (optional, for .7z format; falls back to .zip if not available)

Quick Start

# 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 clean

Configuration

Edit build.properties to configure the build:

bundle.name = ngrok
bundle.release = YYYY.MM.DD
bundle.type = tools
bundle.format = 7z

How It Works

  1. Version Detection: Gradle scans the bin/ directory for folders matching bin/ngrok<version> (e.g., bin/ngrok3.19.1)
  2. Binary Download: If ngrok.exe is not present locally, it's downloaded from the modules-untouched repository
  3. Staging: Files are staged in bearsampp-build/tmp/bundles_prep/tools/ngrok/
  4. Packaging: The final archive is created in bearsampp-build/tools/ngrok/<release>/ with hash files (MD5, SHA1, SHA256, SHA512)

Output

Archives are created with the naming pattern:

bearsampp-ngrok-<version>-<release>.<format>

For example: bearsampp-ngrok-3.19.1-2025.02.16.7z

Advanced Options

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.exe

Use 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.exe

Custom build path:

# In build.properties
build.path = C:/custom-build-path
# or set environment variable
set BEARSAMPP_BUILD_PATH=C:/custom-build-path

Documentation

For detailed documentation, see the .gradle-docs directory.

Issues

Issues must be reported on Bearsampp repository.

Releases

Sponsor this project

Packages

Used by

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.