diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b8e632..5f32b35 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,11 +33,11 @@ jobs: bali_suffix: zip runs-on: ${{ matrix.platform }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 1 - name: Setup go - uses: actions/setup-go@v4 + uses: actions/setup-go@v5 with: go-version: 'stable' - name: Bootstrap Bali diff --git a/README.md b/README.md index 1a91025..793d773 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ Project file `bali.toml`: ```toml # https://toml.io/en/ name = "bali" -version = "2.1.1" +version = "2.2.0" dirs = [ "cmd/bali", # dirs ] @@ -113,7 +113,7 @@ Program build file `balisrc.toml`: name = "bali" description = "Bali - Minimalist Golang build and packaging tool" destination = "bin" -version = "2.1.1" +version = "2.2.0" versioninfo = "res/versioninfo.json" icon = "res/bali.ico" manifest = "res/bali.manifest" diff --git a/README.zh-CN.md b/README.zh-CN.md index 4984ae0..4397070 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -75,7 +75,7 @@ Bali 同时支持 TOML 或者 JSON 格式的项目文件,JSON 使用内置解 ```toml # https://toml.io/en/ name = "bali" -version = "2.1.1" +version = "2.2.0" dirs = [ "cmd/bali", # dirs ] @@ -94,7 +94,7 @@ norename = true name = "bali" description = "Bali - Minimalist Golang build and packaging tool" destination = "bin" -version = "2.1.1" +version = "2.2.0" versioninfo = "res/versioninfo.json" icon = "res/bali.ico" manifest = "res/bali.manifest" diff --git a/bali.toml b/bali.toml index e498c74..bba4a8b 100644 --- a/bali.toml +++ b/bali.toml @@ -1,6 +1,6 @@ # https://toml.io/en/ name = "bali" -version = "2.1.1" +version = "2.2.0" dirs = [ "cmd/bali", # dirs "cmd/peassets", diff --git a/cmd/bali/bali.go b/cmd/bali/bali.go index 54c53da..006174d 100644 --- a/cmd/bali/bali.go +++ b/cmd/bali/bali.go @@ -6,7 +6,7 @@ import ( "path/filepath" "github.com/balibuild/bali/v2/base" - "github.com/pelletier/go-toml" + "github.com/pelletier/go-toml/v2" ) // Executable todo @@ -92,8 +92,8 @@ func (bm *Project) FileConfigure(workdir, outdir string) error { return nil } -// LoadTomlMetadata todo -func LoadTomlMetadata(file string, v interface{}) error { +// LoadMetadata todo +func LoadMetadata(file string, v interface{}) error { fd, err := os.Open(file) if err != nil { return err diff --git a/cmd/bali/balisrc.toml b/cmd/bali/balisrc.toml index a729341..327c98f 100644 --- a/cmd/bali/balisrc.toml +++ b/cmd/bali/balisrc.toml @@ -1,7 +1,7 @@ name = "bali" description = "Bali - Minimalist Golang build and packaging tool" destination = "bin" -version = "2.1.1" +version = "2.2.0" versioninfo = "res/versioninfo.json" icon = "res/bali.ico" manifest = "res/bali.manifest" diff --git a/cmd/bali/compile.go b/cmd/bali/compile.go index 3bd40ad..07ba9d3 100644 --- a/cmd/bali/compile.go +++ b/cmd/bali/compile.go @@ -28,8 +28,8 @@ func (exe *Executable) MakeResources(wd, syso, binaryName string, be *Executor) return base.ErrorCat("load manifest: ", err.Error()) } } - b.FillVersion(exe.Version, be.bm.Version) - b.UpdateName(binaryName, be.bm.Name, exe.Description) + b.FillVersion(exe.Version, be.project.Version) + b.UpdateName(binaryName, be.project.Name, exe.Description) return b.WriteSyso(syso, be.arch) } @@ -65,7 +65,7 @@ func (be *Executor) loadExecutable(wd string) (*Executable, error) { } DbgPrint("%s support toml metadata", wd) var exe Executable - if err := LoadTomlMetadata(balisrc, &exe); err != nil { + if err := LoadMetadata(balisrc, &exe); err != nil { return nil, err } return &exe, nil diff --git a/cmd/bali/executor.go b/cmd/bali/executor.go index 1d3c5a4..adfcf31 100644 --- a/cmd/bali/executor.go +++ b/cmd/bali/executor.go @@ -30,12 +30,12 @@ type Executor struct { makezip bool zipmethod uint16 makepack bool - norename bool + noNewName bool cleanup bool environ []string // initialize environment binaries []string linkmap map[string]string - bm Project + project Project suffix string forceVerion string withoutVersion bool @@ -98,7 +98,7 @@ func (be *Executor) initializeProject() error { return os.ErrNotExist } DbgPrint("%s support toml metadata", be.workdir) - return LoadTomlMetadata(balitoml, &be.bm) + return LoadMetadata(balitoml, &be.project) } // Initialize todo @@ -107,10 +107,10 @@ func (be *Executor) Initialize() error { return err } if len(be.forceVerion) != 0 { - be.bm.Version = be.forceVerion + be.project.Version = be.forceVerion } - if len(be.bm.Version) == 0 { - be.bm.Version = "0.0.1" + if len(be.project.Version) == 0 { + be.project.Version = "0.0.1" } be.de = base.NewDerivator() // Respect environmental variable settings @@ -171,7 +171,7 @@ func (be *Executor) ExpandEnv(s string) string { // TargetName todo func (be *Executor) TargetName(name string) string { - if be.norename { + if be.noNewName { return name } return base.StrCat(name, ".new") @@ -179,7 +179,7 @@ func (be *Executor) TargetName(name string) string { // FileName todo func (be *Executor) FileName(file *File) string { - if be.norename || file.NoRename { + if be.noNewName || file.NoRename { return file.Base() } return base.StrCat(file.Base(), ".template") @@ -210,17 +210,17 @@ func (be *Executor) PathInArchive(destination string) string { return destination } if be.withoutVersion { - return filepath.Join(base.StrCat(be.bm.Name, "-", be.target, "-", be.arch), destination) + return filepath.Join(base.StrCat(be.project.Name, "-", be.target, "-", be.arch), destination) } - return filepath.Join(base.StrCat(be.bm.Name, "-", be.target, "-", be.arch, "-", be.bm.Version), destination) + return filepath.Join(base.StrCat(be.project.Name, "-", be.target, "-", be.arch, "-", be.project.Version), destination) } // Build todo func (be *Executor) Build() error { - if err := be.bm.FileConfigure(be.workdir, be.out); err != nil { + if err := be.project.FileConfigure(be.workdir, be.out); err != nil { return err } - for _, d := range be.bm.Dirs { + for _, d := range be.project.Dirs { wd := filepath.Join(be.workdir, d) if err := be.Compile(wd); err != nil { fmt.Fprintf(os.Stderr, "bali compile: \x1b[31m%s\x1b[0m\n", err) @@ -246,9 +246,9 @@ func (be *Executor) Compress() error { var outname string if be.target == "windows" { if be.withoutVersion { - outname = base.StrCat(be.bm.Name, "-", be.target, "-", be.arch, ".zip") + outname = base.StrCat(be.project.Name, "-", be.target, "-", be.arch, ".zip") } else { - outname = base.StrCat(be.bm.Name, "-", be.target, "-", be.arch, "-", be.bm.Version, ".zip") + outname = base.StrCat(be.project.Name, "-", be.target, "-", be.arch, "-", be.project.Version, ".zip") } outfile = filepath.Join(be.destination, outname) if fd, err = os.Create(outfile); err != nil { @@ -256,15 +256,15 @@ func (be *Executor) Compress() error { } mw = io.MultiWriter(fd, h) zpk := pack.NewZipPackerEx(mw, be.zipmethod) - if len(be.bm.Destination) != 0 { - zpk.SetComment(be.bm.Destination) + if len(be.project.Destination) != 0 { + zpk.SetComment(be.project.Destination) } pk = zpk } else { if be.withoutVersion { - outname = base.StrCat(be.bm.Name, "-", be.target, "-", be.arch, ".tar.gz") + outname = base.StrCat(be.project.Name, "-", be.target, "-", be.arch, ".tar.gz") } else { - outname = base.StrCat(be.bm.Name, "-", be.target, "-", be.arch, "-", be.bm.Version, ".tar.gz") + outname = base.StrCat(be.project.Name, "-", be.target, "-", be.arch, "-", be.project.Version, ".tar.gz") } outfile = filepath.Join(be.destination, outname) @@ -301,7 +301,7 @@ func (be *Executor) Compress() error { return err } } - for _, f := range be.bm.Files { + for _, f := range be.project.Files { file := filepath.Join(be.workdir, f.Path) rel := filepath.Join(f.Destination, f.Base()) fmt.Fprintf(os.Stderr, "compress profile \x1b[32m%s\x1b[0m\n", f.Path) @@ -320,39 +320,39 @@ func (be *Executor) PackWin() error { // PackUNIX todo func (be *Executor) PackUNIX() error { - var outfilename string + var outName string if be.withoutVersion { - outfilename = base.StrCat(be.bm.Name, "-", be.target, "-", be.arch, ".sh") + outName = base.StrCat(be.project.Name, "-", be.target, "-", be.arch, ".sh") } else { - outfilename = base.StrCat(be.bm.Name, "-", be.target, "-", be.arch, "-", be.bm.Version, ".sh") + outName = base.StrCat(be.project.Name, "-", be.target, "-", be.arch, "-", be.project.Version, ".sh") } - outfile := filepath.Join(be.destination, outfilename) - hashfd, err := pack.OpenHashableFile(outfile) + outfile := filepath.Join(be.destination, outName) + fd, err := pack.NewHashFD(outfile) if err != nil { return err } // Keep order defer func() { if err == nil { - hashfd.Hashsum(outfilename) + fd.Sum(outName) fmt.Fprintf(os.Stderr, "create \x1b[32m%s\x1b[0m done\n", outfile) - fmt.Fprintf(os.Stderr, "Your can run '\x1b[32m./%s --prefix=/path/to/%s\x1b[0m' to install %s\n", outfilename, be.bm.Name, be.bm.Name) - fmt.Fprintf(os.Stderr, "bali create package \x1b[32m%s\x1b[0m success\n", outfilename) + fmt.Fprintf(os.Stderr, "Your can run '\x1b[32m./%s --prefix=/path/to/%s\x1b[0m' to install %s\n", outName, be.project.Name, be.project.Name) + fmt.Fprintf(os.Stderr, "bali create package \x1b[32m%s\x1b[0m success\n", outName) } }() - defer hashfd.Close() - pk := pack.NewTargzPacker(hashfd) + defer fd.Close() + pk := pack.NewTargzPacker(fd) defer pk.Close() var rw pack.RespondWriter // bali post install script - if len(be.bm.Respond) != 0 { - if !base.PathExists(be.bm.Respond) { - return base.ErrorCat("respond file ", be.bm.Respond, " not found") + if len(be.project.Respond) != 0 { + if !base.PathExists(be.project.Respond) { + return base.ErrorCat("respond file ", be.project.Respond, " not found") } - if err = pk.AddFileEx(be.bm.Respond, "bali_post_install", true); err != nil { + if err = pk.AddFileEx(be.project.Respond, "bali_post_install", true); err != nil { return err } - } else if !be.norename { + } else if !be.noNewName { if err = rw.Initialize(); err != nil { return err } @@ -369,7 +369,7 @@ func (be *Executor) PackUNIX() error { } fmt.Fprintf(os.Stderr, "compress target \x1b[32m%s\x1b[0m\n", rel) nameInArchive := be.PathInArchive(rel) - if !be.norename { + if !be.noNewName { nameInArchive = base.StrCat(nameInArchive, ".new") } if err = pk.AddFileEx(s, nameInArchive, true); err != nil { @@ -387,11 +387,11 @@ func (be *Executor) PackUNIX() error { return err } } - for _, f := range be.bm.Files { + for _, f := range be.project.Files { file := filepath.Join(be.workdir, f.Path) rel := filepath.Join(f.Destination, f.Base()) fmt.Fprintf(os.Stderr, "compress profile \x1b[32m%s\x1b[0m\n", rel) - if be.norename || f.NoRename { + if be.noNewName || f.NoRename { if err = pk.AddFileEx(file, be.PathInArchive(rel), f.Executable); err != nil { _ = rw.Close() return err diff --git a/cmd/bali/main.go b/cmd/bali/main.go index 7789aac..252fff2 100644 --- a/cmd/bali/main.go +++ b/cmd/bali/main.go @@ -19,7 +19,7 @@ var ( // version info var ( - VERSION = "2.1.1" + VERSION = "2.2.0" BUILDTIME string = "NONE" BUILDCOMMIT string = "NONE" BUILDBRANCH string = "NONE" @@ -142,7 +142,7 @@ func (be *Executor) Invoke(val int, oa, raw string) error { case 1001: be.cleanup = true case 1002: - be.norename = true + be.noNewName = true case 1003: be.forceVerion = oa case 1004: diff --git a/cmd/peassets/balisrc.toml b/cmd/peassets/balisrc.toml index eae8345..43279e7 100644 --- a/cmd/peassets/balisrc.toml +++ b/cmd/peassets/balisrc.toml @@ -1,7 +1,7 @@ name = "peassets" description = "peassets - PE executable program depends on aggregation tool" destination = "bin" -version = "2.1.1" +version = "2.2.0" versioninfo = "res/versioninfo.json" icon = "res/peassets.ico" manifest = "res/peassets.manifest" diff --git a/cmd/peassets/main.go b/cmd/peassets/main.go index 5e665cb..08ab63a 100644 --- a/cmd/peassets/main.go +++ b/cmd/peassets/main.go @@ -18,7 +18,7 @@ var ( // version info var ( - VERSION = "2.1.1" + VERSION = "2.2.0" BUILDTIME string = "NONE" BUILDCOMMIT string = "NONE" BUILDBRANCH string = "NONE" diff --git a/go.mod b/go.mod index f1000fb..1894eda 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/balibuild/bali/v2 -go 1.21 +go 1.22 require ( github.com/akavel/rsrc v0.10.2 @@ -10,7 +10,7 @@ require ( github.com/google/go-cmp v0.6.0 github.com/klauspost/compress v1.17.8 github.com/klauspost/pgzip v1.2.6 - github.com/pelletier/go-toml v1.9.5 + github.com/pelletier/go-toml/v2 v2.2.1 github.com/pkg/errors v0.9.1 github.com/ulikunitz/xz v0.5.12 ) diff --git a/go.sum b/go.sum index ac095d5..28b639b 100644 --- a/go.sum +++ b/go.sum @@ -2,6 +2,9 @@ github.com/akavel/rsrc v0.10.2 h1:Zxm8V5eI1hW4gGaYsJQUhxpjkENuG91ki8B4zCrvEsw= github.com/akavel/rsrc v0.10.2/go.mod h1:uLoCtb9J+EyAqh+26kdrTgmzRBFPGOolLWKpdxkKq+c= github.com/andybalholm/brotli v1.1.0 h1:eLKJA0d02Lf0mVpIDgYnqXcUn0GqVmEFny3VuID1U3M= github.com/andybalholm/brotli v1.1.0/go.mod h1:sms7XGricyQI9K10gOSf56VKKWS4oLer58Q+mhRPtnY= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dsnet/compress v0.0.1 h1:PlZu0n3Tuv04TzpfPbrnI0HW/YwodEXDS+oPKahKF0Q= github.com/dsnet/compress v0.0.1/go.mod h1:Aw8dCMJ7RioblQeTqt88akK31OvO8Dhf5JflhBbQEHo= github.com/dsnet/golib v0.0.0-20171103203638-1ea166775780/go.mod h1:Lj+Z9rebOhdfkVLjJ8T6VcRQv3SXugXy999NBtR9aFY= @@ -15,10 +18,25 @@ github.com/klauspost/compress v1.17.8/go.mod h1:Di0epgTjJY877eYKx5yC51cX2A2Vl2ib github.com/klauspost/cpuid v1.2.0/go.mod h1:Pj4uuM528wm8OyEC2QMXAi2YiTZ96dNQPGgoMS4s3ek= github.com/klauspost/pgzip v1.2.6 h1:8RXeL5crjEUFnR2/Sn6GJNWtSQ3Dk8pq4CL3jvdDyjU= github.com/klauspost/pgzip v1.2.6/go.mod h1:Ch1tH69qFZu15pkjo5kYi6mth2Zzwzt50oCQKQE9RUs= -github.com/pelletier/go-toml v1.9.5 h1:4yBQzkHv+7BHq2PQUZF3Mx0IYxG7LsP222s7Agd3ve8= -github.com/pelletier/go-toml v1.9.5/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c= +github.com/pelletier/go-toml/v2 v2.2.1 h1:9TA9+T8+8CUCO2+WYnDLCgrYi9+omqKXyjDtosvtEhg= +github.com/pelletier/go-toml/v2 v2.2.1/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= +github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/ulikunitz/xz v0.5.6/go.mod h1:2bypXElzHzzJZwzH67Y6wb67pO62Rzfn7BSiF4ABRW8= github.com/ulikunitz/xz v0.5.12 h1:37Nm15o69RwBkXM0J6A5OlE67RZTfzUxTj8fB3dfcsc= github.com/ulikunitz/xz v0.5.12/go.mod h1:nbz6k7qbPmH4IRqmfOplQw/tblSgqTqBwxkY0oWt/14= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/goversioninfo/goversioninfo.go b/goversioninfo/goversioninfo.go index 04a58dd..e441d3e 100644 --- a/goversioninfo/goversioninfo.go +++ b/goversioninfo/goversioninfo.go @@ -6,7 +6,6 @@ import ( "encoding/json" "fmt" "io" - "io/ioutil" "log" "os" "reflect" @@ -66,13 +65,13 @@ func (f *FileVersion) Fillling(sv string) error { } var err error if len(svv) > 3 { - f.Build, err = strconv.Atoi(svv[3]) + f.Build, _ = strconv.Atoi(svv[3]) } if len(svv) > 2 { - f.Patch, err = strconv.Atoi(svv[2]) + f.Patch, _ = strconv.Atoi(svv[2]) } if len(svv) > 1 { - f.Minor, err = strconv.Atoi(svv[1]) + f.Minor, _ = strconv.Atoi(svv[1]) } f.Major, err = strconv.Atoi(svv[0]) return err @@ -256,7 +255,7 @@ func (vi *VersionInfo) WriteSyso(filename string, arch string) error { // WriteHex creates a hex file for debugging version info func (vi *VersionInfo) WriteHex(filename string) error { - return ioutil.WriteFile(filename, vi.buffer.Bytes(), 0655) + return os.WriteFile(filename, vi.buffer.Bytes(), 0655) } func writeCoff(coff *coff.Coff, fnameout string) error { diff --git a/pack/stgz.go b/pack/stgz.go index 50786e5..4b32032 100644 --- a/pack/stgz.go +++ b/pack/stgz.go @@ -115,28 +115,28 @@ bali_apply_config() { ` ) -// HashableFile hash file -type HashableFile struct { - fd *os.File - h hash.Hash - mw io.Writer +// HashFD hash file +type HashFD struct { + *os.File + h hash.Hash + w io.Writer } // WriteString write string -func (f *HashableFile) WriteString(s string) (int, error) { - return f.mw.Write([]byte(s)) +func (fd *HashFD) WriteString(s string) (int, error) { + return fd.w.Write([]byte(s)) } // Close close file -func (f *HashableFile) Close() error { - if f == nil || f.fd == nil { +func (fd *HashFD) Close() error { + if fd == nil || fd.File == nil { return nil } - return f.fd.Close() + return fd.Close() } -// Hashsum hash sum -func (f *HashableFile) Hashsum(name string) { +// Sum hash sum +func (f *HashFD) Sum(name string) { if f == nil { return } @@ -147,18 +147,18 @@ func (f *HashableFile) Hashsum(name string) { } // Write a file -func (f *HashableFile) Write(p []byte) (int, error) { - return f.mw.Write(p) +func (f *HashFD) Write(p []byte) (int, error) { + return f.w.Write(p) } -// OpenHashableFile todo -func OpenHashableFile(name string) (*HashableFile, error) { +// NewHashFD new hash fd +func NewHashFD(name string) (*HashFD, error) { fd, err := os.OpenFile(name, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0755) if err != nil { return nil, err } - file := &HashableFile{h: sha256.New(), fd: fd} - file.mw = io.MultiWriter(file.fd, file.h) + file := &HashFD{h: sha256.New(), File: fd} + file.w = io.MultiWriter(file.File, file.h) if _, err := file.WriteString(header); err != nil { _ = file.Close() _ = os.Remove(name) diff --git a/script/bootstrap.ps1 b/script/bootstrap.ps1 index 96191f4..e8e97fd 100755 --- a/script/bootstrap.ps1 +++ b/script/bootstrap.ps1 @@ -1,11 +1,11 @@ #!/usr/bin/env pwsh -Write-Host -ForegroundColor Green "Bootstrap baligo" +Write-Host -ForegroundColor Green "Bootstrap bali" $TopLevel = Split-Path -Path $PSScriptRoot $SrcDir = Join-Path $TopLevel -ChildPath "cmd/bali" $BaliFile = "$SrcDir/bali" -$BailBin = "$TopLevel/bali.out" +$BailBin = "$TopLevel/bali.stage0" if ($PSEdition -eq "Desktop" -or $IsWindows) { $BaliFile += ".exe" $BailBin += ".exe"