From de5944b397c8af9a671fb082671e473daf97cf36 Mon Sep 17 00:00:00 2001 From: franzap <_@franzap.com> Date: Thu, 22 Aug 2024 01:54:01 +0300 Subject: [PATCH] 0.0.4 --- lib/commands/install.dart | 3 +-- lib/commands/publish/local_parser.dart | 4 ++-- lib/commands/publish/playstore_parser.dart | 3 --- lib/main.dart | 4 +--- lib/models/package.dart | 3 +++ pubspec.lock | 8 +++++--- pubspec.yaml | 10 +++++----- 7 files changed, 17 insertions(+), 18 deletions(-) diff --git a/lib/commands/install.dart b/lib/commands/install.dart index 9c22951..dc18030 100644 --- a/lib/commands/install.dart +++ b/lib/commands/install.dart @@ -220,8 +220,7 @@ Future install(String value, {bool skipWot = false}) async { installSpinner .success('Installed package ${app.identifier!.bold()}@${meta.version}'); - } catch (e, stack) { - print(stack); + } catch (e) { rethrow; } finally { await relay?.dispose(); diff --git a/lib/commands/publish/local_parser.dart b/lib/commands/publish/local_parser.dart index 4ceb7ea..ac7ce3b 100644 --- a/lib/commands/publish/local_parser.dart +++ b/lib/commands/publish/local_parser.dart @@ -65,8 +65,8 @@ class LocalParser { if (metadataOnRelay.isNotEmpty) { if (Platform.environment['OVERWRITE'] == null) { - uploadSpinner - .fail('Release version $version already in relay, nothing to do'); + uploadSpinner.fail( + 'Artifact with hash $artifactHash is already in relay, nothing to do'); throw GracefullyAbortSignal(); } } diff --git a/lib/commands/publish/playstore_parser.dart b/lib/commands/publish/playstore_parser.dart index 4111907..573b94a 100644 --- a/lib/commands/publish/playstore_parser.dart +++ b/lib/commands/publish/playstore_parser.dart @@ -1,10 +1,7 @@ -import 'dart:io'; - import 'package:cli_spin/cli_spin.dart'; import 'package:html/parser.dart'; import 'package:zapstore_cli/models/nostr.dart'; import 'package:http/http.dart' as http; -import 'package:path/path.dart' as path; import 'package:html2md/html2md.dart'; import 'package:zapstore_cli/utils.dart'; diff --git a/lib/main.dart b/lib/main.dart index 97391ab..8084614 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -12,9 +12,7 @@ import 'package:zapstore_cli/commands/publish.dart'; import 'package:zapstore_cli/commands/remove.dart'; import 'package:zapstore_cli/utils.dart'; -const kZapstorePubkey = - '78ce6faa72264387284e647ba6938995735ec8c7d5c5a65737e55130f026307d'; -const kVersion = '0.0.3'; +const kVersion = '0.0.4'; void main(List args) async { var wasError = false; diff --git a/lib/models/package.dart b/lib/models/package.dart index 3ebf70b..d8aaf36 100644 --- a/lib/models/package.dart +++ b/lib/models/package.dart @@ -238,3 +238,6 @@ int compareVersions(String v1, String v2) { return 0; } + +const kZapstorePubkey = + '78ce6faa72264387284e647ba6938995735ec8c7d5c5a65737e55130f026307d'; diff --git a/pubspec.lock b/pubspec.lock index 8d168f9..6cecbe8 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -388,9 +388,11 @@ packages: purplebase: dependency: "direct main" description: - path: "../purplebase" - relative: true - source: path + path: "." + ref: c0e7b95cffc74caa3787b17fd742ca1f15a6fd0a + resolved-ref: c0e7b95cffc74caa3787b17fd742ca1f15a6fd0a + url: "https://github.com/purplebase/purplebase" + source: git version: "0.1.1" rational: dependency: transitive diff --git a/pubspec.yaml b/pubspec.yaml index c7b5482..e2a98d2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: zapstore_cli description: The permissionless app store powered by your social network -version: 0.0.3 +version: 0.0.4 repository: https://github.com/zapstore/zapstore-cli environment: @@ -23,10 +23,10 @@ dependencies: dependency_overrides: purplebase: - path: ../purplebase - # git: - # url: https://github.com/purplebase/purplebase - # ref: c03cce7c8e03b6eeb1c3d42cf32ab3f4657222c8 + # path: ../purplebase + git: + url: https://github.com/purplebase/purplebase + ref: c0e7b95cffc74caa3787b17fd742ca1f15a6fd0a dev_dependencies: lints: ^3.0.0