mirror of
https://github.com/rclone/rclone.git
synced 2025-01-03 04:49:47 +01:00
build: make arm .deb packages be armel architecture
This is as recommended by debian. Fixes #5107
This commit is contained in:
parent
3cf6ea848b
commit
a5a2e02ea8
@ -161,7 +161,15 @@ func buildZip(dir string) string {
|
||||
// Build .deb and .rpm packages
|
||||
//
|
||||
// It returns a list of artifacts it has made
|
||||
func buildDebAndRpm(dir, version, goarch string) []string {
|
||||
func buildDebAndRpm(dir, version, goarchBuild string) []string {
|
||||
goarch := stripVersion(goarchBuild)
|
||||
|
||||
// Base ARM build we will mark as "arm5" so nfpm puts the
|
||||
// architecture in as armel not armhf
|
||||
if goarchBuild == "arm" {
|
||||
goarch = "arm5"
|
||||
}
|
||||
|
||||
// Make internal version number acceptable to .deb and .rpm
|
||||
pkgVersion := version[1:]
|
||||
pkgVersion = strings.Replace(pkgVersion, "β", "-beta", -1)
|
||||
@ -376,7 +384,7 @@ func compileArch(version, goos, goarch, dir string) bool {
|
||||
artifacts := []string{buildZip(dir)}
|
||||
// build a .deb and .rpm if appropriate
|
||||
if goos == "linux" {
|
||||
artifacts = append(artifacts, buildDebAndRpm(dir, version, stripVersion(goarch))...)
|
||||
artifacts = append(artifacts, buildDebAndRpm(dir, version, goarch)...)
|
||||
}
|
||||
if *copyAs != "" {
|
||||
for _, artifact := range artifacts {
|
||||
|
Loading…
Reference in New Issue
Block a user