Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Build it yourself

Tobias Hoffmann edited this page Sep 5, 2018 · 13 revisions

This wiki explains how you can build the app installers yourself or start the app without using any installers from the release page.

Requirements

Windows

Instructions

  1. Clone the repository
    git clone https://github.com/klayveR/xenontrade.git

  2. Install dependencies
    npm install

  3. (optional) You can now create the executable dependencies found in src/resource/executables

  4. Build executable
    npm run dist-win

The executable will be created in the dist directory.

If you don't want to create an executable, you can simply run the app with npm start after cloning the repository.

Create executable dependencies

The Windows version of XenonTrade relies on the executables found in src/resource/executables. Those are Python scripts packaged into an executable. This is done so users don't have to install Python on their systems in order to run this app properly.

Please note that these executables can not be created on a Linux system, this process only works on Windows.

  1. Install pyinstaller and win32gui for Python 3.6
    py -3.6 -m pip install pyinstaller
    py -3.6 -m pip install win32gui

  2. Go into the Python 3.6 scripts directory (adjust path to match your installation)
    cd C:\Users\<user>\AppData\Local\Programs\Python\Python3.6\Scripts

  3. Create executables for each python script found in src/resource/python
    pyinstaller <path-to-focus-window-script>
    pyinstaller <path-to-window-change-listener-script>
    The executables will be created in the dist directory in the Python script directory.

  4. Copy the executables you created into the src/resource/executables directory

Linux

Instructions

  1. Clone the repository
    git clone https://github.com/klayveR/xenontrade.git

  2. Install dependencies
    npm install

  3. Build executables
    npm run dist

The executables will be created in the dist directory. You can change targets by editing the build.linux.target property in package.json.

If you don't want to create an executable, you can simply run the app with npm start after cloning the repository.

Clone this wiki locally