Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DebArchs = map[string]string{
"any": "all",
"x86_64": "amd64",
"i686": "386",
"aarch64": "arm64",
"armv7h": "arm7",
"armv6h": "arm6",
"arm": "arm5",
}
Functions ¶
This section is empty.
Types ¶
type Deb ¶
Deb represents a Deb package.
It contains the directory path of the package and the PKGBUILD struct, which contains the metadata and build instructions for the package.
func (*Deb) Build ¶
Build builds the Deb package.
It takes the artifactsPath as a parameter and returns an error if any.
func (*Deb) Prepare ¶
Prepare prepares the Deb package by installing its dependencies using apt-get.
makeDepends: a slice of strings representing the dependencies to be installed. Returns an error if there was a problem installing the dependencies.
func (*Deb) PrepareEnvironment ¶
PrepareEnvironment prepares the environment for the Deb package.
It takes a boolean parameter `golang` which indicates whether or not to set up Go. It returns an error if there was a problem during the environment preparation.
func (*Deb) Strip ¶
Strip strips binaries from the Deb package.
It does not take any parameters. It returns an error if there is any issue during stripping.
func (*Deb) Update ¶
Update updates the Deb package list.
It calls the GetUpdates method of the PKGBUILD field of the Deb struct to retrieve any updates using the "apt-get" command and the "update" argument. If an error occurs during the update, it is returned.
Returns: - error: An error if the update fails.