본문 바로가기

CodeLab/Electron8

07. Electron Windows Install시 커스텀 스킴 레지스트리에 추가하는 방법 Electron Windows Installer 실행 레지스트리 추가 하는 방법Windows Installer로 설치를 실행할 때 레지스트리를 추가해야하는 경우가 있습니다. 저의 경우는 Electron으로 채팅앱을 만들면서, 웹소스들을 그대로 Android와 IOS로 들고와 앱으로 감싸는 시도를 하였습니다. Android와 IOS의 공통적인 앱과 통신 하는 방법으로 아래와 같은 코드로 커스텀 스킴을 사용하는 방법을 적용하게 되었습니다.location.href='togethersTalk://setAlarm'; 위와 같이 커스텀 스킴을 사용하여 코드를 작성하고 빌드를 하게되면 Mac에서는 문제가 발생하지 않는데.. Windows에서 프로그램을 설치하고 나면 아래와 같은 팝업이 똬 하고 떠버립니다... 이러한.. 2017. 4. 29.
06. Electron 관련 기타 유용한 링크 및 글 Electron에서 자바스크립트 라이브러리 로딩시 유의 점관련 글https://blog.outsider.ne.kr/1170http://stackoverflow.com/questions/32621988/electron-jquery-is-not-definedElectron 관련 유용한 링크Electron 공식 홈페이지 : https://electron.atom.io/ Awesome Electron : https://github.com/sindresorhus/awesome-electron Electron Doc 한국어 번역 : https://www.gitbook.com/book/imfly/electron-docs-gitbook/details/ko-KR Electron Korea 페이스북 그룹 : https:/.. 2017. 4. 15.
05. Electron Debugging Electron Debugging.Electron 공식 홈페이지에서는 Debugging과 관련하여 3가지 문서를 제공합니다.Debugging the Main ProcessDebugging the Main Process in node-inspectorDebugging the Main Process in VSCodenode-inspector의 설정을 잘못한 탓인지는 몰라도..node-inspector의 디버깅은 원할할게 디버깅이 되지 않았습니다. 그에 반해 Visual Studio Code 에서는 깔끔하게 Main Process와 Renderer Process의 코드를 모두 디버깅할수 있었습니다. 그래서 Visual Studio Code의 디버깅 방법을 소개 합니다.Main Process Debugging .. 2017. 4. 15.
04. Electron API Demo Electron API Demo.Electron API 를 사용해보는 간단한 예제 입니다.Menu(Main), shell(Both), dialog(Main) 활용 예제메뉴를 생성하고 해당 메뉴에서 몇가지 기능을 실행해 봅니다.Menu - 어플리케이션의 메뉴를 생성하는 API shell - file과 url을 사용자의 기본 어플리케이션으로 실행 및 관리해주는 API dialog - alert 및 file dialog창 생성아래와 같이 menu.js파일을 생성합니다. 변수 arrMenu에 해당하는 하나의 객체는 MenuItem 객체입니다.MenuItem 객체 상세옵션 menu.jsconst {app, shell, dialog, Menu, BrowserWindow} = require('electron'); c.. 2017. 4. 15.
728x90