-
Notifications
You must be signed in to change notification settings - Fork 30
/
winbuild.bat
32 lines (23 loc) · 944 Bytes
/
winbuild.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@echo on
rem - this is a sample build script for building gui_tool MSI file under windows, it assumes the following:
rem - you already have a python.org python installed (at least 3.10) tested on 3.10.2
rem - you have a git checkout of [the correct] gui_tool [release] here
rem - how to use:
rem - step 1 - edit the script to change the PATH below to include your python 3.10 install directory
rem - step 2 - open a command prompt
rem - step 3 - run winbuild.bat in the gui_tool directory
rem NOTE: you need visual studio installed, with the C++ build tools
SET PATH=f:\WinPython;%PATH%
python --version
python -m pip install -U cx_Freeze
python -m pip install -U pymavlink
python -m pip install -U pywin32
python -m pip install -U python-can
python -m pip install -U .
rem show pip sizes for debug
python pip_sizes.py
rem make the .msi
python setup.py install
python setup.py bdist_msi
rem find the binary in 'dist' folder
dir dist