LES or Local Entertainment System is inspired from Emdb tool. We are trying to make it more cross platform and less complicated.
Run npm run electron
for dev app to run locally.
We are using electron-package
library for generating an executable package based on OS & Architecture.
Steps:
- Install NPM Libraries with
npm install
- Generate package with
npx electron-packager . LESv1 --platform=win32 --arch=x64 --electron-version=18.2.0 --out=dist-electron-app
- It will generate an executable file along with its support files in ./dist-electron-app folder for windows os
- You can refer to Electron-Packager Github page README file for understanding the above cmd here and also customizing for other Operating Systems & Architectures.
- Generate package with script
npm run build-dist-app
- Create a basic dbConfig.json file somewhere
- Either copy the generated package to resources location or just run the executable file .exe in the generated folder.
- Go to Settings page of App
- Update the dbConfig file path and click 'Update'
- Update the 'Movies' folder path & 'TV Series' folder path and click 'Update Paths'
- Finally click 'Sync Folder Data'
- Now, App should have generated all the resources in dbConfig.json file
- Go to Movies page or TV Series page and explore.
IPC is being used when some features are not available to frontend process. Example: Angular process won't allow accessing local file system apart from its project assets folder. To mitigate this we take help of NodeJs process.
IPC is explained better in here
- Electron build is generated executable with whole angular project into it causing too big size of executable files. Need to resolve this.
This project was generated with Angular CLI version 13.3.4. & based on Electron Project