mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-15 07:56:11 +08:00

This means the file can be executed on Unix Systems directly Also added execution permission to `setup_env.dart` `./scripts/setup_env.dart` works now
15 lines
296 B
Dart
Executable File
15 lines
296 B
Dart
Executable File
#!/usr/bin/env dart
|
|
|
|
import 'dart:convert';
|
|
import 'dart:io';
|
|
|
|
Future<void> main() async {
|
|
final config = {
|
|
'sentry': Platform.environment['SENTRY_DSN'],
|
|
};
|
|
|
|
final filename = 'lib/.env.dart';
|
|
await File(filename)
|
|
.writeAsString('final environment = ${json.encode(config)};');
|
|
}
|