Skip to content

Commit 260c796

Browse files
Update Build Script
Made it so we no longer have to manually move the model files to maintain the file structure.
1 parent a751bf9 commit 260c796

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

BabbleApp/babbleapp.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ block_cipher = None
66
a = Analysis(['babbleapp.py'],
77
pathex=[],
88
binaries=[],
9-
datas=[("Audio/*", "Audio"), ("Images/*", "Images/"), ("Models/*/*/*", "Models/")],
9+
datas=[("Audio/*", "Audio"), ("Images/*", "Images/")],
1010
hiddenimports=[],
1111
hookspath=[],
1212
hooksconfig={},

scripts/build_app_and_installer.bat

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
:: File paths will all need to be updated to your setup
2+
3+
set babblepath=X:\Documents\GitHub\ProjectBabble
4+
set innopath="C:\Program Files (x86)\Inno Setup 6"
5+
6+
cd /d %babblepath%\BabbleApp
7+
pyinstaller babbleapp.spec --noconfirm
8+
:: Copy the Models directory + content into dist because I can't get pyinstaller to not flatten the file structure
9+
cd /d %babblepath%\BabbleApp\dist\Babble_App\Models
10+
robocopy %babblepath%\BabbleApp\Models %babblepath%\BabbleApp\dist\Babble_App\Models\ /E
11+
cd %babblepath%\BabbleApp\dist\Babble_App\Models
12+
rmdir /s /q dev
13+
14+
start /D %innopath% cmd /k ISCC %babblepath%\scripts\installer.iss

scripts/example_build_app_and_installer.bat

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)