File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,10 @@ Future<String> getEnglishChangelog() async {
25
25
return changelog;
26
26
}
27
27
28
- Future symlinkChangelog (String localeCode) async {
29
- final fileNormal = File ('metadata/$localeCode /changelogs/$buildNumber .txt' );
30
- final fileFDroid =
31
- Link ('metadata/$localeCode /changelogs/${buildNumber }3.txt' );
32
- if (fileFDroid.existsSync ()) return ;
33
- await fileFDroid.create (fileNormal.path);
28
+ Future copyChangelogForFdroid (String localeCode) async {
29
+ final normal = File ('metadata/$localeCode /changelogs/$buildNumber .txt' );
30
+ final fdroid = File ('metadata/$localeCode /changelogs/${buildNumber }3.txt' );
31
+ await normal.copy (fdroid.path);
34
32
}
35
33
36
34
void main () async {
@@ -67,7 +65,7 @@ void main() async {
67
65
final stepPrefix = '${(i + 1 ).toString ().padLeft (total .length )}/$total ' ;
68
66
69
67
if (localeCode == 'en' ) {
70
- await symlinkChangelog ('en-US' );
68
+ await copyChangelogForFdroid ('en-US' );
71
69
print ('$stepPrefix . Skipped $localeCode ($localeName )' );
72
70
continue ;
73
71
}
@@ -156,7 +154,7 @@ void main() async {
156
154
157
155
await file.create (recursive: true );
158
156
await file.writeAsString (translatedChangelog);
159
- await symlinkChangelog (localeCode);
157
+ await copyChangelogForFdroid (localeCode);
160
158
}
161
159
162
160
if (someTranslationsFailed) {
You can’t perform that action at this time.
0 commit comments