First commit
This commit is contained in:
22
Formula/ClearScript.rb
Normal file
22
Formula/ClearScript.rb
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user