Giter VIP home page Giter VIP logo

electron-example-windows's Introduction

Electron Example Windows APPlication

dependencies Status Build Status

Convert your website/blog into Windows Application Build using Electron

Requirements

  • Electron
  • Electron Packager
  • Electron Win Installer
# Install Electrom
sudo npm install -g electron --unsafe-perm=true

# Install Electron Packager
sudo npm install electron-packager -g

Installation

  • Clone this Respo
https://github.com/mskian/electron-example-windows.git
  • Install dependencies
cd electron-example-windows
yarn
  • Build a Package for Windows
yarn package-win
  • Build .exe Package
yarn create-installer-win

Customization

Add ICONS

  • Add Icons on assets/icons/win Directory
  • open https://convertico.com/ and Upload your ICON.Format png & size 512x512
  • Convert your png icon to icoFormat
  • Rename the icon Icon-512.ico to Icon.ico
  • Next Move the Icon to assets/icons/win Folder (PS: Before Adding your Own ICON Cleanup Default icon which already added for example APP)

Convert the website/blog to Desktop APP

  • open main.js File
  • Find the Below & Update your Blog/website URL
var weburl = 'https://task.santhoshveer.com';
  • Add Background Color Find this Line backgroundColor: '#15171A', & Replace it with your Background Color code
  • Test your APP
electron main.js
  • Open /installers/windows/createinstaller.js File & Update the APP Directory, Author name, Output Directory, Setup exe File Name.

Windows package Setup

  • package.json - Open it & replace it with your Name, Description and Version
  • Windows Application Packager and Builder Configuration from package.json
 "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "package-win": "electron-packager . electron-example --overwrite --asar --platform=win32 --arch=ia32 --icon=assets/icons/win/icon.ico --prune=true --out=release-builds --version-string.CompanyName=MSKIAN --version-string.FileDescription=MSKIAN --version-string.ProductName=\"Electron Example\"",
    "create-installer-win": "node installers/windows/createinstaller.js"
  },
  • electron-example - Replace with your APP Name
  • release-builds/electron-example-win32-ia32/ - same Replace electron-example with your APP Name

Learn More about Electron

Special thanks to Christian Engvall for this Awesome Tutorials

# Topic Description
01 Hello world tutorial Get electron running on your computer
02 Testing electron app on Ubuntu Set up a VirtualBox virtual machine running Ubuntu and share app
03 Electron app icons Adding icons to the app
04 Electron packager tutorial Creating packages for mac, windows and linux
05 Electron menu Adding a main menu to your Electron app
06 Electron asar Packaging the app with asar
07 DMG Installer Creating a DMG-installer for macOS
08 Windows installer Creating a windows installer with electron-winstaller
09 Debian package installer Create a debian package
10 Update to latest Electron version Update electron to the latest version using npm

LICENSE

MIT

electron-example-windows's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar mskian avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

shalevy1

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.