update readme

This commit is contained in:
Junyuan Feng
2022-05-25 13:51:37 +08:00
parent 9cbd29d3c1
commit 3ed476275f
21 changed files with 51 additions and 28 deletions

View File

@@ -57,7 +57,7 @@ Future<void> doUpdate(BuildContext context, {bool force = false}) async {
update.min > BuildData.build
? 'Your version is too old. \nPlease update to v1.0.$newest.'
: 'Update: v1.0.$newest available. \n${update.changelog}',
'Update', () async {
s.update, () async {
if (Platform.isAndroid) {
await RUpgrade.upgrade(update.android,
fileName: update.android.split('/').last, isAutoRequestInstall: true);