mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 03:06:59 +08:00
@@ -1,6 +1,6 @@
|
||||
import 'dart:io';
|
||||
|
||||
void main() async {
|
||||
void main(Iterable<String> args) async {
|
||||
final pubspecFile = File('pubspec.yaml');
|
||||
final lines = await pubspecFile.readAsLines();
|
||||
|
||||
@@ -18,7 +18,7 @@ void main() async {
|
||||
'HEAD',
|
||||
])).stdout.toString().trim();
|
||||
|
||||
if (Platform.isLinux) {
|
||||
if (args.isNotEmpty) {
|
||||
versionName += '-${commitHash.substring(0, 9)}';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user