-
Notifications
You must be signed in to change notification settings - Fork 414
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
Prevent .deb packages from being opened with archive manager. #7502
Conversation
Good progress. I can still get into double downloads. Flow feels good otherwise. |
Thank you @jessopb for the review. I have sent a fix for it. |
522ce7a
to
d4b8c9c
Compare
I tested this on linux by |
Hello @jessopb. I'm pretty sure the error you are facing isn't coming from this PR but for this: https://github.com/lbryio/lbry-desktop/pull/7492/files#diff-9e864f33e9f6d8e9a52d5df4de9861f47a3a45222f1f8fb620acd9c37193bb12R198 |
Hello, is there anything I need to update in this pr? Please let me know, happy to update if required. Thanks. |
This may be the right track, but I'm not sure how this is a solution fit for production. The problem is not only the console error, but also the lack of update notification in the app, which did not happen before, if I recall correctly. Perhaps the solution is this sort of file copy? https://www.electron.build/configuration/contents#extraresources |
386d9d0
to
4b922d4
Compare
@jessopb I have sent an update for the missing |
I'm seeing windows misreporting the title of the prerelease as a release, though it upgrades properly. |
b938d31
to
f46d008
Compare
I'm going to merge this anyways, but: Couple small bugs for .deb -
And, after cancelling download and restarting, progress bar is back at 0 and titled "Downloading Update" (but not making progress). The modal is otherwise ready to upgrade. Otherwise, the sudo-prompt worked very well. |
@@ -35,7 +36,7 @@ const LastReleaseChanges = (props: Props) => { | |||
); | |||
|
|||
useEffect(() => { | |||
const lastReleaseUrl = 'https://api.github.com/repos/lbryio/lbry-desktop/releases/latest'; | |||
const lastReleaseUrl = `https://api.github.com/repos/lbryio/lbry-desktop/releases/tags/${releaseVersion}`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's also something strange that happened - I pushed a tag with 'alpha' in it which ended up on top of the list, but there were no builds associated with it (also, the tag erroneously was nested in ""
, so updates were failing. Probably some library code that just gets the last tag with a prerelease keyword in it. After I deleted the bad tag, it was fine.
@@ -67,6 +67,7 @@ | |||
"remove-markdown": "^0.3.0", | |||
"rss": "^1.2.2", | |||
"source-map-explorer": "^2.5.2", | |||
"sudo-prompt": "^9.2.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This repository is archived on github. Something to keep an eye on, or fork for our selves.
// When downloading, we need to remove the initial | ||
// v, ending up with a file name like | ||
// LBRY_0.53.5-alpha.test7495b.deb | ||
const fileName = 'LBRY_' + (releaseVersion || '').replace('v', '') + '.deb'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could maybe use some error catching/validation. It's fine though.
frodo after the thing is done |
Fixes
Issue Number: #7495
What is the current behavior?
With Ubuntu >= 20 .deb packages are opened with archive explorer.
What is the new behavior?
.deb
packages are properly installed and the app relaunches when the installation finishes.^ if there is an error (ie, incorrect password or permission wasn't granted), we let the user know.
When the installation finishes, the app will relaunch automatically.
Other information
How to test
From
/lbry-desktop/ui/redux/actions/app.js
, replace lines 218:224 with:And update line 213 with:
yarn build
deb
package from/lbry-desktop/dist/electron
lbry
PR Checklist
Toggle...
What kind of change does this PR introduce?
Please check all that apply to this PR using "x":