Skip to content

A-D-Fuchs/CAMELS_installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CAMELS installer

Installs CAMELS software and all required packages

The relevant installer NOMAD-CAMELS_installer.exe file is located in Output

Visit the CAMELS Homepage for more information

1. Workflow

Brief description of the workflow when the installer should be updated.

  1. Change python code in /Python_code/setup_camels.py (see here)
  2. Create .exe file from the python code. To do this run following code in /Python_code/
    pyinstaller --onefile --nowindow setup.py
    This creates the setup_camels.exe file under /Python_code/dist/
  3. Change "\run\runCamels.bat" to change the way CAMELS is launched (see here)
  4. Convert the bat file to an exe file (using for example Bat To Exe Converter)
  5. Open the CAMELS_installer.iss file and perform any required changes. Then compile the exe.
    The final file NOMAD-CAMELS_installer.exe can be found under /Output/

2. What can be changed?

Brief description of the possible (and most likely) changes.

2.1. Changes to python or environment

If you want to perform changed regarding the NOMAD-CAMELS version that is installed or changes to pyenv (python version) or the python environment then you have to perform changes in the python code of the setup.py file. Here the python version is currently hard-coded as 3.9.6. The pip install command uses the most current version of NOMAD-CAMELS and ignores locally available versions with --no-cache-dir.

2.2. Changes to the way CAMELS is started (via shortcuts)

If you want to change the way CAMELS is startet you must modify the installation.exe file by modifying the InnoSetup file .iss. Here you can alter the shortcuts under [Icons]. The shortcuts simply execute the NOMAD-CAMELS.exe which is a simple exe convertion of the batch file runCamels.bat. This simply reads the NOMAD-CAMELS.ini and reads the paths to the exe and the installation path from it. You can change these two paths manually to change the python environment that should start CAMELS.

2.3. Changes to the supporting folders

For this you must modify the .iss file.
The installer creates the folder %localappdata%\nomad_camels\Presets\Backup where all the settings presets (user info, sample info, used devices, etc.) are saved. Change the entry under [Dirs] to change the location of this folder.

About

Installs CAMELS software and all required packages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published