Include commit id in version tag
This commit is contained in:
parent
885fcfa27b
commit
30b1e40d8c
|
@ -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
|
||||
|
|
|
@ -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())
|
||||
|
|
19
pubspec.lock
19
pubspec.lock
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue