[Bug] Build error in Arch Linux
zxp19821005 opened this issue · 3 comments
zxp19821005 commented
When I build in Arch Linux,I got these errors:
$ pnpm release
> ghost-chat@2.2.2 release $HOME/.cache/paru/clone/ghost-chat-2.2.2
> vue-tsc --noEmit && vite build && electron-builder
vite v4.3.9 building for production...
✓ 453 modules transformed.
dist/index.html 0.53 kB │ gzip: 0.35 kB
dist/assets/index-d9c3b62e.css 76.24 kB │ gzip: 11.02 kB
dist/assets/index-b6e66173.js 889.58 kB │ gzip: 293.40 kB
(!) Some chunks are larger than 500 kBs after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
✓ built in 3.02s
vite v4.3.9 building for production...
✓ 759 modules transformed.
dist-electron/main/background.js 435.98 kB │ gzip: 141.69 kB
✓ built in 1.60s
• electron-builder version=23.6.0 os=6.1.33-1-lts
• loaded configuration file=$HOME/.cache/paru/clone/ghost-chat-2.2.2/electron-builder.json5
• writing effective config file=release/2.2.2/builder-effective-config.yaml
• packaging platform=linux arch=x64 electron=25.0.1 appOutDir=release/2.2.2/linux-unpacked
• downloading url=https://github.com/electron/electron/releases/download/v25.0.1/electron-v25.0.1-linux-x64.zip size=95 MB parts=8
• downloaded url=https://github.com/electron/electron/releases/download/v25.0.1/electron-v25.0.1-linux-x64.zip duration=1m53.077s
• building target=AppImage arch=x64 file=release/2.2.2/Ghost-Chat-2.2.2-linux.AppImage
• application Linux category is set to default "Utility" reason=linux.category is not set and cannot map from macOS docs=https://www.electron.build/configuration/linux
• building target=deb arch=x64 file=release/2.2.2/Ghost-Chat-2.2.2-linux.deb
⨯ Please specify author 'email' in the application package.json
See https://docs.npmjs.com/files/package.json#people-fields-author-contributors
It is required to set Linux .deb package maintainer. Or you can set maintainer in the custom linux options.
(see https://www.electron.build/configuration/linux).
failedTask=build stackTrace=Error: Please specify author 'email' in the application package.json
See https://docs.npmjs.com/files/package.json#people-fields-author-contributors
It is required to set Linux .deb package maintainer. Or you can set maintainer in the custom linux options.
(see https://www.electron.build/configuration/linux).
at FpmTarget.computeFpmMetaInfoOptions ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/targets/fpm.ts:86:13)
at FpmTarget.build ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/targets/fpm.ts:144:25)
at $HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/platformPackager.ts:154:11
at async Promise.all (index 0)
at AsyncTaskManager.awaitTasks ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/builder-util@23.6.0/node_modules/builder-util/src/asyncTaskManager.ts:65:25)
at Packager.doBuild ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/packager.ts:453:5)
at Object.executeFinally ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/builder-util@23.6.0/node_modules/builder-util/src/promise.ts:12:14)
at Packager._build ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/packager.ts:376:31)
at Packager.build ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/packager.ts:337:12)
at Object.executeFinally ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/builder-util@23.6.0/node_modules/builder-util/src/promise.ts:12:14)
ELIFECYCLE Command failed with exit code 1.
Then I add an email in the package.json
like this:
{
"name": "ghost-chat",
"version": "2.2.2",
"private": true,
"description": "Standalone twitch chat overlay",
"author": {
"name": "Marco Schuster",
"email": "1@1.com"
},
I run the build command again,but still have errors:
$ pnpm release
> ghost-chat@2.2.2 release $HOME/.cache/paru/clone/ghost-chat-2.2.2
> vue-tsc --noEmit && vite build && electron-builder
vite v4.3.9 building for production...
✓ 453 modules transformed.
dist/index.html 0.53 kB │ gzip: 0.35 kB
dist/assets/index-d9c3b62e.css 76.24 kB │ gzip: 11.02 kB
dist/assets/index-b6e66173.js 889.58 kB │ gzip: 293.40 kB
(!) Some chunks are larger than 500 kBs after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
✓ built in 3.10s
vite v4.3.9 building for production...
✓ 759 modules transformed.
dist-electron/main/background.js 435.98 kB │ gzip: 141.69 kB
✓ built in 1.47s
• electron-builder version=23.6.0 os=6.1.33-1-lts
• loaded configuration file=$HOME/.cache/paru/clone/ghost-chat-2.2.2/electron-builder.json5
• writing effective config file=release/2.2.2/builder-effective-config.yaml
• packaging platform=linux arch=x64 electron=25.0.1 appOutDir=release/2.2.2/linux-unpacked
• building target=AppImage arch=x64 file=release/2.2.2/Ghost-Chat-2.2.2-linux.AppImage
• application Linux category is set to default "Utility" reason=linux.category is not set and cannot map from macOS docs=https://www.electron.build/configuration/linux
• building target=deb arch=x64 file=release/2.2.2/Ghost-Chat-2.2.2-linux.deb
• application Linux category is set to default "Utility" reason=linux.category is not set and cannot map from macOS docs=https://www.electron.build/configuration/linux
⨯ Cannot cleanup:
Error #1 --------------------------------------------------------------------------------
Error: GitHub Personal Access Token is not set, neither programmatically, nor using env "GH_TOKEN"
at new GitHubPublisher ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/electron-publish@23.6.0/node_modules/electron-publish/src/gitHubPublisher.ts:47:15)
at createPublisher ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/publish/PublishManager.ts:302:14)
at PublishManager.getOrCreatePublisher ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/publish/PublishManager.ts:221:19)
at PublishManager.scheduleUpload ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/publish/PublishManager.ts:151:28)
at PublishManager.artifactCreatedWithoutExplicitPublishConfig ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/publish/PublishManager.ts:201:14)
Error #2 --------------------------------------------------------------------------------
Error: GitHub Personal Access Token is not set, neither programmatically, nor using env "GH_TOKEN"
at new GitHubPublisher ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/electron-publish@23.6.0/node_modules/electron-publish/src/gitHubPublisher.ts:47:15)
at createPublisher ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/publish/PublishManager.ts:302:14)
at PublishManager.getOrCreatePublisher ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/publish/PublishManager.ts:221:19)
at PublishManager.scheduleUpload ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/publish/PublishManager.ts:151:28)
at PublishManager.artifactCreatedWithoutExplicitPublishConfig ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/publish/PublishManager.ts:201:14) failedTask=build stackTrace=Error: Cannot cleanup:
Error #1 --------------------------------------------------------------------------------
Error: GitHub Personal Access Token is not set, neither programmatically, nor using env "GH_TOKEN"
at new GitHubPublisher ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/electron-publish@23.6.0/node_modules/electron-publish/src/gitHubPublisher.ts:47:15)
at createPublisher ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/publish/PublishManager.ts:302:14)
at PublishManager.getOrCreatePublisher ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/publish/PublishManager.ts:221:19)
at PublishManager.scheduleUpload ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/publish/PublishManager.ts:151:28)
at PublishManager.artifactCreatedWithoutExplicitPublishConfig ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/publish/PublishManager.ts:201:14)
Error #2 --------------------------------------------------------------------------------
Error: GitHub Personal Access Token is not set, neither programmatically, nor using env "GH_TOKEN"
at new GitHubPublisher ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/electron-publish@23.6.0/node_modules/electron-publish/src/gitHubPublisher.ts:47:15)
at createPublisher ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/publish/PublishManager.ts:302:14)
at PublishManager.getOrCreatePublisher ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/publish/PublishManager.ts:221:19)
at PublishManager.scheduleUpload ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/publish/PublishManager.ts:151:28)
at PublishManager.artifactCreatedWithoutExplicitPublishConfig ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/publish/PublishManager.ts:201:14)
at throwError ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/builder-util@23.6.0/node_modules/builder-util/src/asyncTaskManager.ts:88:11)
at checkErrors ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/builder-util@23.6.0/node_modules/builder-util/src/asyncTaskManager.ts:53:9)
at AsyncTaskManager.awaitTasks ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/builder-util@23.6.0/node_modules/builder-util/src/asyncTaskManager.ts:58:5)
at PublishManager.awaitTasks ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/publish/PublishManager.ts:235:28)
at $HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/app-builder-lib@23.6.0/node_modules/app-builder-lib/src/index.ts:113:32
at Object.executeFinally ($HOME/.cache/paru/clone/ghost-chat-2.2.2/node_modules/.pnpm/builder-util@23.6.0/node_modules/builder-util/src/promise.ts:23:9)
ELIFECYCLE Command failed with exit code 1.
Enubia commented
This is not a bug, this is intended behavior.
The Access Token error shows up because my build pipeline has access, but a local release run does not.
Because of this, one can run a complete release without publishing it and test the built binaries afterward.
I will add an email tho since this seems to be missing for Linux build files.
Everything else looks okay, the binary should be built in the release
folder within the current version number directory.
zxp19821005 commented
Thank you!