You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -77,6 +78,7 @@ To initialize the Updater class and start the update process, follow these steps
77
78
> `$releaseExclusions` (Optional) An array of directories or files in the release to exclude from the update.<br>
78
79
> `$clear` (Optional) Clear the downloaded file after the update has completed if set to true.<br>
79
80
> `$dir` (Optional) Set the directory of the update. Default to current working dir.
81
+
> `$autoUpdate` (Optional) Whether or not to automatically update the project. Defaults to true.
80
82
81
83
> The exclusions array keys:
82
84
@@ -92,22 +94,33 @@ To initialize the Updater class and start the update process, follow these steps
92
94
]
93
95
```
94
96
95
-
If a new release is available, the class will update your project automatically.
97
+
To check the release version, use the following code:
98
+
99
+
```
100
+
$update->release();
101
+
```
102
+
103
+
If a new release is available, the class will update your project automatically.
104
+
To update manually, set $autoUpdate to false and use the following code to start update:
105
+
106
+
```
107
+
$update->update();
108
+
```
96
109
97
110
To check the status of the update, use the following code:
98
-
111
+
99
112
```
100
113
$update->status();
101
114
```
102
115
103
116
The update status can have the following int values:
104
117
105
-
> `Updater::STARTED` (100): Indicates that the update has started.<br>
118
+
> `Updater::INIT` (100): Indicates that update class has been initialized.<br>
106
119
> `Updater::UPDATED` (200): Indicates that the update was successful.<br>
107
120
> `Updater::LATEST` (204): Indicates that the project is already up to date.<br>
108
121
> `Updater::ERROR` (500): Indicates that the update failed.<br>
109
-
> `Updater::BUSY` (504): Indicates that an update process is already in progress.<br>
122
+
> `Updater::BUSY` (504): Indicates that an update process is in progress.<br>
110
123
111
124
## Conclusion
112
125
113
-
The GitHub Release Updater is a simple and efficient way to keep your project up-to-date with the latest releases on GitHub. It is easy to use and can save you a lot of time and effort. If you have any questions or issues, please feel free to contact us.
126
+
The GitHub Release Updater is a simple and efficient way to keep your project up-to-date with the latest releases on GitHub. It is easy to use and can save you a lot of time and effort. If you have any questions or issues, please feel free create an issue.
0 commit comments