-
Notifications
You must be signed in to change notification settings - Fork 23
Build it yourself
This wiki explains how you can build the app installers yourself or start the app without using any installers from the release page.
- Git
- Node.js
- Python 3.6 (Windows only)
-
Clone the repository
git clone https://github.com/klayveR/xenontrade.git
-
Install dependencies
npm install
-
(optional) You can now create the executable dependencies found in
src/resource/executables
-
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.
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.
-
Install
pyinstaller
andwin32gui
for Python 3.6
py -3.6 -m pip install pyinstaller
py -3.6 -m pip install win32gui
-
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
-
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 thedist
directory in the Python script directory. -
Copy the executables you created into the
src/resource/executables
directory
-
Clone the repository
git clone https://github.com/klayveR/xenontrade.git
-
Install dependencies
npm install
-
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.