hazel icon indicating copy to clipboard operation
hazel copied to clipboard

Doesn't work for Github private repo

Open Aarbel opened this issue 5 years ago • 10 comments

The routes of hazel doesn't seem to work with private repo

DOESN'T WORK

const server = "https://clovis-desktop-hazel-upd.aarbel.now.sh"
const updaterFeedURL = `${server}/update/${process.platform}/${app.getVersion()}`
…
autoUpdater.setFeedURL(updaterFeedURL);

Error: Unhandled rejection Error: Cannot find channel "latest-mac.yml" update info: HttpError: 404

Please double check that your authentication token is correct. Due to security reasons actual status maybe not reported, but 404.\n

WORKS

const updaterFeedURL = {
    provider: 'github',
    owner: 'my-team',
    repo: 'my-repo',
    token: 'my-github-token',
}

autoUpdater.setFeedURL(updaterFeedURL);

Aarbel avatar Apr 13 '19 13:04 Aarbel

Hello, that's certainly mean you're not providing "latest-mac.yml" in your mac release, can u check it out ?

KASOGIT avatar Jul 11 '19 06:07 KASOGIT

I do provide latest-mac.yml

Aarbel avatar Jul 11 '19 10:07 Aarbel

https://github.com/zeit/hazel/issues/55

adhambadr avatar Jul 26 '19 13:07 adhambadr

just add

URL="https://api.github.com/repos/<my-team>/<my-repo>/releases?access_token=<YOURGITHUBTOKEN>"

adhambadr avatar Jul 26 '19 13:07 adhambadr

just add

URL="https://api.github.com/repos/<my-team>/<my-repo>/releases?access_token=<YOURGITHUBTOKEN>"

This seems dicey from a security perspective and is really just working around a bug. See #76 for a better fix.

cap10morgan avatar Oct 15 '19 18:10 cap10morgan

This is amazing. Thanks so much @cap10morgan for this PR.

@leo Is this something you could spare some attention to? It would be a huge benefit for those of us using this amazing project but within the constraints of a private repo without having to maintain our own fork of the project.

Something else to note, as of electron 8.2.5 it seems the parameter of setFeedUrl has changed to an object. e.g. so we might update the documentation to reflect that.

autoUpdater.setFeedUrl({ url: `....` })

b-zurg avatar May 07 '20 19:05 b-zurg

This issue resolve in my pull request #98 . Example for autoUpdater.ts.

import { autoUpdater } from "electron-updater";

const server = "https://hazel-xxxx.vercel.app";
const feed = `${server}/update/${process.platform}/${app.getVersion()}`;

autoUpdater.setFeedURL(feed);

backroot avatar Oct 04 '20 09:10 backroot

This software is abandoned. Beware all ye who enter here.

cap10morgan avatar Jun 18 '22 21:06 cap10morgan

This software is abandoned. Beware all ye who enter here.

Nuts and now hazel is abandoned. Any hints of any fork/project to implement autoupdater without needing signed code?

Tulipesz avatar Aug 14 '22 22:08 Tulipesz

This software is abandoned. Beware all ye who enter here.

This is such a bummer! I looked at Nuts and then realized it was abandoned... then looked at Hazel and now finding it appears to be abandoned too?

The most frustrating part is that Electron official docs still recommend both of these as two top options! Anyone have any advice?

GitMurf avatar Oct 20 '23 20:10 GitMurf