The app handles forgettable data, cloned from within REV Portal. It populates a modal with the received data, and allows copying of values, based on the forgettable operation. The copied values can then be pasted into CCC One.
- Run
npm install
in the project root.
-
Run
npm start
in the project root -
After a change in the server code is made, you need to type
rs
in the terminal to restart the application
npm run package
- creates a portable executable, which can be run directly.npm run make
- runspackage
internally and creates a setup file from the generated files, which can be distributed after.npm run publish
- runspackage
andmake
internally, after which it pushes the installable to a release server. In this case it is called from a CI workflow which runs onmain
branch and the files are automatically added to the latest release.
There are two CI/CD jobs that run on develop
and master
.
- BUMP workflow - runs on every push to
develop
and bumps the package.json version and creates a GitHub tag with respective version.- MAJOR or major keyword in commit message - bumps the major version
X.0.0
(the X) - MINOR or minor keyword in commit message - bumps the minor version
0.X.0
(the X) - no keywords - bumps the patch version
0.0.X
(the X)
- MAJOR or major keyword in commit message - bumps the major version
- RELEASE workflow - runs on every push to
main
. This job builds the latest version of the app and adds its make files to the respective (latest) tag. The release is saved as a draft, and to make it public you need to go the the release in the releases section and manually save it. - uses FORGE_TOKEN as env variable, which has to be set in the repository secrets section. This secret is your accounts GITHUB_TOKEN and allows the workflow to upload the releases to GitHub.
The app checks for updates from the GitHub API for the latest release when the app is started. The user can then download it and install it. Behind the screnes, updates are downloaded locally in a TEMP folder. Then they are installed and the app is restarted to apply the updates. Uses the electron built-in autoUpdater
, along with customized behavior defined in app-updater.ts
.
The application writes logs in the following locations:
- on Linux:
~/.config/REV Clone Pad/logs/{process type}.log
- on macOS:
~/Library/Logs/REV Clone Pad/{process type}.log
- on Windows:
%USERPROFILE%\AppData\Roaming\REV Clone Pad\logs\{process type}.log