Code Monkey home page Code Monkey logo

t2's Introduction

T2

T, the next generation

Customize Icon

  1. npm install -g electron-icon-maker
  2. electron-icon-maker --input=/absolute/path/file.png --output=./relative/path/to/folder

Both processes have to be started simultaneously in different console tabs:

npm run start-renderer-dev npm run start-main-dev This will start the application with hot-reload so you can instantly start developing your application.

You can also run do the following to start both in a single process:

npm run start-dev

Packaging

We use Electron builder to build and package the application. By default you can run the following to package for your current platform:

npm run dist This will create a installer for your platform in the releases folder.

You can make builds for specific platforms (or multiple platforms) by using the options found here. E.g. building for all platforms (Windows, Mac, Linux):

npm run dist -- -mwl

Docker image, container run

sudo make imageName="Your image name" run-container

Docker container start/stop

sudo make containerId="container ID" start-container(stop-container)

Dive Docker container

sudo make containerId="container ID" dive-container

Start Jenkins server

sudo make containerId="container ID" jenkins-start

Copy assets/config folder into container source

  1. sudo make containerId="container ID" copy-assets
  2. sudo make containerId="container ID" copy-config

Install Wine32/64 to Ubuntu docker container to build Window version

  1. apt-get install wine64
  2. dpkg --add-architecture i386 && apt-get update && apt-get install wine32

Build source in container from host machine or git

  1. sudo make containerId="container ID" build-local
  2. sudo make containerId="container ID" branch="branch name" build-git

Jenkins Install to Linux

https://linuxize.com/post/how-to-install-jenkins-on-ubuntu-18-04/

Execute Shell in Jenkins Build

  1. set +e
  2. chmod -R 777 /YOUR REPO
  3. cd /YOUR REPO
  4. git checkout -- .
  5. git checkout master
  6. git pull origin master
  7. npm install
  8. GH_TOKEN=(your github personal token) npm run dist -- -wl

Reference

https://www.npmjs.com/package/electron-store

t2's People

Contributors

anonymoussprocket avatar

Watchers

James Cloos avatar  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.