Skip to content
Void edited this page Dec 11, 2021 · 17 revisions

Building Discord-Netflix

In detail there will be explained here how to build this project yourself and get it working. There are some requirements before you can continue as seen on our ReadMe you need:

Node.js (Version > 7.0.0)
Git (Version > Decently modern)
Python (Version > 3.9.0)
Docker (For Linux version)

It is also recommended you download 7zip when you build this project.

Before you can continue otherwise your build will fail, our package.json is already updated so you only will need to open CMD inside the folder of the project or just do the next cd C:\Users\username\Projects\discord-netflix-master make sure to change the username and path to the correct one.

Windows

After that do the next write: npm i and wait it should now download all the npm packages for you, then type npm run winbuild now it will build the application for you including the web installer and the zipped file using 7zip.

Now go to the dist folder, this is where all the files from the build are inside win-ia32-unpacked folder are all the files to run the program. Inside the nsis-web folder is the installer and the zipped project file.

The only thing left now is getting a ECS signature this is free and pretty much straight forward, you need to to play media inside Discord-Netflix otherwise you will receive the cannot play media error code from Netflix. More about ECS signing is here documented.

A more simple description for using ECS is listed below since it's quite advanched and reading through the wiki takes a lot of time, simply run the command py -m castlabs_evs.vmp sign-pkg --persistent path-to-file-here.

Linux

As you may notice npm run linbuild does not work unfortunately service.electron.build has been down for a year and it doesn't seem that such issue will be fixed anytime soon so we will use docker to build a redistributable Linux package on a Windows 10/11 environment.

First download the electronuserland/builder Docker image with the following console command: docker pull electronuserland/builder you can do this in CMD.

From the Electron project's root folder (such as C:\MyApp), type the following command-line command to run the container and map the Electron project's root folder to the /project virtual path: docker run --rm -ti -v C:\MyApp\:/project -w /project electronuserland/builder then From inside the container, type the following commands to upgrade the Electron project's Yarn packages, globally install the electron-builder package and build the Linux redistributable package: cd /project yarn upgrade yarn global add electron-builder npm run linbuild.

So far ECS is not required for the Linux version so you can skip that step unlike Windows.

The appimage version of Discord-Netflix should pop up in the directory, if you run into issues join the Discord server or open a issue.

Mac

Building on Mac is almost the same as on Windows you need a ECS certificate unlike Linux and you need to own a Mac device or use a virtual machine for Mac OS (hackintosh) being the first option the easiest, it is the most expensive option (if you don't have a Mac device ofcourse) this is why I will also include a link to a tutorial to get a virtual machine with Mac OS running, this is the best video so far that explained it for me, you can check it out here.

The building process is very fimilair to Windows it's setup process so I will not go to much into details, you need the same dependencies to make this work like Windows and building is quite easy just run the command npm run macbuild if you run into issues or need help just join the Discord server or open a issue, in addition you also need a ECS certificate for building the mac version you can do that by using the next command: python3 -m castlabs_evs.vmp sign-pkg --persistent file\path.

Clone this wiki locally