1
0
mirror of https://github.com/stonega/tsacdop synced 2025-02-03 00:47:33 +01:00

15 lines
419 B
Dart
Raw Normal View History

import 'dart:convert';
import 'dart:io';
Future<void> main() async {
final config = {
'apiKey': Platform.environment['API_KEY'],
2020-10-01 14:54:14 +08:00
'podcastIndexApiKey': Platform.environment['PI_API_KEY'],
'podcastIndexApiSecret': Platform.environment['PI_API_SECRET']
};
final filename = 'lib/.env.dart';
File(filename).writeAsString('final environment = ${json.encode(config)};');
2020-05-19 03:04:04 +08:00
print('Write successfully');
2020-08-06 22:18:32 +08:00
}