forked from WG-Forge/Team-Segfault
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update regarding generated binaries option
Moved asset folder to project directory. Changed the file paths to absolute file paths. Added icon file. Added scripts to generate binaries using pyinstaller.
- Loading branch information
1 parent
6fee9ed
commit b229325
Showing
39 changed files
with
90 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ __pycache__/ | |
|
||
# Distribution / packaging | ||
.Python | ||
output/ | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
|
Empty file.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@echo off | ||
REM Check if PowerShell script exists | ||
if not exist generate_binaries.ps1 ( | ||
echo generate_binaries.ps1 does not exist. | ||
exit /b 1 | ||
) | ||
|
||
REM Run the PowerShell script | ||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File generate_binaries.ps1 | ||
|
||
REM Check if the PowerShell script ran successfully | ||
if %errorlevel% neq 0 ( | ||
echo PowerShell script generate_binaries.ps1 failed. | ||
exit /b 1 | ||
) | ||
|
||
echo PowerShell script generate_binaries.ps1 ran successfully. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Display menu options | ||
Write-Host "Select an option:" | ||
Write-Host "1. Run command for One Directory" | ||
Write-Host "2. Run command for One File" | ||
|
||
# Read user input | ||
$userChoice = Read-Host "Enter your choice (1 or 2)" | ||
|
||
# Process user choice | ||
switch ($userChoice) | ||
{ | ||
1 { | ||
pyinstaller --noconfirm --onedir --console --icon "C:\Users\xparh\OneDrive\Desktop\Team-Segfault\icon.ico" --name "team_segfault" --optimize "2" --add-data "C:\Users\xparh\OneDrive\Desktop\Team-Segfault\assets;assets/" --add-data "C:\Users\xparh\OneDrive\Desktop\Team-Segfault\mab\data\server_data;mab/data/server_data/" --add-data "C:\Users\xparh\OneDrive\Desktop\Team-Segfault\mab\data\training_data;mab/data/training_data/" "C:\Users\xparh\OneDrive\Desktop\Team-Segfault\main.py" | ||
} | ||
2 { | ||
pyinstaller --noconfirm --onefile --console --icon "C:\Users\xparh\OneDrive\Desktop\Team-Segfault\icon.ico" --name "team_segfault" --optimize "2" --add-data "C:\Users\xparh\OneDrive\Desktop\Team-Segfault\assets;assets/" --add-data "C:\Users\xparh\OneDrive\Desktop\Team-Segfault\mab\data\server_data;mab/data/server_data/" --add-data "C:\Users\xparh\OneDrive\Desktop\Team-Segfault\mab\data\training_data;mab/data/training_data/" "C:\Users\xparh\OneDrive\Desktop\Team-Segfault\main.py" | ||
} | ||
default { | ||
Write-Host "Invalid choice. Please enter 1 or 2." | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters