|
@@ -11,9 +11,14 @@ before:
|
|
builds:
|
|
builds:
|
|
- id: casaos-amd64
|
|
- id: casaos-amd64
|
|
binary: build/sysroot/usr/bin/casaos
|
|
binary: build/sysroot/usr/bin/casaos
|
|
|
|
+ hooks:
|
|
|
|
+ post:
|
|
|
|
+ - upx --best --lzma -v --no-progress "{{ .Path }}"
|
|
env:
|
|
env:
|
|
- CC=x86_64-linux-gnu-gcc
|
|
- CC=x86_64-linux-gnu-gcc
|
|
ldflags:
|
|
ldflags:
|
|
|
|
+ - -X main.commit={{.Commit}}
|
|
|
|
+ - -X main.date={{.Date}}
|
|
- -s
|
|
- -s
|
|
- -w
|
|
- -w
|
|
- -extldflags "-static"
|
|
- -extldflags "-static"
|
|
@@ -25,14 +30,16 @@ builds:
|
|
- linux
|
|
- linux
|
|
goarch:
|
|
goarch:
|
|
- amd64
|
|
- amd64
|
|
- hooks:
|
|
|
|
- post:
|
|
|
|
- - find build/sysroot -type f | xargs -L 1 realpath --relative-to=build/sysroot > build/sysroot.manifest
|
|
|
|
- id: casaos-arm64
|
|
- id: casaos-arm64
|
|
binary: build/sysroot/usr/bin/casaos
|
|
binary: build/sysroot/usr/bin/casaos
|
|
|
|
+ hooks:
|
|
|
|
+ post:
|
|
|
|
+ - upx --best --lzma -v --no-progress "{{ .Path }}"
|
|
env:
|
|
env:
|
|
- CC=aarch64-linux-gnu-gcc
|
|
- CC=aarch64-linux-gnu-gcc
|
|
ldflags:
|
|
ldflags:
|
|
|
|
+ - -X main.commit={{.Commit}}
|
|
|
|
+ - -X main.date={{.Date}}
|
|
- -s
|
|
- -s
|
|
- -w
|
|
- -w
|
|
- -extldflags "-static"
|
|
- -extldflags "-static"
|
|
@@ -44,14 +51,16 @@ builds:
|
|
- linux
|
|
- linux
|
|
goarch:
|
|
goarch:
|
|
- arm64
|
|
- arm64
|
|
- hooks:
|
|
|
|
- post:
|
|
|
|
- - find build/sysroot -type f | xargs -L 1 realpath --relative-to=build/sysroot > build/sysroot.manifest
|
|
|
|
- id: casaos-arm-7
|
|
- id: casaos-arm-7
|
|
binary: build/sysroot/usr/bin/casaos
|
|
binary: build/sysroot/usr/bin/casaos
|
|
|
|
+ hooks:
|
|
|
|
+ post:
|
|
|
|
+ - upx --best --lzma -v --no-progress "{{ .Path }}"
|
|
env:
|
|
env:
|
|
- CC=arm-linux-gnueabihf-gcc
|
|
- CC=arm-linux-gnueabihf-gcc
|
|
ldflags:
|
|
ldflags:
|
|
|
|
+ - -X main.commit={{.Commit}}
|
|
|
|
+ - -X main.date={{.Date}}
|
|
- -s
|
|
- -s
|
|
- -w
|
|
- -w
|
|
- -extldflags "-static"
|
|
- -extldflags "-static"
|
|
@@ -65,15 +74,17 @@ builds:
|
|
- arm
|
|
- arm
|
|
goarm:
|
|
goarm:
|
|
- "7"
|
|
- "7"
|
|
- hooks:
|
|
|
|
- post:
|
|
|
|
- - find build/sysroot -type f | xargs -L 1 realpath --relative-to=build/sysroot > build/sysroot.manifest
|
|
|
|
- id: casaos-migration-tool-amd64
|
|
- id: casaos-migration-tool-amd64
|
|
binary: build/sysroot/usr/bin/casaos-migration-tool
|
|
binary: build/sysroot/usr/bin/casaos-migration-tool
|
|
|
|
+ hooks:
|
|
|
|
+ post:
|
|
|
|
+ - upx --best --lzma -v --no-progress "{{ .Path }}"
|
|
main: ./cmd/migration-tool
|
|
main: ./cmd/migration-tool
|
|
env:
|
|
env:
|
|
- CC=x86_64-linux-gnu-gcc
|
|
- CC=x86_64-linux-gnu-gcc
|
|
ldflags:
|
|
ldflags:
|
|
|
|
+ - -X main.commit={{.Commit}}
|
|
|
|
+ - -X main.date={{.Date}}
|
|
- -s
|
|
- -s
|
|
- -w
|
|
- -w
|
|
- -extldflags "-static"
|
|
- -extldflags "-static"
|
|
@@ -87,10 +98,15 @@ builds:
|
|
- amd64
|
|
- amd64
|
|
- id: casaos-migration-tool-arm64
|
|
- id: casaos-migration-tool-arm64
|
|
binary: build/sysroot/usr/bin/casaos-migration-tool
|
|
binary: build/sysroot/usr/bin/casaos-migration-tool
|
|
|
|
+ hooks:
|
|
|
|
+ post:
|
|
|
|
+ - upx --best --lzma -v --no-progress "{{ .Path }}"
|
|
main: ./cmd/migration-tool
|
|
main: ./cmd/migration-tool
|
|
env:
|
|
env:
|
|
- CC=aarch64-linux-gnu-gcc
|
|
- CC=aarch64-linux-gnu-gcc
|
|
ldflags:
|
|
ldflags:
|
|
|
|
+ - -X main.commit={{.Commit}}
|
|
|
|
+ - -X main.date={{.Date}}
|
|
- -s
|
|
- -s
|
|
- -w
|
|
- -w
|
|
- -extldflags "-static"
|
|
- -extldflags "-static"
|
|
@@ -104,10 +120,15 @@ builds:
|
|
- arm64
|
|
- arm64
|
|
- id: casaos-migration-tool-arm-7
|
|
- id: casaos-migration-tool-arm-7
|
|
binary: build/sysroot/usr/bin/casaos-migration-tool
|
|
binary: build/sysroot/usr/bin/casaos-migration-tool
|
|
|
|
+ hooks:
|
|
|
|
+ post:
|
|
|
|
+ - upx --best --lzma -v --no-progress "{{ .Path }}"
|
|
main: ./cmd/migration-tool
|
|
main: ./cmd/migration-tool
|
|
env:
|
|
env:
|
|
- CC=arm-linux-gnueabihf-gcc
|
|
- CC=arm-linux-gnueabihf-gcc
|
|
ldflags:
|
|
ldflags:
|
|
|
|
+ - -X main.commit={{.Commit}}
|
|
|
|
+ - -X main.date={{.Date}}
|
|
- -s
|
|
- -s
|
|
- -w
|
|
- -w
|
|
- -extldflags "-static"
|
|
- -extldflags "-static"
|