Include commit id in version tag

This commit is contained in:
Hanh 2022-12-19 06:10:05 +08:00
parent 885fcfa27b
commit 30b1e40d8c
4 changed files with 19 additions and 7 deletions

View File

@ -13,6 +13,7 @@ copy runtime\* build\windows\runner\Release
copy warp_api_ffi.dll build\windows\runner\Release
flutter pub run msix:create
copy runtime\* build\windows\runner\Release
pushd build\windows\runner
move-item Release\YWallet.msix .
rename-item Release ywallet

View File

@ -15,7 +15,8 @@ Future<void> showAbout(BuildContext context) async {
final template = Template(contentTemplate);
var content = template.renderString({'APP': APP_NAME});
String? versionString;
versionString = "${s.version}: $packageVersion";
final id = commitId.substring(0, 8);
versionString = "${s.version}: $packageVersion/$id";
if (WarpApi.hasCuda())
versionString += "-CUDA";
if (WarpApi.hasMetal())

View File

@ -158,10 +158,12 @@ packages:
build_version:
dependency: "direct dev"
description:
name: build_version
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
path: "."
ref: HEAD
resolved-ref: "1dc89c5fe87c4acf0f09bd35eacb651d3b60d3ed"
url: "https://github.com/hhanh00/build_version_git.git"
source: git
version: "2.1.3"
built_collection:
dependency: transitive
description:
@ -571,6 +573,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "7.2.0"
git:
dependency: transitive
description:
name: git
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.0"
glob:
dependency: transitive
description:
@ -1482,5 +1491,5 @@ packages:
source: hosted
version: "3.1.1"
sdks:
dart: ">=2.17.0 <3.0.0"
dart: ">=2.18.0 <3.0.0"
flutter: ">=2.10.0"

View File

@ -87,7 +87,8 @@ dependencies:
dev_dependencies:
build_runner: ^2.1.2
build_version: ^2.0.0
build_version:
git: https://github.com/hhanh00/build_version_git.git
mobx_codegen: ^2.0.3
json_serializable: ^6.1.5
flutter_launcher_icons: any