forked from apockill/uArmCreatorStudio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Build.bat
44 lines (22 loc) · 1.25 KB
/
Build.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
33
34
35
36
37
38
39
40
41
42
43
44
REM Get the PyInstaller path
set PYINSTALLER=C:\Python34\Scripts\pyinstaller.exe
REM Create the executable
REM python %PIP%Makespec.py --onefile --noconsole --upx --name "uArmCreatorStudio" uArmCreatorStudio.spec
%PYINSTALLER% --onefile Build.spec
REM Check if the build finished, if it did, delete "Latest Build" before renaming "dist"
if exist "dist/uArmCreatorStudio.exe" RD /S /Q "Latest Build"
REM Rename dist to Latest Build
rename "dist" "Latest Build"
REM Delete the 'build' folder after building
RD /S /Q build
REM Delete the '__pycache__' folder after building
RD /S /Q "__pycache__"
REM Create a folder for storing the uArm's communication protocol
mkdir "Latest Build\Upload This To Your uArm"
REM Copy the communication protocol to this folder
REM xcopy /isvy "F:\Google Drive\Projects\Arduino Code\uArmCommunicationProtocol_1" "Latest Build\Upload This To Your uArm\uArmCommunicationProtocol_1"
REM Create the "Import Libraries" folder
REM mkdir "Latest Build\Upload This To Your uArm\Libraries To Import"
REM Copy the uArm library to the "Import Libraries" Folder
REM xcopy /isvy "F:\Google Drive\Projects\Arduino Code\libraries\UArmForArduino-1.6.0" "Latest Build\Upload This To Your uArm\Libraries To Import\UArmForArduino-1.6.0"
PAUSE