electron-forge 6

[electron-forge] An unhandled rejection has occurred inside Forge 일렉트론 빌드 에러

electron-forge를 이용해서 일렉트로 파일을 빌드하는 데 있어서 다음과 같은 오류가 발생할 때가 있습니다. 해당 오류의 해결방법과 원인을 빠르게 파악해보겠습니다. 글의 순서는 아래와 같이 진행하겠습니다. 1. 오류의 원인 2. 오류 해결방법 3. 결괏값 4. 마무리 말 1. electron-forge 에러 원인 1-1. electron-forge cli를 설치하지 않았을 경우 1. electron-forge를 cli를 통해 진행하는데, cli를 설치하지 않았을 경우 위와 같은 에러가 발생할 수 있습니다. 1-2. electron-forge config 파일을 직접 입력했을 경우 1. electron-forge를 config파일을 통해 진행하는데, 직접 config파일을 입력했을 경우 위와 같은 ..

[Error electron-forge] You may need to re-bundle the app using Electron Packager's "executableName" option.

First, I'll tell you about my work environment and start. Desktop: Window10 Arch: AMD WSL: Linux Ubuntu (Arch: AMD) Compile Target: Linux (Arch: arm64) Briefly, you are trying to run a cross-compile from a Windows environment to Linux (arm64). If the error You may need to re-bundle the app using Electron Packager's "executableName" option. appears, it's probably a situation where you're trying t..

[electron-forge Error] You may need to re-bundle the app using Electron Packager's "executableName" option.

우선 제 작업 환경을 알려주고 시작하겠습니다. Desktop: Window10 Arch: AMD WSL: Linux Ubuntu (Arch: AMD) Target Compile: Linux (Arch: arm64) 간략하게 설명하자면 윈도우 환경에서 Linux(arm64)로 크로스컴파일을 진행하려고 하는 상황입니다. You may need to re-bundle the app using Electron Packager's "executableName" option. 라는 오류가 나왔다면 아마 크로스컴파일을 시도하는 상황일 경우일텐데 이제부터 자세히 알아보자 1. 문제 이유 electron-forge의 공식 페이지에서 설명하는 컴파일 방법은 총 두 가지다. https://www.electronforge.i..

[Error]fakeroot, while creating message channels: Function not implemented 해결 방법

electron에서 fakeroot를 이용한 컴파일링 도중에 해당 오류가 나왔다. fakeroot, while creating message channels: Function not implemented fakeroot: error while starting the `faked' daemon. 해당 오류본은 캡처가 안되어 있지만 이해점...ㅎㅎ 처음엔 해당 오류가 permission과 관련된 오류인 줄 알고 root계정, chown을 통해서 실행권한을 주려고 애썼는데 해결되지 않았다. 그러던 도중... Function not implemented를 보고 해당 문구를 구글링 해보다가 다음 해결책을 찾았다. 이 멋진 형님의 말씀대로라면 우리의 빌드가 될 파일 시스템에다가 fakeroot-tcp를 복사해 주라..

[Electron] Electron cross compile to Linux on Windows (feat. electron-forge, WSL) 윈도우에서 리눅스로 일렉트론 크로스컴파일 하는 방법

정말 애정하고 있고, 미래에도 가치 있게 쓰일 라이브러리? 스택? 인 electron을 다시 손보게 됐다. 기존에 만들었던 프로그램의 업데이트 및 업그레이드를 위해서 electron 문서를 다시 정독해 보면서 Windows -> Linux로 크로스 컴파일링을 시도하는 삽질과 스토리를 써 내려가겠다. https://www.electronjs.org/docs/latest/ Introduction | Electron Welcome to the Electron documentation! If this is your first time developing an Electron app, read through this Getting Started section to get familiar with the basic..

[node-gyp rebuild]Error: node-gyp failed to rebuild 에러 분석 및 해결 방법 (feat. electron-forge)

기존 프로젝트를 쳐내고 오랜만에 다시 electron을 건들던 중... 과거엔 electron-builder를 이용해서 패키징과 컴파일링을 진행했는데, 이번에 공식 홈페이지에 가보니 electron-forge가 메인 빌더라고 적혀있었다. https://www.electronjs.org/docs/latest/tutorial/tutorial-packaging Packaging Your Application | Electron To distribute your app with Electron, you need to package it and create installers. www.electronjs.org 그래서 electron-forge로 빌더 교체를 진행하고 여러 가지 컴파일링을 시도해 봤다. 그러나....