It is an Angular-Electron App which give you information about Weather Forecast.
Be sure to have Node >= 8.0 and NPM >= 5 installed on your computer/server
You can download NodeJS by following this https://nodejs.org/en/, take the LTS version. The installer will install Node and Npm.
node -v
npm -v
https://github.com/AtulBisht/Sunbeam-Weather-App.git
npm install
npm run electron
ng serve
Link :- https://www.electron.build/
A complete solution to package and build a ready for distribution Electron app for macOS, Windows and Linux with “auto update”
npm install --save-dev electron-builder
{
"name": "sunbeam_weather_app",
"description": "Weather app",
"productName": "Sunbeam-Weather-App",
"version": "0.0.0",
"license": "MIT",
"author": "Atul Bisht [email protected]",
"copyright": "© 2018, nerdAppLabs software solution",
"main": "main.js",
"build": {
"appId": "com.nerdAppLabs.sunbeam-weather-app",
"directories": {
"output": "app"
},
"mac": {
"category": "weather.app-category.weather",
"target":"pkg", //target :- dmg (default), mas, zip, 7z, tar.xz, tar.lz
"icon": "build/SWA.icns"
},
"win": {
"target":"zip", //target :- nsis (default), appx, 7z, tar.xz, tar.lz, tar.gz, tar.bz2
"icon": "build/SWA.ico"
},
"linux":{
"target":"snap", //target :- AppImage (default), 7z, zip, tar.xz, tar.lz, tar.gz, tar.bz2
"icon":"build/SWA.png"
},
}
}
"scripts": {
"build-ml": "electron-builder -ml",
"build-mac": "electron-builder --mac",
"build-linux": "electron-builder --linux",
"build-win": "electron-builder --win",
}, "devDependencies": {
"electron": "*",
"electron-builder": "*"
}
npm run electron
npm run build-ml
npm run build-win
Note: If you are using macOS to create distributable file for windows install wine.
npm run build-mac
npm run build-linux