mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-22 03:29:36 +00:00
Added script for generate key.properties file.
This commit is contained in:
parent
237141d4a7
commit
ed336bdd18
1 changed files with 14 additions and 0 deletions
14
tool/generate_android_key_properties.dart
Normal file
14
tool/generate_android_key_properties.dart
Normal file
|
@ -0,0 +1,14 @@
|
|||
import 'dart:io';
|
||||
|
||||
const outputPath = 'android/key.properties';
|
||||
|
||||
Future<void> main(List<String> args) async {
|
||||
final output = args.fold('', (String acc, String arg) => acc + arg + '\n');
|
||||
final outputFile = File(outputPath);
|
||||
|
||||
if (outputFile.existsSync()) {
|
||||
await outputFile.delete();
|
||||
}
|
||||
|
||||
await outputFile.writeAsString(output);
|
||||
}
|
Loading…
Reference in a new issue