mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
2
.github/workflows/android.yml
vendored
2
.github/workflows/android.yml
vendored
@@ -67,7 +67,7 @@ jobs:
|
||||
- name: flutter build apk
|
||||
run: |
|
||||
chmod +x lib/scripts/build.dart
|
||||
dart lib/scripts/build.dart
|
||||
dart lib/scripts/build.dart "true"
|
||||
flutter build apk --release --split-per-abi
|
||||
|
||||
- name: 上传
|
||||
|
||||
@@ -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