parent
78fc443532
commit
469effd9ef
File diff suppressed because it is too large
Load Diff
@ -1,10 +1,3 @@
|
|||||||
name: cake_wallet
|
|
||||||
description: Cake Wallet.
|
|
||||||
version: 4.2.7+62
|
|
||||||
|
|
||||||
environment:
|
|
||||||
sdk: ">=2.7.0 <3.0.0"
|
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
flutter:
|
flutter:
|
||||||
sdk: flutter
|
sdk: flutter
|
@ -0,0 +1,6 @@
|
|||||||
|
name: cake_wallet
|
||||||
|
description: Cake Wallet.
|
||||||
|
version: 0.0.0
|
||||||
|
|
||||||
|
environment:
|
||||||
|
sdk: ">=2.7.0 <3.0.0"
|
@ -0,0 +1,25 @@
|
|||||||
|
import 'dart:io';
|
||||||
|
|
||||||
|
const pubspecBasePath = 'pubspec_base.yaml';
|
||||||
|
const pubspecDescriptionPath = 'pubspec_description.yaml';
|
||||||
|
const outputPubspecPath = 'pubspec.yaml';
|
||||||
|
|
||||||
|
Future<void> main(List<String> args) async {
|
||||||
|
final pubspecBase = File(pubspecBasePath);
|
||||||
|
final pubspecDescription = File(pubspecDescriptionPath);
|
||||||
|
|
||||||
|
if (!pubspecBase.existsSync() || !pubspecDescription.existsSync()) {
|
||||||
|
throw('$pubspecBasePath or $pubspecDescriptionPath doesn't exists');
|
||||||
|
}
|
||||||
|
|
||||||
|
final pubspecBaseContent = await pubspecBase.readAsString();
|
||||||
|
final pubspecDescriptionContent = await pubspecDescription.readAsString();
|
||||||
|
final pubSpecContent = pubspecDescriptionContent + '\n\n' + pubspecBaseContent;
|
||||||
|
final outputPubspec = File(outputPubspecPath);
|
||||||
|
|
||||||
|
if (outputPubspec.existsSync()) {
|
||||||
|
await outputPubspec.delete();
|
||||||
|
}
|
||||||
|
|
||||||
|
await outputPubspec.writeAsString(pubSpecContent);
|
||||||
|
}
|
Loading…
Reference in new issue