From cff5fe1cda0d2b177d14496d64a22b38c0f39182 Mon Sep 17 00:00:00 2001 From: scito Date: Tue, 24 Jan 2023 23:16:46 +0100 Subject: [PATCH] ci_release: ignore response and remove silent mode --- .github/workflows/ci_release.yml | 19 ++++++++++++++--- README.md | 35 +++++++++++++------------------- docs/README_TOC.md | 5 ++--- 3 files changed, 32 insertions(+), 27 deletions(-) diff --git a/.github/workflows/ci_release.yml b/.github/workflows/ci_release.yml index 3323301..e76c3be 100644 --- a/.github/workflows/ci_release.yml +++ b/.github/workflows/ci_release.yml @@ -151,6 +151,7 @@ jobs: - name: Smoke tests run: | + dist/extract_otp_secrets_linux_x86_64 -V dist/extract_otp_secrets_linux_x86_64 -h dist/extract_otp_secrets_linux_x86_64 example_export.png dist/extract_otp_secrets_linux_x86_64 - < example_export.txt @@ -250,6 +251,7 @@ jobs: run: ${{ matrix.CMD_BUILD }} - name: Smoke tests for generated exe (general) run: | + dist/${{ matrix.OUT_FILE_NAME }} -V dist/${{ matrix.OUT_FILE_NAME }} -h dist/${{ matrix.OUT_FILE_NAME }} example_export.png - name: Smoke tests for generated exe (stdin) @@ -268,14 +270,25 @@ jobs: if: ${{ matrix.UPLOAD }} shell: bash run: | - response=$(curl \ + curl \ -X POST \ -H "Accept: application/vnd.github+json" \ -H "Content-Type: ${{ matrix.ASSET_MIME }}" \ -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"\ -H "X-GitHub-Api-Version: 2022-11-28" \ - --silent \ --show-error \ --data-binary @dist/${{ matrix.OUT_FILE_NAME }} \ - $(cat release_url.txt)=${{ matrix.ASSET_NAME }}) + $(cat release_url.txt)=${{ matrix.ASSET_NAME }} + + # run: | + # response=$(curl \ + # -X POST \ + # -H "Accept: application/vnd.github+json" \ + # -H "Content-Type: ${{ matrix.ASSET_MIME }}" \ + # -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}"\ + # -H "X-GitHub-Api-Version: 2022-11-28" \ + # --silent \ + # --show-error \ + # --data-binary @dist/${{ matrix.OUT_FILE_NAME }} \ + # $(cat release_url.txt)=${{ matrix.ASSET_NAME }}) diff --git a/README.md b/README.md index e5645a3..47b7ed6 100644 --- a/README.md +++ b/README.md @@ -35,13 +35,12 @@ The secrets can be exported to JSON or CSV, or printed as QR codes to console or ## Table of contents +- [Download binary executable (🆕 since v2.1)](#download-binary-executable--since-v21) - [Usage](#usage) - [Capture QR codes from camera (🆕 since version 2.0)](#capture-qr-codes-from-camera--since-version-20) - [With builtin QR decoder from image files (🆕 since version 2.0)](#with-builtin-qr-decoder-from-image-files--since-version-20) - [With external QR decoder app from text files](#with-external-qr-decoder-app-from-text-files) -- [Installation](#installation) - - [Download binary executable (🆕 since v2.1)](#download-binary-executable--since-v21) - - [Run as script (recommend for developers or advanced users)](#run-as-script-recommend-for-developers-or-advanced-users) +- [Installation of Python script (recommend for developers or advanced users)](#installation-of-python-script-recommend-for-developers-or-advanced-users) - [Installation of shared system libraries](#installation-of-shared-system-libraries) - [Program help: arguments and options](#program-help-arguments-and-options) - [Examples](#examples) @@ -86,6 +85,15 @@ The secrets can be exported to JSON or CSV, or printed as QR codes to console or - [Related projects](#related-projects) +## Download binary executable (🆕 since v2.1) + +1. Download executable for your platform from [latest release](https://github.com/scito/extract_otp_secrets/releases/latest), see assets +2. Start executable by clicking or from command line + +✅ Everything is just packed in one executable. +✅ No installation needed, neither Python nor dependencies have to be installed. +✅ Easy and convenient + ## Usage ### Capture QR codes from camera (🆕 since version 2.0) @@ -97,10 +105,6 @@ The secrets can be exported to JSON or CSV, or printed as QR codes to console or ``` extract_otp_secrets ``` -or -``` -python src/extract_otp_secrets.py -``` ![CV2 Capture from camera screenshot](docs/cv2_capture_screenshot.png) @@ -120,7 +124,7 @@ The secrets are printed by default to the console. [Set program parameters](#pro 4. Transfer the images files to the computer where his script is installed. 5. Call this script with the file as input: ``` -python src/extract_otp_secrets.py example_export.png +extract_otp_secrets example_export.png ``` 6. Remove unencrypted files with secrets from your computer and mobile. @@ -133,22 +137,11 @@ python src/extract_otp_secrets.py example_export.png 5. Transfer the file to the computer where his script is installed. 6. Call this script with the file as input: ``` -python src/extract_otp_secrets.py example_export.txt +extract_otp_secrets example_export.txt ``` 7. Remove unencrypted files with secrets from your computer and mobile. -## Installation - -### Download binary executable (🆕 since v2.1) - -1. Download executable for your platform from [latest release](https://github.com/scito/extract_otp_secrets/releases/latest), see assets -2. Start executable by clicking or from command line - -✅ Everything is just packed in one executable. -✅ No installation needed, neither Python nor dependencies have to be installed. -✅ Easy and convenient - -### Run as script (recommend for developers or advanced users) +## Installation of Python script (recommend for developers or advanced users) ```bash git clone https://github.com/scito/extract_otp_secrets.git diff --git a/docs/README_TOC.md b/docs/README_TOC.md index 86e2a72..cc9d18a 100644 --- a/docs/README_TOC.md +++ b/docs/README_TOC.md @@ -3,13 +3,12 @@ Generate from file: README.md ## Table of contents - [Table of contents](#table-of-contents) +- [Download binary executable (🆕 since v2.1)](#download-binary-executable--since-v21) - [Usage](#usage) - [Capture QR codes from camera (🆕 since version 2.0)](#capture-qr-codes-from-camera--since-version-20) - [With builtin QR decoder from image files (🆕 since version 2.0)](#with-builtin-qr-decoder-from-image-files--since-version-20) - [With external QR decoder app from text files](#with-external-qr-decoder-app-from-text-files) -- [Installation](#installation) - - [Download binary executable (🆕 since v2.1)](#download-binary-executable--since-v21) - - [Run as script (recommend for developers or advanced users)](#run-as-script-recommend-for-developers-or-advanced-users) +- [Installation of Python script (recommend for developers or advanced users)](#installation-of-python-script-recommend-for-developers-or-advanced-users) - [Installation of shared system libraries](#installation-of-shared-system-libraries) - [Program help: arguments and options](#program-help-arguments-and-options) - [Examples](#examples)