Skip to content

AMO-Tools-Desktop is an energy efficiency calculation application for use with industrial equipment such as pumps, furnaces, fans, and motors, as well as for industrial systems such as steam.

License

Notifications You must be signed in to change notification settings

RoundDev/AMO-Tools-Desktop

 
 

Repository files navigation

AMOToolsDesktop

This project was generated with angular-cli version 1.0.0-beta.26.

Build

Run npm run build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

Electron

After running npm run build, run npm run electron and an electron app will be served up.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive/pipe/service/class/module.

Deploying to GitHub Pages

Run ng github-pages:deploy to deploy to GitHub Pages.

Further help

To get more help on the angular-cli use ng help or go check out the Angular-CLI README.

Building Packages

Due to issues from building the amo-tools-suite node modules, packages cannot be built cross platform.

Building for Windows

electron-builder makes one installer that will install either x64 or ia32 as appropriate

Prerequisites:

  • electron-builder v13.9.0+
  • electron-packager v8.5.2

Run npm run windows to build the installer in x64 and ia32.
Installer will be in ../output
latest.yml will be in ../output

Building for Linux

Prerequisites:

  • icnutils
  • graphicsmagick
  • xz-utils
  • rpm
  • apt
  • electron-builder v13.9.0+
  • electron-packager v8.5.2

Run npm run linux to build a tar.gz, .deb, and .rpm in x64 Packages will be in ../output

*Cannot build cross platform on Linux due to building the amo-tools-suite node module. To build for ia32 on 32bit Linux, run ./node_modules/.bin/build -l --ia32

Building for Mac

Can only be done on Mac due to signing issues

Prerequisites:

  • electron-builder v13.9.0+
  • electron-packager v8.5.2
  • An Apple Developer account and correct code signing certificate

Run npm run mac to build a .zip and .dmg in x64 and ia32.
Packages will be in ../output/mac
latest-mac.json will be in ../output/github

The code will be signed with a certificate from your keychain automatically as long as it is appropriate and valid

Auto Update

electron-builder and electron autoUpdate does not support auto updating on Linux

Prerequisites:

  • electron-updater v1.8.2
  • electron-log v1.3.0
  • electron-builder v13.9.0+
  • electron-packager v8.5.2

Build the application as directed above. electron-builder will create the installer/executable AND a file named latest.yml or latest-mac.json (when building Mac packages).

Go to the AMO-Tools-Desktop releases page in GitHub.

Draft a new release. For the tag version, make sure to include a v before the version number (example: v0.0.1).

Upload BOTH the installer/executable AND the latest.yml and latest-mac.json. (the autoUpdater looks for the latest.yml and latest-mac.json in the release. If they is not present, it will not work.)

Publish the release.

Once the older version of the application is started, it will check for an update, download it, and install it automatically.

About

AMO-Tools-Desktop is an energy efficiency calculation application for use with industrial equipment such as pumps, furnaces, fans, and motors, as well as for industrial systems such as steam.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 68.7%
  • HTML 26.1%
  • CSS 4.0%
  • JavaScript 1.2%