diff --git a/.gitignore b/.gitignore index 1ecd193..65babe7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +/dist /bin /TODO .DS_Store diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..afa9078 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,26 @@ +before: + hooks: + - go mod tidy + - make clean kernel initfs +checksum: + disable: true +snapshot: + name_template: "{{.ShortCommit}}" +builds: + - id: wanix + goos: + - darwin + - linux + - windows + goarch: + - amd64 + - arm64 + ldflags: "-X main.Version={{.Version}}" + main: ./cmd/wanix +archives: +- id: default + builds: + - wanix + name_template: '{{ .ProjectName }}_{{ .Version }}_{{.Os}}_{{.Arch}}' + format: zip + wrap_in_directory: false \ No newline at end of file diff --git a/Makefile b/Makefile index dc57aea..37f951e 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,9 @@ all: wanix kernel shell build micro dev: all ./local/bin/wanix dev +release: + goreleaser release --snapshot --clean + clean: rm -rf ./boot/initfs rm -rf ./boot/initfs.gz @@ -18,7 +21,7 @@ loader: all wanix: local/bin/wanix local/bin/wanix: kernel initfs - go build -ldflags="-X 'main.Version=${VERSION}' -o ./local/bin/ ./cmd/wanix + go build -ldflags="-X 'main.Version=${VERSION}'" -o ./local/bin/ ./cmd/wanix kernel: boot/kernel.gz boot/kernel.gz: diff --git a/boot/site/index.html b/boot/site/index.html index f558772..60843df 100644 --- a/boot/site/index.html +++ b/boot/site/index.html @@ -9,7 +9,9 @@