GithubHelp home page GithubHelp logo

cocoonventures / barcode-to-pc-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fttx/barcode-to-pc-server

0.0 1.0 0.0 4.67 MB

Barcode to PC server

Home Page: https://barcodetopc.com/

License: GNU General Public License v3.0

Rich Text Format 28.09% NSIS 0.16% Shell 0.48% TypeScript 52.48% JavaScript 4.60% HTML 10.31% CSS 3.88%

barcode-to-pc-server's Introduction

Barcode to PC server

Useful links

Downloads

Repositories

Build status

Build status Build Status

Setup

  1. Install the required dependencies:
  2. Clone the repository
    git clone https://github.com/fttx/barcode-to-pc-server/
    cd barcode-to-pc-server
    npm install

Release

npm run dist # build the angular project in prod mode and generate the app install files for the current platform, works with Windows/macOS/Linux. Out dir: dist/dist/
npm run publish # build the angular project in prod mode and generate the app installer for the current platform and uploads it to GitHub releases
npm run publish-l  # build the angular project in prod mode, generate the app installer for linux and uploads them to GitHub releases
npm run publish-w  # build the angular project in prod mode, generate the app installer for Windows ia32 and x64 and uploads them to GitHub releases
  • To sign the installers follow the electron-builder code-signing tutorial. TL;DR: set CSC_LINK and CSC_KEY_PASSWORD environment variables.
  • To enable the publishing to GitHub releases set GH_TOKEN environment variable and give all the repo permissions
  • The installer will be put in the dist/dist/ folder.
  • If you get sass errors run cd ionic && npm rebuild node-sass --force

Run

  • If you're working on the angular project (src):
# npm run build     must be called at least once before executing the commands below:

npm start # run electron with dev tools and the webserver with livereload
# use cmd.exe on Windows
  • If you're working on the electron/main.ts file:
npm run watch # run the webserver with livereload and also watch the electron/main.ts file
npm run electron:dev # run electron with dev tools or press F5 if you're using VSCode to start debugging

Simulate updates

  1. Install minio as explained here
  2. Run ./node_modules/.bin/electron-builder --project ./dist/ -c.compression=store --config.publish.provider=s3 --config.publish.endpoint=http://IP:9000 --config.publish.bucket=test-update

Publishing updates

The server implements electron-update.

To publish an update:

  1. Increase the version number of the package.json
  2. Commit & push the changes
  3. Add a tag and name it v<new version number>
  4. Push the tag

Upon the tag push, travis and appveyor will build and sign the new installers. At this point if all looks good the only thing left to do is to publish the Github release draft.

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.