How to build FrostWire on Windows

This guide will teach you how to build FrostWire on a Windows computer, assuming you have none of the requirements to build it and you don’t want to spend any money on development tools.

To build FrostWire, you will need the source
1. Download and install the Java SE Development Kit for x86
(our binary dependencies are 32-bit to maximize compatibility and we don’t distribute multiple builds)

2. Download and install IntelliJ CE

3. Download and install Git

4. Open the git console and clone the frostwire repository to your computer:

git clone https://github.com/frostwire/frostwire

Inside the new “frostwire” folder you will have all the necessary code to build both FrostWire Desktop and FrostWire Android.

5. Download and install gradle

This step means downloading a .zip file from the gradle website, and unzipping it on a folder of your preference in your computer. We recommend that you use the “Git Bash” program to do all the work, and that you unzip the gradle folder inside:

/c/Users/yourUserName/bin/

so you will end up with your gradle executable at:

/c/Users/yourUserName/bin/gradle-2.11/bin

Make sure you will have that path on your $PATH variable. To do this, create a “.bashrc” file inside /c/Users/yourUserName/

My ~/.bashrc looks like this:

Screen Shot 2016-02-20 at 9.02.43 AM

6. Set your JAVA_HOME variable.

Now that you have a .bashrc file, let’s add there a JAVA_HOME variable. It must point to the path of your Java Development Kit’s folder (JDK)

On my default JDK installation my JAVA_HOME is
“/c/Program Files (x86)::/Java/jdk1.8.0_74”

Your .bashrc should look like below.

Screen Shot 2016-02-20 at 3.53.27 PM

 

Don’t forget to reload the .bashrc into the environment do so with
source .bashrc

 

BUILDING FROSTWIRE FOR DESKTOP

Change directories into the “frostwire” cloned code repo, and type

gradle build

Screen Shot 2016-02-20 at 9.30.38 AM

now that it’s built, go into the “desktop” folder and execute the run script.

cd desktop

./run.bat

Screen Shot 2016-02-20 at 3.56.36 PM

 

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s