Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.
/ c-calculator Public archive

A MIUI Calculator for Homework of Programming Design in CUMT

License

Notifications You must be signed in to change notification settings

cnily03-hive/c-calculator

Repository files navigation

Calculator

This is a simple calculator app for college course project.

Protocol Implementation

Protocol calc has been implemented. It supports the following operations:

  • calc://static - refers to the root directory of the app
  • calc://bundle - refers to the app.asar file of the app

Easily, you can visit calc://bundle/web/index.html to view the Vue collections packaged in app.asar

Usage

Install necessary dependencies globally

npm i -g electron electron-builder

Install dependencies

npm i

Type npm run <command> to use predefined scripts. Commands are as follows:

  • vue:serve - serves the Vue app independently (without Electron) under development mode
  • vue:build - builds the Vue app independently (without Electron) under development mode (output web-dist)
  • vue:lint - lints the Vue app
  • electron:build-vue - builds the Vue app for electron under production mode (output web)
  • electron:make - builds the Electron app based on output of Vue (electron:build-vue prerun needed)
  • build - builds the Electron app with Vue
  • test - tests the Electron app with Vue (Vue hot server)

If you just want to build the app from source, run

npm run build

About

A MIUI Calculator for Homework of Programming Design in CUMT

Resources

License

Stars

Watchers

Forks

Packages

No packages published