commit 37d9edb8e332aaece610a06438ea35b859d15208 Author: Skydust Date: Sun Jun 11 20:45:49 2023 +0200 First commit diff --git a/Formula/ClearScript.rb b/Formula/ClearScript.rb new file mode 100644 index 0000000..fa0f2cb --- /dev/null +++ b/Formula/ClearScript.rb @@ -0,0 +1,22 @@ +class ClearScript < Formula + desc "A script to clear multiples caches and useless macos files" + homepage "https://gitea.skydust.fr/Skydust/MacOS-Clear-script" + + # Specify the URL of the Git repository + url "https://gitea.skydust.fr/Skydust/MacOS-Clear-script.git" + # Specify the branch or tag to use for the installation + head "https://gitea.skydust.fr/Skydust/MacOS-Clear-script.git", :branch => "master" + + + def install + # Clone the repository + system "git", "clone", "#{build.head}", "clear-script" + + # Move to the repository directory + cd "clear-script" do + mv "Clear.sh", "clearscript" + # Install the script to the appropriate location + bin.install "clearscript" + end + end +end \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..7d9ea54 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +The custom homebrew formula for https://gitea.skydust.fr/Skydust/MacOS-Clear-script \ No newline at end of file