Skip to content

Commit

Permalink
(fix): Hardcoded version number
Browse files Browse the repository at this point in the history
  • Loading branch information
samyakkkk committed Mar 28, 2024
1 parent 0c95942 commit ea10810
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/executables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ jobs:
chmod +x ./executable/commanddash-linux
curl -X POST "https://api.commanddash.dev/executable/add" \
-H "Content-Type: multipart/form-data" \
-F "secret=strongSecretwith#case" \
-F "version=$(./executable/commanddash-linux min_cli_version)" \
-F "secret=${{ secrets.SECRET_KEY }}" \
-F "version=$(./executable/commanddash-linux version)" \
-F "minimum_client_version=$(./executable/commanddash-linux min_cli_version)" \
-F "windows_binary=@executable/commanddash-windows.exe" \
-F "macos_binary=@executable/commanddash-mac" \
Expand Down
11 changes: 1 addition & 10 deletions commanddash/lib/runner.dart
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import 'dart:io';

import 'package:args/command_runner.dart';
import 'package:commanddash/server/server.dart';
import 'package:commanddash/server/task_handler.dart';
import 'package:yaml/yaml.dart';

class ProcessCommand extends Command {
bool dryrun = false;
Expand Down Expand Up @@ -35,13 +32,7 @@ class VersionCommand extends Command {

@override
void run() {
final directory = Directory.current;

final file = File('${directory.path}/pubspec.yaml');
final pubspec = loadYaml(file.readAsStringSync());

final version = pubspec['version'];
print(version);
print('0.0.1');
}
}

Expand Down
1 change: 0 additions & 1 deletion commanddash/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ dependencies:
crypto: ^3.0.3
google_generative_ai: ^0.2.2
rxdart: ^0.27.7
yaml: ^3.1.2
# path: ^1.8.0

dev_dependencies:
Expand Down

0 comments on commit ea10810

Please sign in to comment.