Skip to content

Commit

Permalink
chore: Update project configuration and add new features
Browse files Browse the repository at this point in the history
- Update project configuration for Emulator and Report Generator
- Add new features to projects
  • Loading branch information
eastanganelli committed Jul 9, 2024
1 parent f5baa03 commit 2f70b76
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions sources/Installer_Config/createInstaller.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ def databaseManagerConfigure() -> None:
os.remove(pathInstall + "/sqldrivers/qsqlite.dll")
os.remove(pathInstall + "/sqldrivers/qsqlmysqld.dll")

def emulatorConfigure() -> None:
pathProject: str = basePath + "/HoopTesting_Emulator/build/Desktop_Qt_" + qtVersion + "_" + compilerVersion + "_64bit-Release/release"
pathInstall: str = basePathInstall + "/Emulator"

try:
shutil.rmtree(pathInstall)
except:
pass
os.system("windeployqt.exe --dir " + '"' + pathInstall + '"' + " --no-translations --no-quick-import --compiler-runtime --no-virtualkeyboard --release " + '"' + pathProject + "/PLC_Emulator.exe" + '"')
shutil.copyfile(pathProject + "/PLC_Emulator.exe", pathInstall + "/PLC_Emulator.exe")

def reportGeneratorConfigure() -> None:
pathProject: str = basePath + "/HoopTesting_ReportGenerator/dist/win-unpacked"
pathInstall: str = basePathInstall + "/ReportGenerator"
Expand All @@ -51,6 +62,7 @@ def reportGeneratorConfigure() -> None:
except:
pass
shutil.copytree(pathProject, pathInstall)
shutil.rmtree(pathInstall + "/locales")

if __name__ == "__main__":
# Data Collector Installer Preparation
Expand All @@ -63,6 +75,10 @@ def reportGeneratorConfigure() -> None:

# Report Generator Installer Preparation
reportGeneratorConfigure()
os.system("cls")

# Report Generator Installer Preparation
emulatorConfigure()

os.system("cls")
print("Finished.....")

0 comments on commit 2f70b76

Please sign in to comment.