diff --git a/.github/workflows/executables.yml b/.github/workflows/executables.yml index 95649c4..31e71cf 100644 --- a/.github/workflows/executables.yml +++ b/.github/workflows/executables.yml @@ -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" \ diff --git a/commanddash/lib/runner.dart b/commanddash/lib/runner.dart index 479ebe1..d8f9f5c 100644 --- a/commanddash/lib/runner.dart +++ b/commanddash/lib/runner.dart @@ -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; @@ -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'); } } diff --git a/commanddash/pubspec.yaml b/commanddash/pubspec.yaml index 0b1c45c..aebcffc 100644 --- a/commanddash/pubspec.yaml +++ b/commanddash/pubspec.yaml @@ -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: