Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR in Build generation for windows #676

Open
4 tasks done
mdtausifiqbal opened this issue Dec 4, 2024 · 5 comments
Open
4 tasks done

ERROR in Build generation for windows #676

mdtausifiqbal opened this issue Dec 4, 2024 · 5 comments

Comments

@mdtausifiqbal
Copy link

Describe the bug

D:\Projects\electron-solid>npm run build:win

[email protected] build:win
npm run build && electron-builder --win

[email protected] build
npm run typecheck && electron-vite build

[email protected] typecheck
npm run typecheck:node && npm run typecheck:web

[email protected] typecheck:node
tsc --noEmit -p tsconfig.node.json --composite false

[email protected] typecheck:web
tsc --noEmit -p tsconfig.web.json --composite false

vite v5.4.11 building SSR bundle for production...
✓ 2 modules transformed.
out/main/index.js 1.48 kB
✓ built in 511ms
vite v5.4.11 building SSR bundle for production...
✓ 1 modules transformed.
out/preload/index.js 0.42 kB
✓ built in 28ms
vite v5.4.11 building for production...
✓ 8 modules transformed.
../../out/renderer/index.html 0.55 kB
../../out/renderer/assets/electron-DtwWEc_u.svg 5.82 kB
../../out/renderer/assets/index-NdqvVkCc.css 6.75 kB
../../out/renderer/assets/index-DMdxvgsG.js 18.44 kB
✓ built in 1.53s
• electron-builder version=24.13.3 os=10.0.19045
• loaded configuration file=D:\Projects\electron-solid\electron-builder.yml
• writing effective config file=dist\builder-effective-config.yaml
• skipped dependencies rebuild reason=npmRebuild is set to false
• packaging platform=win32 arch=x64 electron=31.7.5 appOutDir=dist\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=11.159s
⨯ 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\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775.7z
--
Path = C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775.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 : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775\darwin\10.12\lib\libcrypto.dylib
ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775\darwin\10.12\lib\libssl.dylib

                command='D:\Projects\electron-solid\node_modules\.pnpm\[email protected]\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775.7z' '-oC:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775'
                workingDir=C:\Users\Dell\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=4.272s
⨯ 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\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575.7z
--
Path = C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575.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 : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575\darwin\10.12\lib\libcrypto.dylib
ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575\darwin\10.12\lib\libssl.dylib

                command='D:\Projects\electron-solid\node_modules\.pnpm\[email protected]\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575.7z' '-oC:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575'
                workingDir=C:\Users\Dell\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=4.488s
⨯ 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\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439.7z
--
Path = C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439.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 : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439\darwin\10.12\lib\libcrypto.dylib
ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439\darwin\10.12\lib\libssl.dylib

                command='D:\Projects\electron-solid\node_modules\.pnpm\[email protected]\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439.7z' '-oC:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439'
                workingDir=C:\Users\Dell\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=3.977s
⨯ 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\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355.7z
--
Path = C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355.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 : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355\darwin\10.12\lib\libcrypto.dylib
ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355\darwin\10.12\lib\libssl.dylib

                command='D:\Projects\electron-solid\node_modules\.pnpm\[email protected]\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355.7z' '-oC:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355'
                workingDir=C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign

• Above command failed, retrying 0 more times

Electron-Vite Version

2.3.0

Electron Version

31.0.2

Vite Version

5.3.1

Validations

@wjw020206
Copy link

wjw020206 commented Dec 23, 2024

Hello, are you using PowerShell or Git Bash ? I used PowerShell to package and had the same problem as you. After switching to Git Bash and executing npm run build:win, there was no such problem.

@zephyr-peak
Copy link

zephyr-peak commented Dec 25, 2024

描述错误

D:\Projects\electron-solid>npm run build:win

[email protected] build:win
npm run build && electron-builder --win

[email protected] 构建
npm 运行 typecheck && electron-vite 构建

[email protected] 类型检查
npm run typecheck:node && npm run typecheck:web

[email protected] 类型检查:node
tsc --noEmit -p tsconfig.node.json --composite false

[email protected] 类型检查:web
tsc --noEmit -p tsconfig.web.json --composite false

vite v5.4.11 正在为生产构建 SSR 包... ✓ 已转换 2 个模块。out /main/index.js 1.48 kB ✓ 耗时 511ms vite v5.4.11 正在为生产构建 SSR 包... ✓ 已转换 1 个模块。out /preload/index.js 0.42 kB ✓ 耗时 28ms vite v5.4.11 正在为生产构建... ✓ 已转换 8 个模块。 ../../out/renderer/index.html 0.55 kB ../../out/renderer/assets/electron-DtwWEc_u.svg 5.82 kB ../../out/renderer/assets/index-NdqvVkCc.css 6.75 kB ../../out/renderer/assets/index-DMdxvgsG.js 18.44 kB ✓ 构建耗时 1.53 秒 • electron-builder 版本=24.13.3 os=10.0.19045 • 加载配置文件=D:\Projects\electron-solid\electron-builder.yml • 写入有效配置文件=dist\builder-effective-config.yaml • 跳过依赖项重建原因=npmRebuild 设置为 false • 打包平台=win32 arch=x64 electron=31.7.5 appOutDir=dist\win-unpacked • 下载 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 • 下载 url= https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=11.159s ⨯ 无法执行 cause=退出状态 2 out= 7-Zip (a) 21.07 (x64) : 版权所有 (c) 1999-2021 Igor Pavlov : 2021-12-26

Scanning the drive for archives:
1 file, 5635384 bytes (5504 KiB)

Extracting archive: C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775.7z
--
Path = C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775.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 : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775\darwin\10.12\lib\libcrypto.dylib
ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775\darwin\10.12\lib\libssl.dylib

                command='D:\Projects\electron-solid\node_modules\.pnpm\[email protected]\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775.7z' '-oC:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775'
                workingDir=C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign

• 上述命令失败,重试 3 次 • 下载 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 • 下载 url= https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=4.272s ⨯ 无法执行 cause=退出状态 2 out= 7-Zip (a) 21.07 (x64) : 版权所有 (c) 1999-2021 Igor Pavlov : 2021-12-26

Scanning the drive for archives:
1 file, 5635384 bytes (5504 KiB)

Extracting archive: C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575.7z
--
Path = C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575.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 : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575\darwin\10.12\lib\libcrypto.dylib
ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575\darwin\10.12\lib\libssl.dylib

                command='D:\Projects\electron-solid\node_modules\.pnpm\[email protected]\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575.7z' '-oC:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575'
                workingDir=C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign

• 上述命令失败,重试 2 次 • 下载 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 • 下载 url= https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=4.488s ⨯ 无法执行 cause=退出状态 2 out= 7-Zip (a) 21.07 (x64) : 版权所有 (c) 1999-2021 Igor Pavlov : 2021-12-26

Scanning the drive for archives:
1 file, 5635384 bytes (5504 KiB)

Extracting archive: C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439.7z
--
Path = C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439.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 : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439\darwin\10.12\lib\libcrypto.dylib
ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439\darwin\10.12\lib\libssl.dylib

                command='D:\Projects\electron-solid\node_modules\.pnpm\[email protected]\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439.7z' '-oC:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439'
                workingDir=C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign

• 上述命令失败,再重试 1 次 • 下载 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 • 下载 url= https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=3.977s ⨯ 无法执行 cause=退出状态 2 out= 7-Zip (a) 21.07 (x64) : 版权所有 (c) 1999-2021 Igor Pavlov : 2021-12-26

Scanning the drive for archives:
1 file, 5635384 bytes (5504 KiB)

Extracting archive: C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355.7z
--
Path = C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355.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 : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355\darwin\10.12\lib\libcrypto.dylib
ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355\darwin\10.12\lib\libssl.dylib

                command='D:\Projects\electron-solid\node_modules\.pnpm\[email protected]\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355.7z' '-oC:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355'
                workingDir=C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign

• 上述命令失败,重试 0 次

Electron-Vite 版本

2.3.0

电子版本

31.0.2

Vite 版本

5.3.1

验证

请问解决了吗 我遇到了同样的问题

@wjw020206
Copy link

描述错误

D:\Projects\electron-solid>npm run build:win

[email protected] build:win
npm run build && electron-builder --win

[email protected] 构建
npm 运行 typecheck && electron-vite 构建

[email protected] 类型检查
npm run typecheck:node && npm run typecheck:web

[email protected] 类型检查:node
tsc --noEmit -p tsconfig.node.json --composite false

[email protected] 类型检查:web
tsc --noEmit -p tsconfig.web.json --composite false

vite v5.4.11 正在为生产构建 SSR 包... ✓ 已转换 2 个模块。out /main/index.js 1.48 kB ✓ 耗时 511ms vite v5.4.11 正在为生产构建 SSR 包... ✓ 已转换 1 个模块。out /preload/index.js 0.42 kB ✓ 耗时 28ms vite v5.4.11 正在为生产构建... ✓ 已转换 8 个模块。 ../../out/renderer/index.html 0.55 kB ../../out/renderer/assets/electron-DtwWEc_u.svg 5.82 kB ../../out/renderer/assets/index-NdqvVkCc.css 6.75 kB ../../out/renderer/assets/index-DMdxvgsG.js 18.44 kB ✓ 构建耗时 1.53 秒 • electron-builder 版本=24.13.3 os=10.0.19045 • 加载配置文件=D:\Projects\electron-solid\electron-builder.yml • 写入有效配置文件=dist\builder-effective-config.yaml • 跳过依赖项重建原因=npmRebuild 设置为 false • 打包平台=win32 arch=x64 electron=31.7.5 appOutDir=dist\win-unpacked • 下载 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 • 下载 url= https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=11.159s ⨯ 无法执行 cause=退出状态 2 out= 7-Zip (a) 21.07 (x64) : 版权所有 (c) 1999-2021 Igor Pavlov : 2021-12-26

Scanning the drive for archives:
1 file, 5635384 bytes (5504 KiB)

Extracting archive: C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775.7z
--
Path = C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775.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 : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775\darwin\10.12\lib\libcrypto.dylib
ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775\darwin\10.12\lib\libssl.dylib

                command='D:\Projects\electron-solid\node_modules\.pnpm\[email protected]\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775.7z' '-oC:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775'
                workingDir=C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign

• 上述命令失败,重试 3 次 • 下载 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 • 下载 url= https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=4.272s ⨯ 无法执行 cause=退出状态 2 out= 7-Zip (a) 21.07 (x64) : 版权所有 (c) 1999-2021 Igor Pavlov : 2021-12-26

Scanning the drive for archives:
1 file, 5635384 bytes (5504 KiB)

Extracting archive: C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575.7z
--
Path = C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575.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 : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575\darwin\10.12\lib\libcrypto.dylib
ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575\darwin\10.12\lib\libssl.dylib

                command='D:\Projects\electron-solid\node_modules\.pnpm\[email protected]\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575.7z' '-oC:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575'
                workingDir=C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign

• 上述命令失败,重试 2 次 • 下载 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 • 下载 url= https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=4.488s ⨯ 无法执行 cause=退出状态 2 out= 7-Zip (a) 21.07 (x64) : 版权所有 (c) 1999-2021 Igor Pavlov : 2021-12-26

Scanning the drive for archives:
1 file, 5635384 bytes (5504 KiB)

Extracting archive: C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439.7z
--
Path = C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439.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 : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439\darwin\10.12\lib\libcrypto.dylib
ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439\darwin\10.12\lib\libssl.dylib

                command='D:\Projects\electron-solid\node_modules\.pnpm\[email protected]\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439.7z' '-oC:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439'
                workingDir=C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign

• 上述命令失败,再重试 1 次 • 下载 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 • 下载 url= https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z duration=3.977s ⨯ 无法执行 cause=退出状态 2 out= 7-Zip (a) 21.07 (x64) : 版权所有 (c) 1999-2021 Igor Pavlov : 2021-12-26

Scanning the drive for archives:
1 file, 5635384 bytes (5504 KiB)

Extracting archive: C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355.7z
--
Path = C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355.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 : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355\darwin\10.12\lib\libcrypto.dylib
ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355\darwin\10.12\lib\libssl.dylib

                command='D:\Projects\electron-solid\node_modules\.pnpm\[email protected]\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355.7z' '-oC:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355'
                workingDir=C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign

• 上述命令失败,重试 0 次

Electron-Vite 版本

2.3.0

电子版本

31.0.2

Vite 版本

5.3.1

验证

请问解决了吗 我遇到了同样的问题

你可以尝试使用 Git Bash 执行 npm run build:win 命令

@zephyr-peak
Copy link

描述错误

D:\Projects\electron-solid>npm run build:win

[email protected] build:win
npm run build && electron-builder --win

[email protected] 构建
npm 运行 typecheck && electro-vite 构建

[email protected] 类型检查
npm run typecheck:node && npm run typecheck:web

[email protected] 类型检查:node
tsc --noEmit -p tsconfig.node.json --composite false

[email protected] 类型检查:web
tsc --noEmit -p tsconfig.web.json --composite false

vite v5.4.11 正在为生产构建 SSR 包... ✓ 已转换 2 个模块。out /main/index.js 1.48 kB ✓ 运行时间 511ms vite v5.4.11 正在为生产构建 SSR 包... ✓ 已转换 1 out /preload/index.js 0.42 kB ✓ 运行时间 28ms vite v5.4.11正在为生产构建... ✓ 已转换 8 个模块。 ../../out/renderer/index.html 0.55 kB ../../out/renderer/assets/electron-DtwWEc_u.svg 5.82 kB .. /../out/renderer/assets/index-NdqvVkCc.css 6.75 kB ../../out/renderer/assets/index-DMdxvgsG.js 18.44 kB ✓ 构建运行时间 1.53 秒 • electro-builder 版本=24.13.3 os=10.0.19045 • 加载配置文件=D:\Projects\ Electron -solid\electron-builder.yml •写入有效配置文件=dist\builder- effective-config.yaml • 跳过依赖项重建原因=npmRebuild 设置为 false • 压缩平台=win32 arch=x64 electro=31.7.5 appOutDir=dist\win-unpacked • 下载网址= 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 • 下载网址= https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z period=11.159s ⨯ 无法执行 Cause=退出状态 2 out= 7-邮编 (a) 21.07 (x64) : 版权所有 (c) 1999-2021 伊戈尔·巴甫洛夫 : 2021-12-26

Scanning the drive for archives:
1 file, 5635384 bytes (5504 KiB)

Extracting archive: C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775.7z
--
Path = C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775.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 : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775\darwin\10.12\lib\libcrypto.dylib
ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775\darwin\10.12\lib\libssl.dylib

                command='D:\Projects\electron-solid\node_modules\.pnpm\[email protected]\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775.7z' '-oC:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\278254775'
                workingDir=C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign

•以上失败命令,重试3次 •下载 url= https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size=5.6 MB 部分=1 • 下载网址= https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z period=4.272s ⨯ 无法执行 Cause=退出状态 2 out= 7-邮编 (a) 21.07 (x64) : 版权所有 (c) 1999-2021 伊戈尔·巴甫洛夫 : 2021-12-26

Scanning the drive for archives:
1 file, 5635384 bytes (5504 KiB)

Extracting archive: C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575.7z
--
Path = C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575.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 : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575\darwin\10.12\lib\libcrypto.dylib
ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575\darwin\10.12\lib\libssl.dylib

                command='D:\Projects\electron-solid\node_modules\.pnpm\[email protected]\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575.7z' '-oC:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\403932575'
                workingDir=C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign

•以上失败命令,重试2次 •下载 url= https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size=5.6 MB 部分=1 • 下载网址= https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z period=4.488s ⨯ 无法执行 Cause=退出状态 2 out= 7-邮编 (a) 21.07 (x64) : 版权所有 (c) 1999-2021 伊戈尔·巴甫洛夫 : 2021-12-26

Scanning the drive for archives:
1 file, 5635384 bytes (5504 KiB)

Extracting archive: C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439.7z
--
Path = C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439.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 : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439\darwin\10.12\lib\libcrypto.dylib
ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439\darwin\10.12\lib\libssl.dylib

                command='D:\Projects\electron-solid\node_modules\.pnpm\[email protected]\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439.7z' '-oC:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\262535439'
                workingDir=C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign

•以上失败命令,再重试1次 •下载 url= https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z size= 5.6 MB 部分=1 • 下载网址= https://github.com/electron-userland/electron-builder-binaries/releases/download/winCodeSign-2.6.0/winCodeSign-2.6.0.7z period=3.977s ⨯ 无法执行 Cause=退出状态 2 out= 7-邮编 (a) 21.07 (x64) : 版权所有 (c) 1999-2021 伊戈尔·巴甫洛夫 : 2021-12-26

Scanning the drive for archives:
1 file, 5635384 bytes (5504 KiB)

Extracting archive: C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355.7z
--
Path = C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355.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 : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355\darwin\10.12\lib\libcrypto.dylib
ERROR: Cannot create symbolic link : A required privilege is not held by the client. : C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355\darwin\10.12\lib\libssl.dylib

                command='D:\Projects\electron-solid\node_modules\.pnpm\[email protected]\node_modules\7zip-bin\win\x64\7za.exe' x -bd 'C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355.7z' '-oC:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign\682340355'
                workingDir=C:\Users\Dell\AppData\Local\electron-builder\Cache\winCodeSign

•以上失败命令,重试0次

Electron-Vite 版本

2.3.0

电子版本

31.0.2

版本

5.3.1

验证

求解决 我遇到了同样的问题

你可以尝试使用Git Bash执行npm run build:win命令

大佬 我遇到了这个问题 请问您遇到过吗 还请指导一下 #688

@JungleHico
Copy link

CMD run as adminstrator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants