Feishu2HTML provides native Windows executable support, allowing you to run the converter directly on Windows without JVM or Node.js.
- Windows: 10 or higher (64-bit)
- No additional dependencies required (standalone executable)
Download the Windows x64 binary from the latest release:
Using PowerShell:
# Download Windows x64 binary
Invoke-WebRequest -Uri "https://github.com/yidafu/feishu2html/releases/latest/download/feishu2html-1.0.2-mingwX64.zip" -OutFile "feishu2html.zip"
# Extract
Expand-Archive -Path feishu2html.zip -DestinationPath .
# feishu2html.exe is now ready to useUsing Browser:
- Go to Releases page
- Download
feishu2html-1.0.2-mingwX64.zip - Extract the ZIP file
- Run
feishu2html.exe
To run from anywhere:
- Right-click "This PC" → Properties
- Advanced system settings → Environment Variables
- Under "System variables", select "Path" → Edit
- Add the directory containing
feishu2html.exe - Click OK and restart terminal
# Export a single document
.\feishu2html.exe <app_id> <app_secret> <document_id>
# Export multiple documents
.\feishu2html.exe <app_id> <app_secret> <doc_id_1> <doc_id_2> <doc_id_3>
# If added to PATH
feishu2html <app_id> <app_secret> <document_id># Using local executable
.\feishu2html.exe `
cli_a1234567890abcde `
your_app_secret_here `
doxcnABC123XYZ456
# If added to PATH
feishu2html `
cli_a1234567890abcde `
your_app_secret_here `
doxcnABC123XYZ456# Add to user PATH (PowerShell)
$env:Path += ";$PWD\build\bin\mingwX64\releaseExecutable"
# Or add permanently via System Properties > Environment Variables
# Add: C:\path\to\feishu2html\build\bin\mingwX64\releaseExecutable
# Then run from anywhere
feishu2html.exe <app_id> <app_secret> <document_id># 1. Build the executable
.\gradlew.bat linkReleaseExecutableMingwX64
# 2. Check the file exists
dir build\bin\mingwX64\releaseExecutable\feishu2html.exe
# 3. Run without arguments (should show help)
.\build\bin\mingwX64\releaseExecutable\feishu2html.exe
# 4. Test with real credentials
.\build\bin\mingwX64\releaseExecutable\feishu2html.exe `
<your_app_id> `
<your_app_secret> `
<your_document_id>Feishu2HTML application started
Received 3 command line arguments
============================================================
Feishu Document to HTML Converter (Windows)
============================================================
App ID: cli_...
Documents to export: 1
============================================================
Initializing Feishu2Html with output directory: .\output
Starting document export process
Exporting single document: doxcn...
...
============================================================
Export completed!
Output directory: .\output
============================================================
Feishu2HTML application terminated
| Command | Description | Output Path |
|---|---|---|
linkReleaseExecutableMingwX64 |
Build release | build\bin\mingwX64\releaseExecutable\feishu2html.exe |
linkDebugExecutableMingwX64 |
Build debug | build\bin\mingwX64\debugExecutable\feishu2html.exe |
project\
└── build\
└── bin\
└── mingwX64\
├── releaseExecutable\
│ └── feishu2html.exe # Windows release binary
└── debugExecutable\
└── feishu2html.exe # Windows debug binary
Error: Could not find MinGW-w64 installation
Solution:
- Install MSYS2 from https://www.msys2.org/
- Install MinGW-w64:
pacman -S mingw-w64-x86_64-gcc - Add to PATH:
C:\msys64\mingw64\bin
Error: The code execution cannot proceed because XXX.dll was not found
Solution: Copy required DLLs from MinGW to executable directory:
# Copy MinGW runtime DLLs
copy C:\msys64\mingw64\bin\*.dll build\bin\mingwX64\releaseExecutable\Common required DLLs:
libgcc_s_seh-1.dlllibstdc++-6.dlllibwinpthread-1.dll
Error: Various linker errors during build
Solution:
# Clean and rebuild
./gradlew clean
./gradlew linkReleaseExecutableMingwX64Some antivirus software may flag the executable. Add an exception if needed.
Native Windows executables offer:
- Fast Startup: Instant startup vs 2-3s for JVM
- Low Memory: ~60MB vs 200-300MB for JVM
- Native Speed: Compiled to x64 machine code
- Small Binary: ~15-20MB executable
You can also build and run the Linux version in WSL:
# In WSL terminal
./gradlew linkReleaseExecutableLinuxX64
./build/bin/linuxX64/releaseExecutable/feishu2html.kexe <args># Create distribution folder
mkdir feishu2html-portable
copy build\bin\mingwX64\releaseExecutable\feishu2html.exe feishu2html-portable\
copy C:\msys64\mingw64\bin\libgcc_s_seh-1.dll feishu2html-portable\
copy C:\msys64\mingw64\bin\libstdc++-6.dll feishu2html-portable\
copy C:\msys64\mingw64\bin\libwinpthread-1.dll feishu2html-portable\
# Distribute the folder
# Users can run feishu2html.exe without installationYou can create an installer using tools like:
- Inno Setup: Free installer creator
- WiX Toolset: MSI installer builder
- NSIS: Nullsoft Scriptable Install System
- name: Build Windows Executable
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '17'
- name: Setup MSYS2
uses: msys2/setup-msys2@v2
with:
msystem: MINGW64
update: true
install: mingw-w64-x86_64-gcc
- name: Build
run: .\gradlew.bat linkReleaseExecutableMingwX64
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: feishu2html-windows
path: build\bin\mingwX64\releaseExecutable\feishu2html.exe- JVM Usage Guide - Full-featured JVM platform
- Node.js Usage Guide - JavaScript/Node.js usage
- macOS Usage Guide - macOS native executable
- Linux Usage Guide - Linux native executable
- API Documentation
The Windows native executable provides a lightweight alternative to JVM or Node.js. Ideal for Windows automation, batch scripts, and integration with native Windows applications.