@@ -13,8 +13,7 @@ void main(List<String> arguments) async {
13
13
'You must run this script with a metadata file argument, using the --meta flag.' );
14
14
}
15
15
if (arguments.length == metaIndex + 1 ) {
16
- throw Exception (
17
- 'The --meta flag must be followed by the path to the metadata file.' );
16
+ throw Exception ('The --meta flag must be followed by the path to the metadata file.' );
18
17
}
19
18
20
19
final metaFile = File (arguments[metaIndex + 1 ]);
@@ -26,20 +25,17 @@ void main(List<String> arguments) async {
26
25
27
26
final fetchFromGithub = arguments.contains ('--github' );
28
27
29
- final outputDir =
30
- Directory ('${Directory .current .path }/flatpak_generator exports' );
28
+ final outputDir = Directory ('${Directory .current .path }/flatpak_generator exports' );
31
29
outputDir.createSync ();
32
30
33
31
final manifestGenerator = FlatpakManifestGenerator (meta);
34
- final manifestContent =
35
- await manifestGenerator.generateFlatpakManifest (fetchFromGithub);
32
+ final manifestContent = await manifestGenerator.generateFlatpakManifest (fetchFromGithub);
36
33
final manifestPath = '${outputDir .path }/${meta .appId }.json' ;
37
34
final manifestFile = File (manifestPath);
38
35
manifestFile.writeAsStringSync (manifestContent);
39
36
print ('Generated $manifestPath ' );
40
37
41
- final flathubJsonContent =
42
- await manifestGenerator.generateFlathubJson (fetchFromGithub);
38
+ final flathubJsonContent = await manifestGenerator.generateFlathubJson (fetchFromGithub);
43
39
if (flathubJsonContent != null ) {
44
40
final flathubJsonPath = '${outputDir .path }/flathub.json}' ;
45
41
final flathubJsonFile = File (flathubJsonPath);
@@ -118,8 +114,7 @@ class FlatpakManifestGenerator {
118
114
119
115
const encoder = JsonEncoder .withIndent (' ' );
120
116
121
- final onlyArchListInput =
122
- fetchFromGithub ? _githubArchSupport! : _localArchSupport! ;
117
+ final onlyArchListInput = fetchFromGithub ? _githubArchSupport! : _localArchSupport! ;
123
118
124
119
final onlyArchList = List <String >.empty (growable: true );
125
120
for (final e in onlyArchListInput.entries) {
@@ -135,8 +130,7 @@ class FlatpakManifestGenerator {
135
130
}
136
131
}
137
132
138
- void _lazyGenerateArchSupportMap (
139
- bool fetchFromGithub, List <ReleaseAsset > assets) {
133
+ void _lazyGenerateArchSupportMap (bool fetchFromGithub, List <ReleaseAsset > assets) {
140
134
if (fetchFromGithub) {
141
135
if (_githubArchSupport == null ) {
142
136
_githubArchSupport = < CPUArchitecture , bool > {
0 commit comments