electron / forge

:electron: A complete tool for building and publishing Electron applications
https://electronforge.io
MIT License
6.48k stars 515 forks source link

HttpError: Not Found #3601

Closed LunaTMT closed 5 months ago

LunaTMT commented 5 months ago

Pre-flight checklist

Electron Forge version

5.2.4

Electron version

v30.0.6

Operating system

Ubuntu 22.04.4 LTS

Last known working Electron Forge version

No response

Expected behavior

Attempting to publish project using: npm run publish

Github: Repo & Profile

I have created the release with the "V1.0.0" tag:

I have also set up the GITHUB Token:

echo $GITHUB_TOKEN
ghp_vyVBieRGj....

forge.config.js

const { FusesPlugin } = require('@electron-forge/plugin-fuses');
const { FuseV1Options, FuseVersion } = require('@electron/fuses');

module.exports = {
  packagerConfig: {
    asar: true,

    linux: {
      executableName: 'Sphere',
      category: 'sim',
      packageCategory: 'sim',
      synopsis: 'A sphere simulation',
      maintainer: 'taylor.....com',
      vendor: '-',
      desktop: {
        Name: 'Sphere',
        Terminal: 'false',
        Type: 'Application',
        Exec: 'out/sphere-linux-x64/sphere',
        Icon: 'assets/images/deskop_icon.png',
        Categories: ['sim']
      },
      signing: {
        sign: 'AFEF4C3AC9BA7B33'
      }
    }
  },
  rebuildConfig: {},
  makers: [
    {
      name: '@electron-forge/maker-squirrel',
      config: {},
    },
    {
      name: '@electron-forge/maker-zip',
      platforms: ['darwin'],
    },
    {
      name: '@electron-forge/maker-deb',
      config: {},
    },
    {
      name: '@electron-forge/maker-rpm',
      config: {},
    },
  ],
  plugins: [
    {
      name: '@electron-forge/plugin-auto-unpack-natives',
      config: {},
    },

    new FusesPlugin({
      version: FuseVersion.V1,
      [FuseV1Options.RunAsNode]: false,
      [FuseV1Options.EnableCookieEncryption]: true,
      [FuseV1Options.EnableNodeOptionsEnvironmentVariable]: false,
      [FuseV1Options.EnableNodeCliInspectArguments]: false,
      [FuseV1Options.EnableEmbeddedAsarIntegrityValidation]: true,
      [FuseV1Options.OnlyLoadAppFromAsar]: true,
    }),
  ],
  publishers: [
    {
      name: '@electron-forge/publisher-github',
      config: {
        repository: {
          owner: 'LunaTMT',
          name: 'Sphere-JS'
        },
        prerelease: false,
        draft: true,
        authToken: process.env.GITHUB_TOKEN,
      }
    }
  ]
};

package.json

{
  "name": "sphere",
  "version": "1.0.0",
  "description": "sphere project",
  "main": "main.js",
  "license": "MIT",

  "scripts": {
    "start": "electron-forge start",
    "package": "electron-forge package",
    "make": "electron-forge make",
    "publish": "electron-forge publish"
  },

  "devDependencies": {
    "@electron-forge/cli": "^7.4.0",
    "@electron-forge/maker-squirrel": "^7.4.0",
    "@electron-forge/publisher-github": "^7.4.0",
    "electron": "^25.9.8"
  },
  "dependencies": {
    "electron-squirrel-startup": "^1.0.1",
    "update-electron-app": "^3.0.0"
  },
  "author": "Taylor Threader",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/LunaTMT/Sphere-JS.git#master"
  },
  "bugs": {
    "url": "https://github.com/LunaTMT/Sphere-JS/issues"
  },
  "homepage": "https://github.com/LunaTMT/Sphere-JS/tree/master#readme"
}

Actual behavior

npm run publish

> sphere@1.0.0 publish
> electron-forge publish

✔ Checking your system
✔ Loading configuration
✔ Resolving publish targets
  › Publishing to the following targets: github
✔ Running make command
  ✔ Loading configuration
  ✔ Resolving make targets
  ✔ Running package command
    ✔ Preparing to package application
    ✔ Running packaging hooks
      ✔ Running generateAssets hook
      ✔ Running prePackage hook
    ✔ Packaging application
      ✔ Packaging for x64 on linux [2s]
    ✔ Running postPackage hook
  ✔ Running preMake hook
  ✔ Making distributables
    ✔ Making a deb distributable for linux/x64 [1m20s]
    ✔ Making a rpm distributable for linux/x64 [38s]
  ✔ Running postMake hook
    › Artifacts available at: /home/taylor/Desktop/Projects/web_dev/Projects/html-css-js/Projects/Sphere/out/make
❯ Publishing distributables
  ✖ [publisher-github] Running the publish command
    › Not Found
    › Uploading distributable (0/2 to v1.0.0)

_An unhandled rejection has occurred inside Forge:
HttpError: Not Found
at /home/taylor/Desktop/Projects/web_dev/Projects/html-css-js/Projects/Sphere/node_modules/@octokit/request/dist-node/index.js:86:21
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async Job.doExecute (/home/taylor/Desktop/Projects/web_dev/Projects/html-css-js/Projects/Sphere/node_modules/bottleneck/light.js:405:18)_
VerteDinde commented 5 months ago

Thanks for reaching out and logging this issue! Because we treat our issues list as the team's backlog, we close issues that are questions since they don't represent a task needing to be completed. For most questions about Electron there are a lot of options.

Check out the Electron community. There are also a bunch of helpful people in this Discord that should be willing to point you in the right direction. For your question, I'd recommend the Discord - we have many active help channels and mentors, as well as fellow devs, who can help you out.