•  


Vorrausetzungen | Electron

Vorrausetzungen

Electron ist ein Framework zum Erstellen von Desktop-Anwendungen mit JavaScript, HTML und CSS. Electron ermoglicht es plattformunabhangige Apps zu schaffen die mit derselben Codebasis auf Windows, macOS und Linux laufen, indem Chromium und Node.js in eine einzelne, ausfuhrbare Datei mit eingebunden werden.

Dieses Tutorial fuhrt dich durch den Ablauf eine Desktop-Applikation mit Electron zu entwickeln und diese Anwender zu Verfugung zu stellen.

Ziele ?

This tutorial starts by guiding you through the process of piecing together a minimal Electron application from scratch, then teaches you how to package and distribute it to users using Electron Forge.

If you prefer to get a project started with a single-command boilerplate, we recommend you start with Electron Forge's create-electron-app command.

Assumptions ?

Electron is a native wrapper layer for web apps and is run in a Node.js environment. Therefore, this tutorial assumes you are generally familiar with Node and front-end web development basics. If you need to do some background reading before continuing, we recommend the following resources:

Required tools ?

Code editor ?

You will need a text editor to write your code. We recommend using Visual Studio Code , although you can choose whichever one you prefer.

Command line ?

Throughout the tutorial, we will ask you to use various command-line interfaces (CLIs). You can type these commands into your system's default terminal:

  • Windows: Command Prompt or PowerShell
  • macOS: Terminal
  • Linux: varies depending on distribution (e.g. GNOME Terminal, Konsole)

Most code editors also come with an integrated terminal, which you can also use.

Git and GitHub ?

Git is a commonly-used version control system for source code, and GitHub is a collaborative development platform built on top of it. Although neither is strictly necessary to building an Electron application, we will use GitHub releases to set up automatic updates later on in the tutorial. Therefore, we'll require you to:

If you're unfamiliar with how Git works, we recommend reading GitHub's Git guides . You can also use the GitHub Desktop app if you prefer using a visual interface over the command line.

We recommend that you create a local Git repository and publish it to GitHub before starting the tutorial, and commit your code after every step.

Installing Git via GitHub Desktop

GitHub Desktop will install the latest version of Git on your system if you don't already have it installed.

Node.js and npm ?

To begin developing an Electron app, you need to install the Node.js runtime and its bundled npm package manager onto your system. We recommend that you use the latest long-term support (LTS) version.

tipp

Please install Node.js using pre-built installers for your platform. You may encounter incompatibility issues with different development tools otherwise. If you are using macOS, we recommend using a package manager like Homebrew or nvm to avoid any directory permission issues.

To check that Node.js was installed correctly, you can use the -v flag when running the node and npm commands. These should print out the installed versions.

$ node -v

v16.14.2
$ npm -v
8.7.0
Vorsicht

Although you need Node.js installed locally to scaffold an Electron project, Electron does not use your system's Node.js installation to run its code . Instead, it comes bundled with its own Node.js runtime. This means that your end users do not need to install Node.js themselves as a prerequisite to running your app.

To check which version of Node.js is running in your app, you can access the global process.versions variable in the main process or preload script. You can also reference https://releases.electronjs.org/releases.json .

- "漢字路" 한글한자자동변환 서비스는 교육부 고전문헌국역지원사업의 지원으로 구축되었습니다.
- "漢字路" 한글한자자동변환 서비스는 전통문화연구회 "울산대학교한국어처리연구실 옥철영(IT융합전공)교수팀"에서 개발한 한글한자자동변환기를 바탕하여 지속적으로 공동 연구 개발하고 있는 서비스입니다.
- 현재 고유명사(인명, 지명등)을 비롯한 여러 변환오류가 있으며 이를 해결하고자 많은 연구 개발을 진행하고자 하고 있습니다. 이를 인지하시고 다른 곳에서 인용시 한자 변환 결과를 한번 더 검토하시고 사용해 주시기 바랍니다.
- 변환오류 및 건의,문의사항은 juntong@juntong.or.kr로 메일로 보내주시면 감사하겠습니다. .
Copyright ⓒ 2020 By '전통문화연구회(傳統文化硏究會)' All Rights reserved.
 한국   대만   중국   일본