-
Notifications
You must be signed in to change notification settings - Fork 1
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
Updating Script #1
Comments
Format was weird, hopefully you can understand that. |
I also don't see where it is supposed to send the file through google drive, would you mind pointing it out for me? |
You have to download the chat program, then install google drive (I used google drive but I think other drives may work too). Copy the chat program to a folder in your drive, the run it. (I will try to use an api to remove the drive dependency) It is still in development, all this confusion will disappear in the next versions (I hope) |
But... how will my program detect if there is a new update or not? |
What you can do is make a .version file, and inside it put the version. Then make the updater check if the numbers are the same using something like this |
Format was again screwed up by GitHub. |
The formatting was probably messed up because you use '`' to start and end your code block. For a multi line code block, try using '```'
|
@echo off echo Would you like to install the update? Y/N choice /c yn /n if %ERRORLEVEL% 1 goto install if %ERRORLEVEL% 2 goto cancel :install powershell Invoke-WebRequest -Uri "https://raw.githubusercontent.com/GabiBrawl/Bat-Chat/Application/Chat.cmd" - Outfile %temp%\Chat.cmd del /q %USERPROFILE%\Downloads\Chat.cmd move "%temp%\Chat.cmd" "%USERPROFILE%\Downloads" echo Update Successful! :cancel cls cancelling timeout /t 1 > nul exit
The text was updated successfully, but these errors were encountered: