Merge pull request #139 from krawieck/windows-version

This commit is contained in:
Filip Krawczyk 2021-02-06 21:37:22 +01:00 committed by GitHub
commit 79fb42785c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

View File

@ -16,7 +16,10 @@ class AboutTile extends HookWidget {
@override
Widget build(BuildContext context) {
final packageInfoSnap = useMemoFuture(PackageInfo.fromPlatform);
final packageInfoSnap = useMemoFuture(
() => PackageInfo.fromPlatform()
.then((e) => e, onError: (_, __) => PackageInfo(version: '')),
);
final assetBundle = DefaultAssetBundle.of(context);
final changelogSnap =
useMemoFuture(() => assetBundle.loadString('CHANGELOG.md'));

View File

@ -91,6 +91,7 @@ add_custom_command(
${FLUTTER_TOOL_ENVIRONMENT}
"${FLUTTER_ROOT}/packages/flutter_tools/bin/tool_backend.bat"
windows-x64 $<CONFIG>
VERBATIM
)
add_custom_target(flutter_assemble DEPENDS
"${FLUTTER_LIBRARY}"

View File

@ -89,11 +89,11 @@ BEGIN
BEGIN
BLOCK "040904e4"
BEGIN
VALUE "CompanyName", "com.example" "\0"
VALUE "CompanyName", "com.krawieck" "\0"
VALUE "FileDescription", "A new Flutter project." "\0"
VALUE "FileVersion", VERSION_AS_STRING "\0"
VALUE "InternalName", "lemmur" "\0"
VALUE "LegalCopyright", "Copyright (C) 2020 com.example. All rights reserved." "\0"
VALUE "LegalCopyright", "Copyright (C) 2020 com.krawieck. All rights reserved." "\0"
VALUE "OriginalFilename", "lemmur.exe" "\0"
VALUE "ProductName", "lemmur" "\0"
VALUE "ProductVersion", VERSION_AS_STRING "\0"