1
我試圖創造單控制檯applicatoin如何爲基於Mono的應用程序創建自制公式?
一個自制配方這是迄今爲止我的公式:
class Fchan < Formula
desc "4chan image downloader"
homepage "https://github.com/gabrielgio/FChan.Downloader"
url "https://github.com/gabrielgio/FChan.Downloader/releases/download/v0.1.2/fchan0.1.2.tar.gz"
version "0.1.2"
sha256 "00f46139b6ba50dbbf178b123ab8f54e225e645eb9aebbb5d22031f8ef3cba3e"
def install
system "xbuild", "/p:Configuration=Release", "./FChan.sln"
system "cd", "./FChan.Downloader/bin/Release/"
system "mkbundle", "-o", "fchand", "FChan.Downloader.exe", "Newtonsoft.Json.dll", "FChan.Library.dll", "--deps"
end
test do
system "false"
end
end
但每次我做brew install fchan
時候,我得到一個錯誤:
==> Downloading https://github.com/gabrielgio/FChan.Downloader/releases/download/v0.1.2/fchan0.1.2.tar.gz
Already downloaded: /Library/Caches/Homebrew/fchan-0.1.2.tar.gz
==> Verifying fchan-0.1.2.tar.gz checksum
tar xf /Library/Caches/Homebrew/fchan-0.1.2.tar.gz
==> xbuild /p:Configuration=Release ./FChan.sln
Failed to execute: xbuild
任何人都可以向我解釋如何爲單聲道應用程序創建一個適當的自制公式?