Code Monkey home page Code Monkey logo

electron-counter's Introduction

Electron Counter

Sample project to get familiar with how to make Cross-Platform apps using Electron.

Getting started

Dependencies

  1. Node.js v20 (current LTS).

Run the app localy:

Install all dependencies

npm install

Start the app

npm start

Publish to GitHub

  1. Make a copy of the example.env file and rename it as .env
  2. Head over to your GitHub's Settings > Developer settings > Personal access tokens > Tokens (classic) page, and create one named electron-counter.
  3. Copy the token for the GITHUB_TOKEN key inside your newly created .env file.
  4. Run the following command on your terminal:
npm run publish

This should generate a drafted Release in the GitHub repository with a .zip file attached so users can download and install the app on their machines.

Important

Depending on the operating system you are using with the publish command, it will generate the corresponding platform version. Keep in mind that app signing is required in both Windows and MacOS, so you may have to do some manual configuration in order to execute them. This is order to prevent users from installing unsafe outside of their corresponding stores.

For MacOS, after downloading the .zip file from the GitHub Releases page, you will have to open up your terminal, navigate to the same path where the app was downloaded and run the following command:

xattr -c electron-counter.app

Caution

Failing to do this step will result on an alert on your machine suggesting that the app is damaged and that you should delete it.

electron-counter's People

Contributors

chrisvasqm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.