Test 2
This commit is contained in:
@@ -1,23 +1,16 @@
|
|||||||
class Clearscript < Formula
|
class Clearscript < Formula
|
||||||
desc "A script to clear multiples caches and useless macos files"
|
desc "A script to clear multiples caches and useless macos files"
|
||||||
homepage "https://gitea.skydust.fr/Skydust/MacOS-Clear-script"
|
homepage "https://gitea.skydust.fr/Skydust/MacOS-Clear-script"
|
||||||
version `git --git-dir=#{Formula["clearscript"].prefix}/.git rev-parse --short HEAD`.chomp
|
|
||||||
|
|
||||||
# Specify the URL of the Git repository
|
# Specify the URL of the Git repository
|
||||||
url "https://gitea.skydust.fr/Skydust/MacOS-Clear-script.git"
|
url "https://gitea.skydust.fr/Skydust/MacOS-Clear-script.git"
|
||||||
# Specify the branch or tag to use for the installation
|
# Specify the branch or tag to use for the installation
|
||||||
head "https://gitea.skydust.fr/Skydust/MacOS-Clear-script.git", branch: "master"
|
head "https://gitea.skydust.fr/Skydust/MacOS-Clear-script.git", branch: "master"
|
||||||
|
version "1.1.1"
|
||||||
|
|
||||||
|
|
||||||
def install
|
def install
|
||||||
# Clone the repository
|
mv "Clear.sh", "clearscript"
|
||||||
system "git", "clone", "#{build.head}", "clear-script"
|
# Install the script to the appropriate location
|
||||||
|
bin.install "clearscript"
|
||||||
# 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
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user