Skip to content

Commit 152acc8

Browse files
committed
fix(version): Fixed the snap/snapcraft.yaml file not being correctly updated by the version utility.
1 parent 6ffe429 commit 152acc8

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

bin/version.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,16 @@ ${fileContent.substring(changeLogHeader.length + 2)}''';
104104
pubspecFile.writeAsStringSync(editor.toString());
105105
await Process.run('dart', ['pub', 'get']);
106106
stdout.writeln('Done.');
107-
stdout.writeln('Writing version to "snapcraft.yaml"...');
108-
File snapcraftFile = File('./snapcraft.yaml');
107+
stdout.writeln('Writing version to "snap/snapcraft.yaml"...');
108+
File snapcraftFile = File('./snap/snapcraft.yaml');
109109
editor = YamlEditor(snapcraftFile.readAsStringSync());
110110
editor.update(['version'], newVersion.buildName());
111111
snapcraftFile.writeAsStringSync(editor.toString());
112112
stdout.writeln('Done.');
113113
bool commit = askYNQuestion('Do you want to commit the changes ?');
114114
if (commit) {
115115
stdout.writeln('Committing changes...');
116-
await Process.run('git', ['add', 'pubspec.yaml', 'pubspec.lock', 'CHANGELOG.md'], stdoutEncoding: utf8, stderrEncoding: utf8);
116+
await Process.run('git', ['add', 'pubspec.yaml', 'pubspec.lock', 'snap/snapcraft.yaml', 'CHANGELOG.md'], stdoutEncoding: utf8, stderrEncoding: utf8);
117117
await Process.run('git', ['commit', '-m', 'chore(version): Updated version and changelog.']);
118118
stdout.writeln('Done.');
119119
bool push = askYNQuestion('Do you want to push the changes ?');

snapcraft.yaml renamed to snap/snapcraft.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: open-authenticator
2-
version: 1.3.1
2+
version: 1.4.0
33
summary: A cross-platform OTP app, free and open-source.
44
description: Secure your online accounts with a free, open-source and lovely-crafted app.
55

0 commit comments

Comments
 (0)