From 879f142e32260d7bf833c9a3411f5b32a46f4b0d Mon Sep 17 00:00:00 2001 From: Ricardo Kissinger Date: Mon, 12 Aug 2024 14:01:36 +0200 Subject: [PATCH 01/12] Add quix-cli formula --- quix-cli.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 quix-cli.rb diff --git a/quix-cli.rb b/quix-cli.rb new file mode 100644 index 0000000..5edcef3 --- /dev/null +++ b/quix-cli.rb @@ -0,0 +1,15 @@ +class QuixCli < Formula + desc "Quix CLI tool" + homepage "https://github.com/quixio/quix-cli" + url "https://github.com/quixio/quix-cli/raw/main/install.sh" + version "0.1.0" + sha256 "216c5888bacef04f9af38a209616004ddde41c5c50a5507dfff75a6279412780" + + def install + system "bash", "install.sh", "--", prefix + end + + test do + system "#{bin}/quix", "--version" + end + end \ No newline at end of file From e0d94565cea44b846baa588807c286cd8a673221 Mon Sep 17 00:00:00 2001 From: Ricardo Kissinger Date: Mon, 12 Aug 2024 14:06:44 +0200 Subject: [PATCH 02/12] Add quix-cli formula --- quix-cli.rb | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/quix-cli.rb b/quix-cli.rb index 5edcef3..45903ac 100644 --- a/quix-cli.rb +++ b/quix-cli.rb @@ -6,10 +6,22 @@ class QuixCli < Formula sha256 "216c5888bacef04f9af38a209616004ddde41c5c50a5507dfff75a6279412780" def install - system "bash", "install.sh", "--", prefix - end - - test do - system "#{bin}/quix", "--version" - end - end \ No newline at end of file + # Specify the local installation directory + local_bin = "#{ENV['HOME']}/.local/bin" + system "mkdir", "-p", local_bin + system "bash", "install.sh", "--", "--prefix=#{local_bin}" + end + + def caveats + <<~EOS + Quix CLI has been installed in your local bin directory: ~/.local/bin. + To use it, you may need to add the following to your shell configuration: + + export PATH="$HOME/.local/bin:$PATH" + EOS + end + + test do + system "#{ENV['HOME']}/.local/bin/quix", "--version" + end + end \ No newline at end of file From b900df7a1f4c4ecfde605f99c5ed7db01304a49f Mon Sep 17 00:00:00 2001 From: Ricardo Kissinger Date: Mon, 12 Aug 2024 14:14:40 +0200 Subject: [PATCH 03/12] Add quix-cli formula --- quix-cli.rb | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/quix-cli.rb b/quix-cli.rb index 45903ac..1c603f6 100644 --- a/quix-cli.rb +++ b/quix-cli.rb @@ -6,22 +6,18 @@ class QuixCli < Formula sha256 "216c5888bacef04f9af38a209616004ddde41c5c50a5507dfff75a6279412780" def install - # Specify the local installation directory - local_bin = "#{ENV['HOME']}/.local/bin" - system "mkdir", "-p", local_bin - system "bash", "install.sh", "--", "--prefix=#{local_bin}" + # Use the prefix provided by Homebrew + system "bash", "install.sh", "--prefix=#{prefix}" end def caveats <<~EOS - Quix CLI has been installed in your local bin directory: ~/.local/bin. - To use it, you may need to add the following to your shell configuration: - - export PATH="$HOME/.local/bin:$PATH" + Quix CLI has been installed in #{HOMEBREW_PREFIX}/bin. + You can run it with the command 'quix'. EOS end test do - system "#{ENV['HOME']}/.local/bin/quix", "--version" + system "#{bin}/quix", "--version" end end \ No newline at end of file From cd2fee53819a5b167ca5a4b719d4708ab27ac7ab Mon Sep 17 00:00:00 2001 From: Ricardo Kissinger Date: Mon, 12 Aug 2024 14:15:30 +0200 Subject: [PATCH 04/12] feat: allow more flexible saving of location of installed files --- install.sh | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/install.sh b/install.sh index 36655b2..7bb380a 100644 --- a/install.sh +++ b/install.sh @@ -6,8 +6,6 @@ echo "Installing Quix CLI" set -e get_arch() { - # darwin/amd64: Darwin axetroydeMacBook-Air.local 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64 - # linux/amd64: Linux test-ubuntu1804 5.4.0-42-generic #46~18.04.1-Ubuntu SMP Fri Jul 10 07:21:24 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux a=$(uname -m) case ${a} in "x86_64" | "amd64" ) @@ -48,12 +46,17 @@ sign_binary() { } # Parse arguments +prefix="/usr/local" # Default prefix for i in "$@"; do case $i in -v=*|--version=*) version="${i#*=}" shift # past argument=value ;; + --prefix=*) + prefix="${i#*=}" + shift # past argument=value + ;; *) # unknown option ;; @@ -79,7 +82,7 @@ file_extension="tar.gz" file_name="${os}-${arch}.${file_extension}" # the file name to download downloaded_file="${downloadFolder}/${file_name}" # the file path to download -executable_folder="/usr/local/bin" # Eventually, the executable file will be placed here +executable_folder="${prefix}/bin" # Install binary to the specified prefix/bin # Create executable_folder if it does not exist mkdir -p "${executable_folder}" @@ -96,18 +99,10 @@ echo "[2/5] Downloading '${asset_uri}' to '${downloaded_file}'" curl --fail --location --output "${downloaded_file}" "${asset_uri}" echo "[3/5] Installing '${exe_name}' to '${executable_folder}'" -if [ ! -w "${executable_folder}" ]; then - echo "Permission denied for ${executable_folder}. Trying with sudo..." - sudo tar -xzf "${downloaded_file}" -C "${executable_folder}" - exe="${executable_folder}/${exe_name}" - sudo chmod +x "${exe}" - sign_binary "$os" "$exe" "true" -else - tar -xzf "${downloaded_file}" -C "${executable_folder}" - exe="${executable_folder}/${exe_name}" - chmod +x "${exe}" - sign_binary "$os" "$exe" -fi +tar -xzf "${downloaded_file}" -C "${executable_folder}" +exe="${executable_folder}/${exe_name}" +chmod +x "${exe}" +sign_binary "$os" "$exe" echo "[4/5] Cleaning '${downloaded_file}'" rm -f "${downloaded_file}" From 2b9e8000313f7bccec6be7c28c4e7a2048b1acfc Mon Sep 17 00:00:00 2001 From: Ricardo Kissinger Date: Mon, 12 Aug 2024 14:21:13 +0200 Subject: [PATCH 05/12] chore: trying with homebrew path --- install.sh | 2 +- quix-cli.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 7bb380a..82464b0 100644 --- a/install.sh +++ b/install.sh @@ -46,7 +46,7 @@ sign_binary() { } # Parse arguments -prefix="/usr/local" # Default prefix +prefix="/opt/homebrew" # Default prefix for i in "$@"; do case $i in -v=*|--version=*) diff --git a/quix-cli.rb b/quix-cli.rb index 1c603f6..421015a 100644 --- a/quix-cli.rb +++ b/quix-cli.rb @@ -1,13 +1,13 @@ class QuixCli < Formula desc "Quix CLI tool" homepage "https://github.com/quixio/quix-cli" - url "https://github.com/quixio/quix-cli/raw/main/install.sh" + url "https://github.com/spkis/quix-cli/raw/main/install.sh" version "0.1.0" sha256 "216c5888bacef04f9af38a209616004ddde41c5c50a5507dfff75a6279412780" def install # Use the prefix provided by Homebrew - system "bash", "install.sh", "--prefix=#{prefix}" + system "bash", "install.sh", "--prefix=#{HOMEBREW_PREFIX}" end def caveats From 9ba0df0d096b56c4d897738357301bf8f15f0d4f Mon Sep 17 00:00:00 2001 From: Ricardo Kissinger Date: Mon, 12 Aug 2024 14:25:34 +0200 Subject: [PATCH 06/12] chore: trying with ifferent executable path --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 82464b0..d618f1c 100644 --- a/install.sh +++ b/install.sh @@ -82,7 +82,7 @@ file_extension="tar.gz" file_name="${os}-${arch}.${file_extension}" # the file name to download downloaded_file="${downloadFolder}/${file_name}" # the file path to download -executable_folder="${prefix}/bin" # Install binary to the specified prefix/bin +executable_folder="/opt/homebrew/bin" # Install binary to the specified prefix/bin # Create executable_folder if it does not exist mkdir -p "${executable_folder}" From 8266c6e8945131b3c04f678a3d0c9f3b993dc498 Mon Sep 17 00:00:00 2001 From: Ricardo Kissinger Date: Wed, 14 Aug 2024 17:42:39 +0200 Subject: [PATCH 07/12] add updated homebrew file --- quix-cli.rb | 47 +++++++++++++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 18 deletions(-) diff --git a/quix-cli.rb b/quix-cli.rb index 421015a..b97c964 100644 --- a/quix-cli.rb +++ b/quix-cli.rb @@ -1,23 +1,34 @@ class QuixCli < Formula - desc "Quix CLI tool" + desc "Quix CLI" homepage "https://github.com/quixio/quix-cli" - url "https://github.com/spkis/quix-cli/raw/main/install.sh" - version "0.1.0" - sha256 "216c5888bacef04f9af38a209616004ddde41c5c50a5507dfff75a6279412780" + version "latest" # Or specify a specific version if desired + license "MIT" + + # Define the URLs for the binaries based on architecture + if Hardware::CPU.intel? + url "https://github.com/quixio/quix-cli/releases/latest/download/osx-x64.tar.gz" + sha256 "b966d3db258866183ddd9002ca910ddbd9af7460c82f3fb7c2e057ae96fc5ffb" + elsif Hardware::CPU.arm? + url "https://github.com/quixio/quix-cli/releases/latest/download/osx-arm64.tar.gz" + sha256 "60739eb440654b226ec5ccfb1da953693d8a8ee5e1a71b32ed1f717c6e82709e" + else + odie "Unsupported architecture" + end def install - # Use the prefix provided by Homebrew - system "bash", "install.sh", "--prefix=#{HOMEBREW_PREFIX}" - end - - def caveats - <<~EOS - Quix CLI has been installed in #{HOMEBREW_PREFIX}/bin. - You can run it with the command 'quix'. - EOS - end - - test do - system "#{bin}/quix", "--version" + bin.install "quix" # Installs the binary into the Homebrew bin folder + end + + def post_install + # Any post-installation actions like signing the binary + if OS.mac? + system "codesign", "-s", "-", "#{bin}/quix" end - end \ No newline at end of file + end + + test do + # Basic test to verify installation + system "#{bin}/quix", "--version" + end + end + \ No newline at end of file From d7097a729b4271378b5fc0bc47162aaa64e05819 Mon Sep 17 00:00:00 2001 From: spkis <114989348+spkis@users.noreply.github.com> Date: Wed, 14 Aug 2024 17:46:17 +0200 Subject: [PATCH 08/12] revert back to original install.sh --- install.sh | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/install.sh b/install.sh index d618f1c..36655b2 100644 --- a/install.sh +++ b/install.sh @@ -6,6 +6,8 @@ echo "Installing Quix CLI" set -e get_arch() { + # darwin/amd64: Darwin axetroydeMacBook-Air.local 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64 + # linux/amd64: Linux test-ubuntu1804 5.4.0-42-generic #46~18.04.1-Ubuntu SMP Fri Jul 10 07:21:24 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux a=$(uname -m) case ${a} in "x86_64" | "amd64" ) @@ -46,17 +48,12 @@ sign_binary() { } # Parse arguments -prefix="/opt/homebrew" # Default prefix for i in "$@"; do case $i in -v=*|--version=*) version="${i#*=}" shift # past argument=value ;; - --prefix=*) - prefix="${i#*=}" - shift # past argument=value - ;; *) # unknown option ;; @@ -82,7 +79,7 @@ file_extension="tar.gz" file_name="${os}-${arch}.${file_extension}" # the file name to download downloaded_file="${downloadFolder}/${file_name}" # the file path to download -executable_folder="/opt/homebrew/bin" # Install binary to the specified prefix/bin +executable_folder="/usr/local/bin" # Eventually, the executable file will be placed here # Create executable_folder if it does not exist mkdir -p "${executable_folder}" @@ -99,10 +96,18 @@ echo "[2/5] Downloading '${asset_uri}' to '${downloaded_file}'" curl --fail --location --output "${downloaded_file}" "${asset_uri}" echo "[3/5] Installing '${exe_name}' to '${executable_folder}'" -tar -xzf "${downloaded_file}" -C "${executable_folder}" -exe="${executable_folder}/${exe_name}" -chmod +x "${exe}" -sign_binary "$os" "$exe" +if [ ! -w "${executable_folder}" ]; then + echo "Permission denied for ${executable_folder}. Trying with sudo..." + sudo tar -xzf "${downloaded_file}" -C "${executable_folder}" + exe="${executable_folder}/${exe_name}" + sudo chmod +x "${exe}" + sign_binary "$os" "$exe" "true" +else + tar -xzf "${downloaded_file}" -C "${executable_folder}" + exe="${executable_folder}/${exe_name}" + chmod +x "${exe}" + sign_binary "$os" "$exe" +fi echo "[4/5] Cleaning '${downloaded_file}'" rm -f "${downloaded_file}" From 68125792bf31fca4521b07dcf01b1f25c392ba1d Mon Sep 17 00:00:00 2001 From: spkis <114989348+spkis@users.noreply.github.com> Date: Mon, 5 May 2025 11:11:21 +0200 Subject: [PATCH 09/12] Update quix-cli.rb --- quix-cli.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quix-cli.rb b/quix-cli.rb index b97c964..b12f167 100644 --- a/quix-cli.rb +++ b/quix-cli.rb @@ -7,10 +7,10 @@ class QuixCli < Formula # Define the URLs for the binaries based on architecture if Hardware::CPU.intel? url "https://github.com/quixio/quix-cli/releases/latest/download/osx-x64.tar.gz" - sha256 "b966d3db258866183ddd9002ca910ddbd9af7460c82f3fb7c2e057ae96fc5ffb" + sha256 "b668dea36e781ac1f5c5abbe992a671d27a43a91d398b8177e35f6c219c43cec" elsif Hardware::CPU.arm? url "https://github.com/quixio/quix-cli/releases/latest/download/osx-arm64.tar.gz" - sha256 "60739eb440654b226ec5ccfb1da953693d8a8ee5e1a71b32ed1f717c6e82709e" + sha256 "60212915acd2a79d5d2a50245d00c2b76f99faec913b66012e92adb4db47ed69" else odie "Unsupported architecture" end @@ -31,4 +31,4 @@ def post_install system "#{bin}/quix", "--version" end end - \ No newline at end of file + From e1dcca73bda7cd2c2aac232f7bf0d775c2118859 Mon Sep 17 00:00:00 2001 From: spkis <114989348+spkis@users.noreply.github.com> Date: Mon, 5 May 2025 11:11:51 +0200 Subject: [PATCH 10/12] Update quix-cli.rb --- quix-cli.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quix-cli.rb b/quix-cli.rb index b12f167..7622d38 100644 --- a/quix-cli.rb +++ b/quix-cli.rb @@ -1,7 +1,7 @@ class QuixCli < Formula desc "Quix CLI" homepage "https://github.com/quixio/quix-cli" - version "latest" # Or specify a specific version if desired + version "1.4.2" # Or specify a specific version if desired license "MIT" # Define the URLs for the binaries based on architecture From 43202f143f17ebf3a93bc4de86d31cfb11a74ff6 Mon Sep 17 00:00:00 2001 From: spkis <114989348+spkis@users.noreply.github.com> Date: Mon, 5 May 2025 11:16:31 +0200 Subject: [PATCH 11/12] Update quix-cli.rb --- quix-cli.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quix-cli.rb b/quix-cli.rb index 7622d38..84109b9 100644 --- a/quix-cli.rb +++ b/quix-cli.rb @@ -6,10 +6,10 @@ class QuixCli < Formula # Define the URLs for the binaries based on architecture if Hardware::CPU.intel? - url "https://github.com/quixio/quix-cli/releases/latest/download/osx-x64.tar.gz" + url "https://github.com/quixio/quix-cli/releases/download/1.4.2/osx-x64.tar.gz" sha256 "b668dea36e781ac1f5c5abbe992a671d27a43a91d398b8177e35f6c219c43cec" elsif Hardware::CPU.arm? - url "https://github.com/quixio/quix-cli/releases/latest/download/osx-arm64.tar.gz" + url "https://github.com/quixio/quix-cli/releases/download/1.4.2/osx-arm64.tar.gz" sha256 "60212915acd2a79d5d2a50245d00c2b76f99faec913b66012e92adb4db47ed69" else odie "Unsupported architecture" From 6316263499e94b3af86deb95750fcd8daf1e8162 Mon Sep 17 00:00:00 2001 From: "penify-dev[bot]" <146478655+penify-dev[bot]@users.noreply.github.com> Date: Tue, 20 May 2025 16:50:01 +0000 Subject: [PATCH 12/12] penify/config_76b5a main --- .../workflows/penify-auto-documentation.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/penify-auto-documentation.yml diff --git a/.github/workflows/penify-auto-documentation.yml b/.github/workflows/penify-auto-documentation.yml new file mode 100644 index 0000000..b811b4c --- /dev/null +++ b/.github/workflows/penify-auto-documentation.yml @@ -0,0 +1,19 @@ +# This workflow will improvise current file with AI genereated documentation and Create new PR + +name: Penify - Revolutionizing Documentation on GitHub + +on: + push: + branches: ["main"] + workflow_dispatch: + +jobs: + Documentation: + runs-on: ubuntu-latest + steps: + - name: Penify DocGen Client + uses: Penify-dev/penifydocwf@v1.0.0 + with: + client_id: ${{ secrets.SNORKELL_CLIENT_ID }} + api_key: ${{ secrets.SNORKELL_API_KEY }} + branch_name: "main" \ No newline at end of file