pull/1566/head
parent
35a9502d7e
commit
7207dbf532
8 changed files with 48 additions and 7 deletions
@ -1,7 +1,7 @@ |
|||||||
#!/bin/bash |
#!/bin/bash |
||||||
|
|
||||||
# Important: make sure to run the script in the root folder of the repo: |
# Important: make sure to run the script in the root folder of the repo: |
||||||
# ./scripts/regenerate-translations.sh |
# ./scripts/regenerate_translations.sh |
||||||
# otherwise the script could delete the wrong folder in rare cases |
# otherwise the script could delete the wrong folder in rare cases |
||||||
|
|
||||||
echo "" |
echo "" |
@ -0,0 +1,24 @@ |
|||||||
|
import 'dart:io' show File; |
||||||
|
|
||||||
|
import 'package:yaml_edit/yaml_edit.dart'; |
||||||
|
|
||||||
|
// You must run this script in the root folder of the repo and not inside the scripts |
||||||
|
|
||||||
|
// ignore: unused_import |
||||||
|
import '../version.dart'; |
||||||
|
|
||||||
|
Future<void> main(List<String> args) async { |
||||||
|
await updatePubspecYamlFile('./pubspec.yaml'); |
||||||
|
await updatePubspecYamlFile('./flutter_quill_extensions/pubspec.yaml'); |
||||||
|
await updatePubspecYamlFile('./flutter_quill_test/pubspec.yaml'); |
||||||
|
await updatePubspecYamlFile('./packages/quill_html_converter/pubspec.yaml'); |
||||||
|
} |
||||||
|
|
||||||
|
Future<void> updatePubspecYamlFile(String path) async { |
||||||
|
final file = File(path); |
||||||
|
final yaml = await file.readAsString(); |
||||||
|
final yamlEditor = YamlEditor(yaml)..update(['version'], version); |
||||||
|
await file.writeAsString(yamlEditor.toString()); |
||||||
|
// ignore: avoid_print |
||||||
|
print(yamlEditor.toString()); |
||||||
|
} |
@ -0,0 +1 @@ |
|||||||
|
const version = '9.0.0-dev'; |
Loading…
Reference in new issue