Skip to content

Commit 9e2d52f

Browse files
committed
chore: align the version with the workflow
1 parent 83c9c42 commit 9e2d52f

File tree

6 files changed

+14
-5
lines changed

6 files changed

+14
-5
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,7 @@
154154
## 0.4.0
155155

156156
- feat: customize keywords
157+
158+
## 2.5.0
159+
160+
- chore: align the version with the workflow

lib/assets/assets.g.dart

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/assets/info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3208,7 +3208,7 @@ chmod +x alfred_jetbrains_cli
32083208
</dict>
32093209
</array>
32103210
<key>version</key>
3211-
<string>2.5.0</string>
3211+
<string>{{WORKFLOW_VERSION}}</string>
32123212
<key>webaddress</key>
32133213
<string>https://github.com/bchatard/alfred-jetbrains/</string>
32143214
</dict>

lib/command/install.dart

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import 'dart:io';
55
import 'package:alfred_jetbrains_cli/assets/assets.dart';
66
import 'package:alfred_jetbrains_cli/helper.dart';
77
import 'package:alfred_jetbrains_cli/logger.dart';
8+
import 'package:alfred_jetbrains_cli/version.dart';
89
import 'package:args/command_runner.dart';
910
import 'package:io/io.dart';
1011
import 'package:path/path.dart';
@@ -39,11 +40,15 @@ class InstallCommand extends Command<int> {
3940

4041
// Write files to workflow folder
4142
final infoPlistFile = File(join(workflow.absolute.path, 'info.plist'))
42-
..writeAsStringSync(infoPlist, mode: FileMode.writeOnly);
43+
..writeAsStringSync(
44+
infoPlist.replaceAll('{{WORKFLOW_VERSION}}', packageVersion),
45+
mode: FileMode.writeOnly,
46+
);
4347
File(
4448
join(workflow.absolute.path, 'icon.png'),
4549
).writeAsBytesSync(iconPng, mode: FileMode.writeOnly);
4650
consoleLogger.i('Workflow installed: ${infoPlistFile.absolute.path}');
51+
4752
final String? binPath = _binPath();
4853
if (binPath != null) {
4954
consoleLogger.i('Move $binPath to workflow destination');

lib/version.dart

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: alfred_jetbrains_cli
22
description: Companion CLI for Alfred JetBrains workflow
3-
version: 0.4.0
3+
version: 2.5.0
44
repository: https://github.com/bchatard/alfred-jetbrains-cli
55

66
environment:

0 commit comments

Comments
 (0)