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

Invalid configuration object. #6

Open
linonetwo opened this issue Aug 10, 2024 · 0 comments
Open

Invalid configuration object. #6

linonetwo opened this issue Aug 10, 2024 · 0 comments

Comments

@linonetwo
Copy link

linonetwo commented Aug 10, 2024

tiddly-gittly/TidGi-Desktop@a41966e

I add this to forge.config.js

    {
      name: '@rabbitholesyndrome/electron-forge-maker-portable',
      platforms: ['win32'],
      config: (arch) => {
        return {
          artifactName: `Portable-TidGi-Windows-${arch}.exe`,
          installerIcon: 'build-resources/icon-installer.ico',
        };
      },
    },

with

    "electron": "31.1.0",
    "electron-squirrel-startup": "1.0.1",
    "@electron-forge/cli": "7.4.0",
    "@electron-forge/plugin-auto-unpack-natives": "7.4.0",
    "@electron-forge/plugin-webpack": "7.4.0",
    "@rabbitholesyndrome/electron-forge-maker-portable": "^0.2.0",

On CI https://github.com/tiddly-gittly/TidGi-Desktop/actions/runs/10330366460/job/28599302313 Error is:

❯ Making a squirrel distributable for win32/x64
❯ Making a portable distributable for win32/x64
• electron-builder version=23.6.0 os=10.0.20348
• artifacts will be published if draft release exists reason=CI detected
✖ Making a portable distributable for win32/x64 [FAILED: Invalid configuration object. electron-builder 23.6.0 has been initialized using a configuration object that does not match the API schema.

  • configuration has an unknown property 'installerIcon'. These properties are valid:
    object { afterAllArtifactBuild?, afterPack?, afterSign?, apk?, appId?, appImage?, appx?, appxManifestCreated?, artifactBuildCompleted?, artifactBuildStarted?, artifactName?, asar?, asarUnpack?, beforeBuild?, beforePack?, buildDependenciesFromSource?, buildNumber?, buildVersion?, compression?, copyright?, cscKeyPassword?, cscLink?, deb?, defaultArch?, detectUpdateChannel?, directories?, dmg?, electronBranding?, electronCompile?, electronDist?, electronDownload?, electronUpdaterCompatibility?, electronVersion?, executableName?, extends?, extraFiles?, extraMetadata?, extraResources?, fileAssociations?, files?, flatpak?, forceCodeSigning?, framework?, freebsd?, generateUpdatesFilesForAllChannels?, icon?, includePdb?, includeSubNodeModules?, launchUiVersion?, linux?, mac?, mas?, masDev?, msi?, msiProjectCreated?, nodeGypRebuild?, nodeVersion?, npmArgs?, npmRebuild?, nsis?, nsisWeb?, onNodeModuleFile?, p5p?, pacman?, pkg?, portable?, productName?, protocols?, publish?, releaseInfo?, remoteBuild?, removePackageKeywords?, removePackageScripts?, rpm?, snap?, squirrelWindows?, target?, win?, $schema? }
    -> Configuration Options
    How to fix:
    1. Open https://www.electron.build/configuration/configuration
    2. Search the option name on the page (or type in into Search to find across the docs).
      * Not found? The option was deprecated or not exists (check spelling).
      * Found? Check that the option in the appropriate place. e.g. "title" only in the "dmg", not in the root.
      ]
      ✖ Making distributables [FAILED: Invalid configuration object. electron-builder 23.6.0 has been initialized using a configuration object that does not match the API schema.
  • configuration has an unknown property 'installerIcon'. These properties are valid:
    object { afterAllArtifactBuild?, afterPack?, afterSign?, apk?, appId?, appImage?, appx?, appxManifestCreated?, artifactBuildCompleted?, artifactBuildStarted?, artifactName?, asar?, asarUnpack?, beforeBuild?, beforePack?, buildDependenciesFromSource?, buildNumber?, buildVersion?, compression?, copyright?, cscKeyPassword?, cscLink?, deb?, defaultArch?, detectUpdateChannel?, directories?, dmg?, electronBranding?, electronCompile?, electronDist?, electronDownload?, electronUpdaterCompatibility?, electronVersion?, executableName?, extends?, extraFiles?, extraMetadata?, extraResources?, fileAssociations?, files?, flatpak?, forceCodeSigning?, framework?, freebsd?, generateUpdatesFilesForAllChannels?, icon?, includePdb?, includeSubNodeModules?, launchUiVersion?, linux?, mac?, mas?, masDev?, msi?, msiProjectCreated?, nodeGypRebuild?, nodeVersion?, npmArgs?, npmRebuild?, nsis?, nsisWeb?, onNodeModuleFile?, p5p?, pacman?, pkg?, portable?, productName?, protocols?, publish?, releaseInfo?, remoteBuild?, removePackageKeywords?, removePackageScripts?, rpm?, snap?, squirrelWindows?, target?, win?, $schema? }
    -> Configuration Options
    How to fix:
    1. Open https://www.electron.build/configuration/configuration
    2. Search the option name on the page (or type in into Search to find across the docs).
      * Not found? The option was deprecated or not exists (check spelling).
      * Found? Check that the option in the appropriate place. e.g. "title" only in the "dmg", not in the root.
      ]

An unhandled rejection has occurred inside Forge:
ValidationError: Invalid configuration object. electron-builder 23.6.0 has been initialized using a configuration object that does not match the API schema.

  • configuration has an unknown property 'installerIcon'. These properties are valid:
    object { afterAllArtifactBuild?, afterPack?, afterSign?, apk?, appId?, appImage?, appx?, appxManifestCreated?, artifactBuildCompleted?, artifactBuildStarted?, artifactName?, asar?, asarUnpack?, beforeBuild?, beforePack?, buildDependenciesFromSource?, buildNumber?, buildVersion?, compression?, copyright?, cscKeyPassword?, cscLink?, deb?, defaultArch?, detectUpdateChannel?, directories?, dmg?, electronBranding?, electronCompile?, electronDist?, electronDownload?, electronUpdaterCompatibility?, electronVersion?, executableName?, extends?, extraFiles?, extraMetadata?, extraResources?, fileAssociations?, files?, flatpak?, forceCodeSigning?, framework?, freebsd?, generateUpdatesFilesForAllChannels?, icon?, includePdb?, includeSubNodeModules?, launchUiVersion?, linux?, mac?, mas?, masDev?, msi?, msiProjectCreated?, nodeGypRebuild?, nodeVersion?, npmArgs?, npmRebuild?, nsis?, nsisWeb?, onNodeModuleFile?, p5p?, pacman?, pkg?, portable?, productName?, protocols?, publish?, releaseInfo?, remoteBuild?, removePackageKeywords?, removePackageScripts?, rpm?, snap?, squirrelWindows?, target?, win?, $schema? }
    -> Configuration Options
    How to fix:
    1. Open https://www.electron.build/configuration/configuration
    2. Search the option name on the page (or type in into Search to find across the docs).
      * Not found? The option was deprecated or not exists (check spelling).
      * Found? Check that the option in the appropriate place. e.g. "title" only in the "dmg", not in the root.
      at validate (D:\a\TidGi-Desktop\TidGi-Desktop\node_modules.pnpm@develar+schema-utils@2.6.5\node_modules@develar\schema-utils\dist\validate.js:86:11)
      at Object.validateConfig (D:\a\TidGi-Desktop\TidGi-Desktop\node_modules.pnpm\app-builder-lib@23.6.0\node_modules\app-builder-lib\src\util\config.ts:240:3)
      at Packager._build (D:\a\TidGi-Desktop\TidGi-Desktop\node_modules.pnpm\app-builder-lib@23.6.0\node_modules\app-builder-lib\src\packager.ts:342:5)
      at Packager.build (D:\a\TidGi-Desktop\TidGi-Desktop\node_modules.pnpm\app-builder-lib@23.6.0\node_modules\app-builder-lib\src\packager.ts:337:12)
      at Object.executeFinally (D:\a\TidGi-Desktop\TidGi-Desktop\node_modules.pnpm\builder-util@23.6.0\node_modules\builder-util\src\promise.ts:12:14)
      at D:\a\TidGi-Desktop\TidGi-Desktop\node_modules.pnpm@electron-forge+core@7.4.0_encoding@0.1.13\node_modules@electron-forge\core\src\api\make.ts:280:41
      at _Task.taskFn (D:\a\TidGi-Desktop\TidGi-Desktop\node_modules.pnpm@electron-forge+tracer@7.4.0\node_modules@electron-forge\tracer\src\index.ts:51:14)
      at _Task.run (D:\a\TidGi-Desktop\TidGi-Desktop\node_modules.pnpm\listr2@7.0.2\node_modules\listr2\dist\index.cjs:2063:11)
      25h ELIFECYCLE  Command failed with exit code 1.
      Error: Process completed with exit code 1.
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

1 participant