-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed some bugs and added legacy version
- Loading branch information
1 parent
6571654
commit 73eb0cf
Showing
3 changed files
with
59 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
config.ini | ||
*.txt | ||
*.txt | ||
*ico |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,25 @@ | ||
# AutoUpdaterGUI | ||
Update your app from latest release. Works by deleting all your files in that one folder then pulling the .zip and extracting it | ||
|
||
# Downloading v1.0(depricated) | ||
Since you cannot configure using a file you have to modify the code and build the app using this command to build below and make sure to create a version.txt file or it will not launch. An empty one would suffice | ||
Update your app to the latest release by a click of a button! | ||
|
||
```pyinstaller --noconfirm --onedir --windowed --add-data "<CustomTkinter Location>/customtkinter;customtkinter/" "getupdate.py"``` | ||
## How to configure the auto updater | ||
|
||
# Downloading v1.5 and above | ||
- Launch the .exe and wait for it to generate a **config.ini** file | ||
- Set the config.ini file with your ```API_KEY``` checking the scopes of managing private repositories | ||
- Now when you launch it again it will create a **version.txt** file. That file will be used to compare the latest release with the current one. | ||
- The `USERNAME` Should be your github username | ||
- The `REPO` Should be your repository you want to pull the updates from | ||
- Set the config.ini file with your `API_KEY` checking the scopes of managing private repositories | ||
- The `VERSION_FILE` should be where your version number is. It should only be your current version. Because this file is used to compare your current version with the latest release (I recommend to not change the file name in the config.ini) | ||
- After you fill in the config.ini file launch the program again and it create a version.txt file. There should be an example if the point below this one isn't clear enough | ||
- For example `v1.0`. It should not be filled in with anything else | ||
|
||
**It should look like this when its filled in** | ||
|
||
 | ||
|
||
### Need a portable version? | ||
|
||
Instructions and download provided [here](https://github.com/noneeeeeeeeeee/AutoUpdaterGUI/releases/tag/1.0.1-Legacy) | ||
|
||
## How it works | ||
It will get the latest release from the assets(not the source code) and extract that zip into the same directory as the application | ||
|
||
It will delete all the files in the folder that the app is in then it gets the latest release from the assets(not the source code) and extract that zip into the same directory as the application. It will not delete the file thats in `APP_FILE`. That is also not an array so it can only do 1 file(I will implement arrays in the next version). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters