diff --git a/apply.go b/apply.go index b26dae1..3533732 100644 --- a/apply.go +++ b/apply.go @@ -117,7 +117,8 @@ func Apply(update io.Reader, opts Options) error { if err != nil { return err } - + //don't call fp.Sync().system power off ,file will lost + fp.Sync() // if we don't call fp.Close(), windows won't let us move the new executable // because the file will still be "in use" fp.Close()