에러
$ C:\Test\node_modules\.bin\electron-builder --config ./buildConfig.json --win --x64 -p always
• electron-builder version=24.9.1 os=10.0.22631
• loaded configuration file=C:\Test\buildConfig.json
• writing effective config file=C:\build\builder-effective-config.yaml
• packaging platform=win32 arch=x64 electron=28.2.0 appOutDir=C:\build\win-unpacked
• downloading url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size=5.6 MB parts=1
• downloaded url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=1.908s
⨯ cannot execute cause=exit status 2
out=
7-Zip (a) 21.07 (x64) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26
Scanning the drive for archives:
1 file, 5635384 bytes (5504 KiB)
Extracting archive: C:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign\589425303.7z
--
Path = C:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign\589425303.7z
Type = 7z
Physical Size = 5635384
Headers Size = 1492
Method = LZMA2:24m LZMA:20 BCJ2
Solid = +
Blocks = 2
Sub items Errors: 2
Archives with Errors: 1
Sub items Errors: 2
errorOut=ERROR: Cannot create symbolic link : Ŭ���̾�Ʈ�� �ʿ��� ������ ������ ���� �ʽ��ϴ�. : C:\Users\god-logger\AppData\Local\electron-buildeer\Cache\winCodeSign\589425303\darwin\10.12\lib\libcrypto.dylib
ERROR: Cannot create symbolic link : Ŭ���̾�Ʈ�� �ʿ��� ������ ������ ���� �ʽ��ϴ�. : C:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign\5894225303\darwin\10.12\lib\libssl.dylib
command='C:\Test\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign\589425303.7z' '-oC:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign\589425303'
workingDir=C:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign
• Above command failed, retrying 3 more times
• downloading url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size=5.6 MB parts=1
• downloaded url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=1.845s
⨯ cannot execute cause=exit status 2
out=
7-Zip (a) 21.07 (x64) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26
Scanning the drive for archives:
1 file, 5635384 bytes (5504 KiB)
Extracting archive: C:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign\801114271.7z
--
Path = C:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign\801114271.7z
Type = 7z
Physical Size = 5635384
Headers Size = 1492
Method = LZMA2:24m LZMA:20 BCJ2
Solid = +
Blocks = 2
Sub items Errors: 2
Archives with Errors: 1
Sub items Errors: 2
errorOut=ERROR: Cannot create symbolic link : Ŭ���̾�Ʈ�� �ʿ��� ������ ������ ���� �ʽ��ϴ�. : C:\Users\god-logger\AppData\Local\electron-buildeer\Cache\winCodeSign\801114271\darwin\10.12\lib\libcrypto.dylib
ERROR: Cannot create symbolic link : Ŭ���̾�Ʈ�� �ʿ��� ������ ������ ���� �ʽ��ϴ�. : C:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign\8011114271\darwin\10.12\lib\libssl.dylib
command='C:\Test\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign\801114271.7z' '-oC:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign\801114271'
workingDir=C:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign
• Above command failed, retrying 2 more times
• downloading url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size=5.6 MB parts=1
• downloaded url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=1.902s
⨯ cannot execute cause=exit status 2
out=
7-Zip (a) 21.07 (x64) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26
Scanning the drive for archives:
1 file, 5635384 bytes (5504 KiB)
Extracting archive: C:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign\731337791.7z
--
Path = C:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign\731337791.7z
Type = 7z
Physical Size = 5635384
Headers Size = 1492
Method = LZMA2:24m LZMA:20 BCJ2
Solid = +
Blocks = 2
Sub items Errors: 2
Archives with Errors: 1
Sub items Errors: 2
errorOut=ERROR: Cannot create symbolic link : Ŭ���̾�Ʈ�� �ʿ��� ������ ������ ���� �ʽ��ϴ�. : C:\Users\god-logger\AppData\Local\electron-buildeer\Cache\winCodeSign\731337791\darwin\10.12\lib\libcrypto.dylib
ERROR: Cannot create symbolic link : Ŭ���̾�Ʈ�� �ʿ��� ������ ������ ���� �ʽ��ϴ�. : C:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign\7313337791\darwin\10.12\lib\libssl.dylib
command='C:\Test\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign\731337791.7z' '-oC:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign\731337791'
workingDir=C:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign
• Above command failed, retrying 1 more times
• downloading url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size=5.6 MB parts=1
• downloaded url=https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=1.861s
⨯ cannot execute cause=exit status 2
out=
7-Zip (a) 21.07 (x64) : Copyright (c) 1999-2021 Igor Pavlov : 2021-12-26
Scanning the drive for archives:
1 file, 5635384 bytes (5504 KiB)
Extracting archive: C:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign\156962851.7z
--
Path = C:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign\156962851.7z
Type = 7z
Physical Size = 5635384
Headers Size = 1492
Method = LZMA2:24m LZMA:20 BCJ2
Solid = +
Blocks = 2
Sub items Errors: 2
Archives with Errors: 1
Sub items Errors: 2
errorOut=ERROR: Cannot create symbolic link : Ŭ���̾�Ʈ�� �ʿ��� ������ ������ ���� �ʽ��ϴ�. : C:\Users\god-logger\AppData\Local\electron-buildeer\Cache\winCodeSign\156962851\darwin\10.12\lib\libcrypto.dylib
ERROR: Cannot create symbolic link : Ŭ���̾�Ʈ�� �ʿ��� ������ ������ ���� �ʽ��ϴ�. : C:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign\1569662851\darwin\10.12\lib\libssl.dylib
command='C:\Test\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign\156962851.7z' '-oC:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign\156962851'
workingDir=C:\Users\god-logger\AppData\Local\electron-builder\Cache\winCodeSign
• Above command failed, retrying 0 more times
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
원인
윈도우 환경에서 내부 작업 중 권한이 없어 심볼릭링크 생성이 되지 않아 발생
해결
관리자 권한으로 VS Code 혹은 터미널을 열어주어 다시 시도하면 빌드 후 패키징처리가 잘 되는걸 확인할 수 있다.
반응형
'자바스크립트 > Electron Framework' 카테고리의 다른 글
Electron Builder 로 빌드 시 cannot be closed. Please close it manually and click ret (2) | 2024.10.10 |
---|---|
Electron Framework + ESM + TypeScript 환경 세팅 (0) | 2024.01.31 |
Electron 클라이언트 중복 실행 방지 방법 (0) | 2023.10.06 |
Electron VsCode 에서 Debugging(디버깅) 하는 법 (0) | 2023.09.05 |