-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ea8569
commit 12a27a2
Showing
7 changed files
with
779 additions
and
10 deletions.
There are no files selected for viewing
674 changes: 674 additions & 0 deletions
674
NEW Tools/Satellite Reign/Satellite_Reign_Text_Tool/data/LICENSE
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
2 changes: 2 additions & 0 deletions
2
NEW Tools/Satellite Reign/Satellite_Reign_Text_Tool/data/readme.txt
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,2 @@ | ||
Program created by Bartlomiej Duda (Ikskoks) | ||
https://github.com/bartlomiejduda |
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
20 changes: 20 additions & 0 deletions
20
NEW Tools/Satellite Reign/Satellite_Reign_Text_Tool/make_exe.bat
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,20 @@ | ||
|
||
:: BAT script for making exe file | ||
:: Created by Bartlomiej Duda | ||
|
||
|
||
@ECHO OFF | ||
if exist dist (rd /s /q dist) | ||
if exist build (rd /s /q build) | ||
|
||
|
||
echo Activating venv... | ||
CALL .\venv\Scripts\activate.bat | ||
|
||
echo Executing cxfreeze... | ||
python setup.py build build_exe | ||
|
||
|
||
if exist __pycache__ (rd /s /q __pycache__) | ||
|
||
echo BUILD SUCCESSFUL! |
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ black==22.3.0 | |
mypy==0.931 | ||
pylint==2.12.2 | ||
pytest==7.0.1 | ||
xmltodict==0.13.0 | ||
xmltodict==0.13.0 | ||
cx-Freeze==6.10 |
37 changes: 37 additions & 0 deletions
37
NEW Tools/Satellite Reign/Satellite_Reign_Text_Tool/setup.py
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,37 @@ | ||
import sys | ||
from cx_Freeze import setup, Executable | ||
from main import VERSION_NUM, EXE_FILE_NAME, PROGRAM_NAME | ||
|
||
base = None | ||
if sys.platform == "win32": | ||
base = "Console" | ||
|
||
|
||
executables = [ | ||
Executable( | ||
"main.py", | ||
copyright="Copyright (C) 2022 Bartlomiej Duda", | ||
base=base, | ||
icon="data/icon_bd.ico", | ||
target_name=EXE_FILE_NAME | ||
) | ||
] | ||
|
||
build_exe_options: dict = { | ||
"packages": [], | ||
'includes': [], | ||
"excludes": ["tkinter", "PIL", "PyQt4", "PyQt5"], | ||
'include_files': ['data/LICENSE', 'data/readme.txt'], | ||
} | ||
|
||
options: dict = { | ||
'build_exe': build_exe_options | ||
} | ||
|
||
setup( | ||
name=PROGRAM_NAME, | ||
version=VERSION_NUM[1:], | ||
description="Tool for modding Satellite Reign", | ||
options=options, | ||
executables=executables, | ||
) |