remove deprecated ioutil module
This commit is contained in:
3
main.go
3
main.go
@@ -5,7 +5,6 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"image"
|
"image"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
@@ -98,7 +97,7 @@ func run() error {
|
|||||||
if err := tpl.Execute(fplist, info); err != nil {
|
if err := tpl.Execute(fplist, info); err != nil {
|
||||||
return errors.Wrap(err, "execute Info.plist template")
|
return errors.Wrap(err, "execute Info.plist template")
|
||||||
}
|
}
|
||||||
if err := ioutil.WriteFile(filepath.Join(contentsPath, "README"), []byte(readme), 0666); err != nil {
|
if err := os.WriteFile(filepath.Join(contentsPath, "README"), []byte(readme), 0666); err != nil {
|
||||||
return errors.Wrap(err, "ioutil.WriteFile")
|
return errors.Wrap(err, "ioutil.WriteFile")
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
Reference in New Issue
Block a user