Release LanUps 0.1.2 with native installers and monitoring updates
This commit is contained in:
1 parent
90c57f020f
commit
5bdc79d8e4
30 files changed
+751
-270
No files matched your search
@@ -11,10 +11,10 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
if len(os.Args) != 6 {
|
||||
log.Fatal("usage: macpack payload preinstall postinstall architecture output.pkg")
|
||||
if len(os.Args) != 7 {
|
||||
log.Fatal("usage: macpack payload preinstall postinstall architecture output.pkg version")
|
||||
}
|
||||
root, prePath, postPath, architecture, output := os.Args[1], os.Args[2], os.Args[3], os.Args[4], os.Args[5]
|
||||
root, prePath, postPath, architecture, output, version := os.Args[1], os.Args[2], os.Args[3], os.Args[4], os.Args[5], os.Args[6]
|
||||
if architecture != pkg.ArchARM64 && architecture != pkg.ArchX8664 {
|
||||
log.Fatal("invalid macOS architecture")
|
||||
}
|
||||
@@ -22,7 +22,7 @@ func main() {
|
||||
check(err)
|
||||
post, err := os.ReadFile(postPath)
|
||||
check(err)
|
||||
component := pkg.NewPackage().WithIdentifier("local.lanups").WithName("LanUps").WithVersion("0.1.0").
|
||||
component := pkg.NewPackage().WithIdentifier("local.lanups").WithName("LanUps").WithVersion(version).
|
||||
WithPreInstallScript(pre).WithPostInstallScript(post)
|
||||
check(filepath.WalkDir(root, func(path string, entry fs.DirEntry, err error) error {
|
||||
if err != nil || entry.IsDir() {
|
||||
@@ -40,7 +40,7 @@ func main() {
|
||||
component.WithFileFromPath("/"+name, path).WithMode(mode).Add()
|
||||
return nil
|
||||
}))
|
||||
product, err := pkg.NewProduct().WithTitle("LanUps").WithIdentifier("local.lanups.product").WithVersion("0.1.0").
|
||||
product, err := pkg.NewProduct().WithTitle("LanUps").WithIdentifier("local.lanups.product").WithVersion(version).
|
||||
WithHostArchitectures(architecture).WithMinOSVersion("15.0").WithComponent(component).Build()
|
||||
check(err)
|
||||
file, err := os.Create(output)
|
||||
|
||||
Reference in new issue
Block a user