/bedrock-electron-2

Desktop App for Bedrock

Primary LanguageTypeScriptMIT LicenseMIT

Install

Clone the repo and install dependencies:

git clone git@github.com:prometheon/bedrock-electron-2.git
cd bedrock-electron-2
yarn install

Development

Start the app in the development environment:

yarn start

Create a new icon from PNG template

Prepare big PNG-icon, at least 1024x1024, make sure there is approx 5% of transparent offset from the edges, so the icon will fit properly on Macs. Then use https://www.npmjs.com/package/electron-icon-maker to compile new set of icons and place them to ./assets dir in this repo.

Compile apps

Run:

yarn package

During the build you should see info about certificate used for signing:

• signing file=release/build/mac/Bedrock.app identityName=Developer ID Application: Prometheon Systems, Inc. (5KL32K872M)
  identityHash=3EC8422AF3E49C71D4D9424388B9FAA39BC0FF6C provisioningProfile=none

After that, go to ./release/build and find your dmg- and exe-files:

  • Bedrock-x.x.x.dmg - for MacOS on Intel chip
  • Bedrock-x.x.x-arm64.dmg - for MacOS on M1 chip
  • Bedrock Setup x.x.x.exe - for Windows

To enable debug only context menu items in prod-build, run this command instead:

  • For Mac with Intel chip yarn package-debug-mac
  • For Mac with M1 chip yarn package-debug-mac-m1
  • For Windows yarn package-debug-win. Then use ./release/build/Bedrock Setup x.x.x.exe to start the setup

Packaging for Production

Automated CI/CD will take care about everything once PR is merged. Just make sure you've updated the version in release/app/package.json file.