optimise sign
This commit is contained in:
parent
9a5bd83251
commit
0aedcacea7
@ -170,7 +170,7 @@ func signFiles(path string) {
|
|||||||
filePath := ""
|
filePath := ""
|
||||||
for _, file := range files {
|
for _, file := range files {
|
||||||
totalCount--
|
totalCount--
|
||||||
if count < 100 && totalCount > 0 {
|
if count < 10 && totalCount > 0 {
|
||||||
count++
|
count++
|
||||||
filePath = filePath + " " + path + file
|
filePath = filePath + " " + path + file
|
||||||
} else {
|
} else {
|
||||||
@ -188,7 +188,7 @@ func signFiles(path string) {
|
|||||||
func sign(ch chan bool, path string) {
|
func sign(ch chan bool, path string) {
|
||||||
if strings.HasSuffix(path, ".deb") {
|
if strings.HasSuffix(path, ".deb") {
|
||||||
fmt.Printf("Signing %s \n", path)
|
fmt.Printf("Signing %s \n", path)
|
||||||
cmd := exec.Command("../sign.sh", "--sign", "builder", path)
|
cmd := exec.Command("dpkg-sig", "--sign", "builder", path)
|
||||||
err := cmd.Run()
|
err := cmd.Run()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user