Skip to content

Commit cf02b82

Browse files
committed
Remove appimagebuilder from set version
1 parent 6c0faf4 commit cf02b82

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

tools/set_version.dart

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ Future<void> main(List<String> args) async {
5959
'Updating the version in the pubspec.yaml from $lastVersion to $newVersion',
6060
);
6161

62-
await updateAppImageVersion(version);
6362
await updateDebianVersion(version);
6463
if (results['changelog']) {
6564
var changelogFile = File('metadata/en-US/changelogs/$newBuildNumber.txt');
@@ -71,15 +70,6 @@ Future<void> main(List<String> args) async {
7170
print('Successfully updated!');
7271
}
7372

74-
Future<void> updateAppImageVersion(String version) async {
75-
var file = File('app/AppImageBuilder.yml');
76-
var lines = await file.readAsLines();
77-
lines[13] = ' version: $version';
78-
lines.add('');
79-
await file.writeAsString(lines.join('\r\n'));
80-
print('Successfully updated app image version to $version');
81-
}
82-
8373
Future<void> updateDebianVersion(String version) async {
8474
var file = File('app/linux/debian/DEBIAN/control');
8575
var lines = await file.readAsLines();
@@ -104,7 +94,7 @@ Future<void> updateAppData(String version) async {
10494
var dateString = DateFormat('yyyy-MM-dd').format(currentDate);
10595
var line = '\t\t<release version="$version" date="$dateString" />';
10696
var lines = List<String>.from(await file.readAsLines());
107-
lines.insert(41, line);
97+
lines.insert(67, line);
10898
await file.writeAsString(lines.join('\n'));
10999
print('Successfully updated appdata version to $version');
110100
}

0 commit comments

Comments
 (0)