Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Void edited this page Jul 8, 2025 · 19 revisions

📽️ Building Discord-Netflix

This guide explains how to build Discord-Netflix from source on Windows, Linux, and macOS.

⚠️ Before starting, ensure you meet the following requirements:

✅ Requirements

  • Node.js (v7.0.0 or higher)
  • Git (recent version recommended)
  • Python (v3.9.0 or higher)
  • Docker (for Linux build only)
  • 7-Zip (recommended for Windows builds)

🪟 Building on Windows

  1. Open CMD or PowerShell inside the project folder:

    cd "%USERPROFILE%\Projects\discord-netflix-master"
    
  2. Install dependencies:

    npm i
    
  3. Build the project:

    npm run winbuild
    

    This will:

    • Build the app for Windows.
    • Create a portable folder and web installer.
    • Zip the build using 7-Zip.
  4. Built files will appear in the dist folder:

    • win-ia32-unpacked/: Standalone app files.
    • nsis-web/: Installer and zipped archive.

🔐 ECS Signature (Required for Windows)

To play Netflix content, the app must be signed using CastLabs ECS (Electron Content Security). Without this, you’ll receive a "cannot play media" error.

Use the following command to sign your package:

py -m castlabs_evs.vmp sign-pkg --persistent dist\win-ia32-unpacked

More ECS info: castlabs/electron-releases/wiki/EVS


🐧 Building on Linux (via Docker on Windows)

Because npm run linbuild no longer works (due to a downed service), you’ll need to use Docker.

  1. Pull the Docker image:

    docker pull electronuserland/builder
    
  2. Run the build container:

    docker run --rm -ti -v "%USERPROFILE%\Projects\discord-netflix-master":/project -w /project electronuserland/builder
    
  3. Inside the container, run:

    yarn upgrade
    yarn global add electron-builder
    npm run linbuild
    
  4. The Linux .AppImage will appear in the dist folder.

✅ No ECS signature is required for Linux builds.


🍎 Building on macOS

Building on macOS is similar to Windows but requires:

  • A macOS system (physical or VM)
  • ECS signing (like Windows)
  • Node.js, Git, Python 3.9+, and 7-Zip (optional)

If you don’t have a Mac, consider setting up a macOS VM. A helpful tutorial is available here: macOS VM Guide (YouTube)

Build steps

  1. Open Terminal in your project directory.
  2. Install dependencies:
    npm i
    
  3. Build the app:
    npm run macbuild
    
  4. Sign the output using ECS:
    python3 -m castlabs_evs.vmp sign-pkg --persistent /path/to/file
    

📦 Additional Options

  • Arch Linux users: An AUR package is available, maintained by 0xGingi.

🆘 Help & Support

If you encounter any issues or need help:

Clone this wiki locally