Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
fix(updater): failed to make AppImage as executable
Browse files Browse the repository at this point in the history
  • Loading branch information
zyrouge committed Oct 18, 2021
1 parent 42b8c1e commit 6310ce5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/pages/splash_page/splash_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ class _PageState extends State<Page> with RouteAware, DidLoadStater {
final DownloadProgress casted = x.data as DownloadProgress;
status.value = Translator.t.downloadingVersion(
'v${update.version.toString()}',
'${(casted.downloaded / 1000000).toStringAsFixed(1)}Mb',
'${(casted.total / 1000000).toStringAsFixed(1)}Mb',
'${(casted.downloaded / 1048576).toStringAsFixed(1)}Mb',
'${(casted.total / 1048576).toStringAsFixed(1)}Mb',
'${casted.percent.toStringAsFixed(1)}%',
);
break;
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/updater/linux/appimage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class LinuxAppImageUpdater with PlatformUpdater {
await newExeFile.delete(recursive: true);
await Process.run(
'chmod',
<String>['a+x', '"${currentExe.path}"'],
<String>['+777', '"${currentExe.path}"'],
runInShell: true,
);
Logger.of('LinuxAppImageUpdater')
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/updater/updater.dart
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ abstract class PlatformUpdater {
release: release,
version: foundVersion,
path: y['browser_download_url'] as String,
size: (y['size'] as int) ~/ 1000 ~/ 1000,
size: y['size'] as int,
date: date,
),
)
Expand Down

0 comments on commit 6310ce5

Please sign in to comment.