Easiest Auto-Updater Yet!

  Рет қаралды 19,800

Drew Chase

Drew Chase

3 жыл бұрын

UAUP or Universal Auto Update Platform, is a framework for NodeJS that allows you to easily create an auto updater for any desktop application using either base NodeJS or Electron. You do NOT need the base application to be created in NodeJS. It just needs an executable to call apon.
------- LINKS ---------
---- UAUP-JS:
www.npmjs.com/package/uaup-js
---- Github:
github.com/DcmanProductions/U...
Check out My Website:
drewchaseproject.com
My GitHub:
github.com/DcmanProductions/

Пікірлер: 78
@Drew-Chase
@Drew-Chase 3 жыл бұрын
Example Project files can be found at: github.com/DcmanProductions/UAUP-Example
@francisiandelavictoria
@francisiandelavictoria 3 жыл бұрын
Hi there, thanks for this amazing tutorial and library but I need your help on some problems, This happened to me -the update was detected -downloaded the update -installs the update -restarts the electron app -and the new version of the app was applied -but then when I close the app and run it back again -it changes back to its old version would be great if you could help. Thanks
@garrylowther
@garrylowther Жыл бұрын
This looks like an excellent piece of work. I look forward to trying this tonight. Thanks for posting.
@garrylowther
@garrylowther Жыл бұрын
You did not explain in the video how you got from the downloaded source code files to a folder containing an EXE?
@garrylowther
@garrylowther Жыл бұрын
I used this: npx electron-packager . VS Code asked me to install electron-packager, Ok to proceed (y) It then created the C:\Users\garry\UAUP-Example\uaup-test-win32-x64 folder with the uaup-test.exe file
@garrylowther
@garrylowther Жыл бұрын
Received the following errors in VS Code when running: [104412:0901/173933.874:ERROR:cache_util_win.cc(20)] Unable to move the cache: Access is denied. (0x5) [104412:0901/173933.875:ERROR:disk_cache.cc(203)] Unable to create cache [104412:0901/173933.875:ERROR:shader_disk_cache.cc(613)] Shader Cache Creation failed: -2 [99640:0901/173934.027:ERROR:cache_util_win.cc(20)] Unable to move the cache: Access is denied. (0x5) [99640:0901/173934.028:ERROR:disk_cache.cc(203)] Unable to create cache
@CigerPro
@CigerPro 2 жыл бұрын
Sounds good, I will try it. Thanks!
@quergamertv5931
@quergamertv5931 3 жыл бұрын
uaup-js error fech not defind in index.js --> const fetch = require("node-fetch"); is missing
@krishnavyas9654
@krishnavyas9654 2 жыл бұрын
Need more clarification on it, could you please help me on that.
@harrysmith382
@harrysmith382 2 жыл бұрын
The updater works well, however it does not work after I build the app?
@Kreiseljustus
@Kreiseljustus 2 жыл бұрын
When i Update the Update Version is not written into the Version file and is always unknown
@pazzazzo
@pazzazzo 3 жыл бұрын
hi when there is no update it tells me that there is one anyway please help
@SibDesign
@SibDesign 3 жыл бұрын
So I make the electron update a separate executable that doing the checks and all that and then it launches the app executable and so that way I need to create new electron that is executable and the real app as well. Not sure If I understood it correctly.Because I want to make the checks at app launch
@ICheezI
@ICheezI 2 жыл бұрын
Do you know how to resolve the errors relating to webpack 5?
@KathouQC
@KathouQC Жыл бұрын
Hi I get I try to build it I get this in "/index.html" can't be bundled without type="module" attribute, what I'm doing wrong
@sikfreeze
@sikfreeze 2 жыл бұрын
Does it support offline fallback? I mean if the first time no Internet connection is detected, can it automatically install version one that is somehow bundled with the updater installer and then if next time Internet connection is detected, the updater then look for the most recent version on Github.
@lrjram777
@lrjram777 2 жыл бұрын
Hi, It keeps on checking for an update, It's running like a dead loop.
@helloquestionmark9942
@helloquestionmark9942 3 жыл бұрын
How did you get the files?
@meilleur102
@meilleur102 2 жыл бұрын
Hi! This solution is still working? Ive try to make it work but I can't. I open a issue on your git but I saw a old june issus is still open and you dnt reply. Is the project dead?
@thuyavantamilarasan1052
@thuyavantamilarasan1052 11 ай бұрын
Hey @Drew-Chase, wow it is a fantastic video which is very clear. Thank you for that! I have tried but I got end up with an error. Could you please help me with that to resolve? Error: Uncaught ReferenceError: require is not defined at update.js:1:14.
@Drew-Chase
@Drew-Chase 11 ай бұрын
can you send me the source code in a github repository or a gist.
@youravggamer
@youravggamer 3 жыл бұрын
I loved the previous tutorial, and made it work beautifully. Maybe one day I'll migrate to this. Thanks. Edit: This is a java app, so I'll pass
@garrylowther
@garrylowther Жыл бұрын
JavaScript is not Java
@vladoleynik58
@vladoleynik58 3 жыл бұрын
update.js:1 Uncaught ReferenceError: require is not defined at update.js:1 - what does it mean? Please, dude, help. I am not first with this trouble.
@control5089
@control5089 2 жыл бұрын
can you do a tut for python please?
@JoseLuisHernandezJimenez-dy4ox
@JoseLuisHernandezJimenez-dy4ox 5 ай бұрын
can you have some tut for python app?
@withdrawal_
@withdrawal_ 3 жыл бұрын
How can I save it to a directory like Program Files?
@Drew-Chase
@Drew-Chase 3 жыл бұрын
You'd have to run the updater as admin every time it launches
@mathsoares1
@mathsoares1 3 жыл бұрын
Hello. I cloned your repo and i can't get it to work. Progress bar doesn't work, i get an error on console saying 'C:\Users\maths\AppData\Local\Programs\uaup-test esources\app.asar ode_modules\uaup-js\index.js:274 Couln't find the Version File' then i get the following on the console: Update found! Downloading... started ended and nothing else. Can you help me? It's the exact same code, i just changed the repo settings. The screen shows only 'downloading...' and an empty progress bar
@Drew-Chase
@Drew-Chase 3 жыл бұрын
The "Couldn't find the Version File" error is okay, it just means there was no previous update found, so it would automatically download a new one. And Line 274 Is where the Version File Check occurs. A good check is if the progress bar is set correctly and if the repo is setup correctly. try going to "api.github.com/repos/{USER NAME}/{REPO NAME}/releases/latest" and make sure that the browser_download_url flag is correct (it should be a direct zip download url). If none of that works make sure your using the latest version on UAUP-JS, and if so create an issue on the github repo and was to replicate, and I'll attempt to fix it.
@carlitossb6420
@carlitossb6420 3 жыл бұрын
1 more question. Is it possible to make the updater to start the application every time? And when the application is closed to delete all of the files except the updater?
@Drew-Chase
@Drew-Chase 3 жыл бұрын
The Force parameter would auto update every time. although it would not delete the existing app. that would be something you'd have to implement on your own.
@Drew-Chase
@Drew-Chase 3 жыл бұрын
if the updater can't find the launch executable it will redownload it.
@nexusprime_here
@nexusprime_here 3 жыл бұрын
UnhandledPromiseRejectionWarning: ReferenceError: fetch is not defined at GetUpdateVersion (C:\Users\User\Nodejs_Projects\auto-update ode_modules\uaup-js\index.js:151:17) what's happening?
@TranVanong132
@TranVanong132 2 жыл бұрын
fetch just available in browser, not in nodejs, try to install fetch npm package into node modules. But for me, I’ve replaced it to axios by installing axios npm package
@nexusprime_here
@nexusprime_here 2 жыл бұрын
@@TranVanong132
@carlitossb6420
@carlitossb6420 3 жыл бұрын
Yo! When u run the updater how can you make that to be 1 application?
@Drew-Chase
@Drew-Chase 3 жыл бұрын
for it to update it needs to overwrite the application files. that can't be done if the updater is the same executable as the application. because it can't overwrite itself when its running. The easiest way to overcome this is by making them two separate applications.
@ChainArtsMotion
@ChainArtsMotion 3 жыл бұрын
This is the same package that discord uses right? Because I want to build a launch sequence very similar to that
@Drew-Chase
@Drew-Chase 3 жыл бұрын
Discord uses a custom version of squirrel updater. Which is nolonger supported. With this you will get the same experience though.
@ChainArtsMotion
@ChainArtsMotion 3 жыл бұрын
@@Drew-Chase oh ok great, thanks
@kevinpaget9773
@kevinpaget9773 3 жыл бұрын
how to get the version of the application, at the end of the installation ? gyazo.com/104b8456589b067b7d027f0942dfd9ba
@samiraarabgol
@samiraarabgol 3 жыл бұрын
will this work for bitbucket repos?
@Drew-Chase
@Drew-Chase 3 жыл бұрын
Bit Bucket is not currently supported.
@Xelarix
@Xelarix 3 жыл бұрын
Hey, is the UAUP module still working? It's throwing me error after error in the console.
@Drew-Chase
@Drew-Chase 3 жыл бұрын
Yes, it should still work. What are the errors that your getting? Also is it an Electron or NodeJS app?
@Xelarix
@Xelarix 3 жыл бұрын
@@Drew-Chase It's an Electron app, im getting the error: "TypeError: Cannot set property 'innerHTML' of undefined" I really hope I find out what i'm doing wrong as i've been at this for awhile now. I've tried changing the name of the function to something else and that cleared it up, but there's just more and more errors. (Again, i'm probably doing something wrong)
@Drew-Chase
@Drew-Chase 3 жыл бұрын
@@Xelarix Are you setting the progress bar and/or the status label. the innerHtml error is referring to one of those variables being undefined/null. make sure both of those variables are valid. (they can be left blank)
@Xelarix
@Xelarix 3 жыл бұрын
​@@Drew-Chase I'll give that a shot, give me a few minutes
@Xelarix
@Xelarix 3 жыл бұрын
​@@Drew-Chase You were right, that error's gone now, However, there's two more, i think it may be because i set up my git repo wrong: "Couln't find the Version File" and following that "Uncaught (in promise) TypeError: Cannot read property 'browser_download_url' of undefined"
@creepyant
@creepyant 2 жыл бұрын
Do you have a discord server? I am having several problems regarding this.
@creepyant
@creepyant 2 жыл бұрын
if not, pls make one ;-;
@creepyant
@creepyant 2 жыл бұрын
Got it working! Had to compress as .zip instead of .rar
@kleins0
@kleins0 3 жыл бұрын
Thank you for this video! But about the uaup, i typed the npm command to install uaup, it installed but when i require it in the update.js code it tells me this Uncaught ReferenceError: require is not defined
@Apollo30
@Apollo30 2 жыл бұрын
nodePreferences: true when creating a browser window
@TranVanong132
@TranVanong132 2 жыл бұрын
This come from electron. In webPreferences, I set contextIsolation to false when creating browser window
@nhttv9708
@nhttv9708 3 жыл бұрын
Help me!! I have a problem. I run npm start : update success But when i build win, it not working
@nhttv9708
@nhttv9708 3 жыл бұрын
i use "start": "cross-env NODE_ENV=production electron ./app/main.prod.js", : update working when build "package-win": "yarn build && electron-builder build --win --x64 ", : not working
@garrylowther
@garrylowther Жыл бұрын
How do you build?
@SibDesign
@SibDesign 3 жыл бұрын
and please make it for private reposss!
@qorncat9125
@qorncat9125 2 жыл бұрын
inspect module bro
@frostingly3687
@frostingly3687 3 жыл бұрын
bes ttutorial yet
@nhttv9708
@nhttv9708 3 жыл бұрын
appDirectory: "/path/to/application", //{Default is "Application Data/AppName"} [Optional] Where the app will receide, make sure your app has permissions to be there. versionFile: "/path/to/version.json", // {Default is "Application directory/settings/version.json"} [Optional] The Path to the Local Version File. tempDirectory: "/tmp", // {Default is "Application directory/tmp"} [Optional] Where the Update archive will download to. => looks like default is for maocs, help me to use it on windows
ОБЯЗАТЕЛЬНО СОВЕРШАЙТЕ ДОБРО!❤❤❤
00:45
Useful gadget for styling hair 🤩💖 #gadgets #hairstyle
00:20
FLIP FLOP Hacks
Рет қаралды 11 МЛН
ELECTRON: why people HATE it, why devs USE it
17:19
The Linux Experiment
Рет қаралды 186 М.
How A Steam Bug Deleted Someone’s Entire PC
11:49
Kevin Fang
Рет қаралды 948 М.
Why Are Open Source Alternatives So Bad?
13:06
Eric Murphy
Рет қаралды 591 М.
CUSTOM Installer w/ Electron
9:15
tylerlaceby
Рет қаралды 23 М.
Pranks Destroy Scam Callers- GlitterBomb Payback
26:41
Mark Rober
Рет қаралды 98 МЛН
What is the Smallest Possible .EXE?
17:57
Inkbox
Рет қаралды 340 М.
NestJS Authorization. Авторизация. JwtStrategy. JwtGuard.  PostgreSQL, ReactJS  [eng subs].
47:17
Давай Попробуем: JavaScript
Рет қаралды 10 М.
#starman #superman #viral #shorts
0:28
Starmaan
Рет қаралды 30 МЛН
THE FLOOR IS LAVA 🌋🔥! Blippi Watch Out! #blippi #shorts
0:55
Blippi - Educational Videos for Kids
Рет қаралды 17 МЛН
MAGIC FINGER TRICK TUTORIAL 😱😳
0:11
Milaad K
Рет қаралды 11 МЛН
Doing This Instead Of Studying.. 😳
0:12
Jojo Sim
Рет қаралды 22 МЛН
Хитрая ГОРНИЧНАЯ вернула ДОМ матери 😱 #shorts
0:57
Лаборатория Разрушителя
Рет қаралды 2,7 МЛН