# 27/08/21
## 08:15 - 09:30
- Starting off the day by looking into making the build.config.json
- Actually need to make sure that the name being passed to the cript actaully works.
- The application name has been change so that the property of the app name is checked for and if it is empty then I pass a default option of the gnlmpc app name.
- had to add an await to the promise of the engineering studio builder promise.
- Just had to change the app.config.json so that the original is app.config but is changed to appname depending on the user's input.
- The good news is that now script is totally working now.
- I'm just going to commit my code now so that we have a working version of the builder.
- Now I can slowly move the build configuration from the package.json
## 09:30 - 10:30
- The config is js file rather than a json file because the package.js needs to be a module.
- Just testing whether the config file works when parsing the data to the electron builder api.
- The build function requires a object which uses the keys as the cli commands. For instance to use a config the key needs to be config and the value being the path to the config file.
- excellent, the config file works when being parsed without the build key word. removed it from the json and now the build folder has been created. Just going to test it.
-
## 10:30 - 11:30
- I'm just testing some of the potential configuration settings.
- ok so the electron binaries can be copied over to the bin folder after the electron builder has been built.
- added bin to gitignore.
## 11:30 - 12:00
- Might need a way to unzip the electron binaries via js and also
- just adding the nsis options at the moment
- once I have all the releavnt options for the project I'll add them as cli options
- currently customising the nsis script for future development.
## 12:00 - 12:15
- no huddle update instead via teams.
- ok there may be an issue with the installers and I am going to have to fix it.
-
## 12:30 - 13:30
- Lunch
## 13:30 - 14:30
- OK so i have basic nsis installer script working however, the installer itself doesn't work.
- so need to check with Asa on Tuesday whether we are going to use the c exe or are we going to use the installer.
- First thing I am going to do is unzip the electron binaries after build.
-
## 14:30 - 15:30
- still trying to unzip the contents of the zip using js.
- Brill, now all of the binaries can be unzipped each time we cache the binaries.
- Need to look into the installers.
- Just commiting the working code right now.
- done
- currently the installer puts all of the resource within appdata and that is why it is erroring out because the env file is not there when we install.
## 15:30 - 16:30
- let's see if when the env file is copied over before the install whether thatt works.
- ok that get's rid of the first error
- but now I have 
- which is down to the app name not being passed.
- I'm not sure we can actually use the installer so I will ask Asa on tuesday and look into converting the c code into Rust.
- Just played around with the rust playground.
- Just added rust to vscode
- rust is now showing up in the path.
- cool, now I can create rust files in vscode
- right, hellow world created in rust.
-