diff --git a/DistTasks.yml b/DistTasks.yml index 07a135c..dc45df3 100644 --- a/DistTasks.yml +++ b/DistTasks.yml @@ -41,13 +41,15 @@ tasks: dir: "{{.DIST_DIR}}" cmds: - | + mkdir {{.PLATFORM_DIR}} + cp ../LICENSE.txt {{.PLATFORM_DIR}}/ docker run -v `pwd`/..:/home/build -w /home/build \ -e CGO_ENABLED=0 \ {{.CONTAINER}}:{{.CONTAINER_TAG}} \ --build-cmd "{{.BUILD_COMMAND}}" \ -p "{{.BUILD_PLATFORM}}" - zip {{.PACKAGE_NAME}} {{.PLATFORM_DIR}}/{{.PROJECT_NAME}}.exe ../LICENSE.txt -j + zip {{.PACKAGE_NAME}} {{.PLATFORM_DIR}}/{{.PROJECT_NAME}}.exe {{.PLATFORM_DIR}}/LICENSE.txt sha256sum {{.PACKAGE_NAME}} >> {{.CHECKSUM_FILE}} vars: @@ -63,13 +65,15 @@ tasks: dir: "{{.DIST_DIR}}" cmds: - | + mkdir {{.PLATFORM_DIR}} + cp ../LICENSE.txt {{.PLATFORM_DIR}}/ docker run -v `pwd`/..:/home/build -w /home/build \ -e CGO_ENABLED=0 \ {{.CONTAINER}}:{{.CONTAINER_TAG}} \ --build-cmd "{{.BUILD_COMMAND}}" \ -p "{{.BUILD_PLATFORM}}" - zip {{.PACKAGE_NAME}} {{.PLATFORM_DIR}}/{{.PROJECT_NAME}}.exe ../LICENSE.txt -j + zip {{.PACKAGE_NAME}} {{.PLATFORM_DIR}}/{{.PROJECT_NAME}}.exe {{.PLATFORM_DIR}}/LICENSE.txt sha256sum {{.PACKAGE_NAME}} >> {{.CHECKSUM_FILE}} vars: @@ -85,13 +89,15 @@ tasks: dir: "{{.DIST_DIR}}" cmds: - | + mkdir {{.PLATFORM_DIR}} + cp ../LICENSE.txt {{.PLATFORM_DIR}}/ docker run -v `pwd`/..:/home/build -w /home/build \ -e CGO_ENABLED=0 \ {{.CONTAINER}}:{{.CONTAINER_TAG}} \ --build-cmd "{{.BUILD_COMMAND}}" \ -p "{{.BUILD_PLATFORM}}" - tar cz -C {{.PLATFORM_DIR}} {{.PROJECT_NAME}} -C ../.. LICENSE.txt -f {{.PACKAGE_NAME}} + tar cz {{.PLATFORM_DIR}} -f {{.PACKAGE_NAME}} sha256sum {{.PACKAGE_NAME}} >> {{.CHECKSUM_FILE}} vars: @@ -107,13 +113,15 @@ tasks: dir: "{{.DIST_DIR}}" cmds: - | + mkdir {{.PLATFORM_DIR}} + cp ../LICENSE.txt {{.PLATFORM_DIR}}/ docker run -v `pwd`/..:/home/build -w /home/build \ -e CGO_ENABLED=0 \ {{.CONTAINER}}:{{.CONTAINER_TAG}} \ --build-cmd "{{.BUILD_COMMAND}}" \ -p "{{.BUILD_PLATFORM}}" - tar cz -C {{.PLATFORM_DIR}} {{.PROJECT_NAME}} -C ../.. LICENSE.txt -f {{.PACKAGE_NAME}} + tar cz {{.PLATFORM_DIR}} -f {{.PACKAGE_NAME}} sha256sum {{.PACKAGE_NAME}} >> {{.CHECKSUM_FILE}} vars: @@ -129,13 +137,15 @@ tasks: dir: "{{.DIST_DIR}}" cmds: - | + mkdir {{.PLATFORM_DIR}} + cp ../LICENSE.txt {{.PLATFORM_DIR}}/ docker run -v `pwd`/..:/home/build -w /home/build \ -e CGO_ENABLED=0 \ {{.CONTAINER}}:{{.CONTAINER_TAG}} \ --build-cmd "{{.BUILD_COMMAND}}" \ -p "{{.BUILD_PLATFORM}}" - tar cz -C {{.PLATFORM_DIR}} {{.PROJECT_NAME}} -C ../.. LICENSE.txt -f {{.PACKAGE_NAME}} + tar cz {{.PLATFORM_DIR}} -f {{.PACKAGE_NAME}} sha256sum {{.PACKAGE_NAME}} >> {{.CHECKSUM_FILE}} vars: @@ -151,13 +161,15 @@ tasks: dir: "{{.DIST_DIR}}" cmds: - | + mkdir {{.PLATFORM_DIR}} + cp ../LICENSE.txt {{.PLATFORM_DIR}}/ docker run -v `pwd`/..:/home/build -w /home/build \ -e CGO_ENABLED=0 \ {{.CONTAINER}}:{{.CONTAINER_TAG}} \ --build-cmd "{{.BUILD_COMMAND}}" \ -p "{{.BUILD_PLATFORM}}" - tar cz -C {{.PLATFORM_DIR}} {{.PROJECT_NAME}} -C ../.. LICENSE.txt -f {{.PACKAGE_NAME}} + tar cz {{.PLATFORM_DIR}} -f {{.PACKAGE_NAME}} sha256sum {{.PACKAGE_NAME}} >> {{.CHECKSUM_FILE}} vars: @@ -205,13 +217,15 @@ tasks: dir: "{{.DIST_DIR}}" cmds: - | + mkdir {{.PLATFORM_DIR}} + cp ../LICENSE.txt {{.PLATFORM_DIR}}/ docker run -v `pwd`/..:/home/build -w /home/build \ -e CGO_ENABLED=0 \ {{.CONTAINER}}:{{.CONTAINER_TAG}} \ --build-cmd "{{.BUILD_COMMAND}}" \ -p "{{.BUILD_PLATFORM}}" - tar cz -C {{.PLATFORM_DIR}} {{.PROJECT_NAME}} -C ../.. LICENSE.txt -f {{.PACKAGE_NAME}} + tar cz {{.PLATFORM_DIR}} -f {{.PACKAGE_NAME}} sha256sum {{.PACKAGE_NAME}} >> {{.CHECKSUM_FILE}} vars: @@ -228,13 +242,15 @@ tasks: cmds: # "git config safe.directory" is required until this is fixed https://github.com/elastic/golang-crossbuild/issues/232 - | + mkdir {{.PLATFORM_DIR}} + cp ../LICENSE.txt {{.PLATFORM_DIR}}/ docker run -v `pwd`/..:/home/build -w /home/build \ -e CGO_ENABLED=0 \ {{.CONTAINER}}:{{.CONTAINER_TAG}} \ --build-cmd "git config --global --add safe.directory /home/build && {{.BUILD_COMMAND}}" \ -p "{{.BUILD_PLATFORM}}" - tar cz -C {{.PLATFORM_DIR}} {{.PROJECT_NAME}} -C ../.. LICENSE.txt -f {{.PACKAGE_NAME}} + tar cz {{.PLATFORM_DIR}} -f {{.PACKAGE_NAME}} sha256sum {{.PACKAGE_NAME}} >> {{.CHECKSUM_FILE}} vars: @@ -264,13 +280,15 @@ tasks: cmds: # "git config safe.directory" is required until this is fixed https://github.com/elastic/golang-crossbuild/issues/232 - | + mkdir {{.PLATFORM_DIR}} + cp ../LICENSE.txt {{.PLATFORM_DIR}}/ docker run -v `pwd`/..:/home/build -w /home/build \ -e CGO_ENABLED=0 \ {{.CONTAINER}}:{{.CONTAINER_TAG}} \ --build-cmd "git config --global --add safe.directory /home/build && {{.BUILD_COMMAND}}" \ -p "{{.BUILD_PLATFORM}}" - tar cz -C {{.PLATFORM_DIR}} {{.PROJECT_NAME}} -C ../.. LICENSE.txt -f {{.PACKAGE_NAME}} + tar cz {{.PLATFORM_DIR}} -f {{.PACKAGE_NAME}} sha256sum {{.PACKAGE_NAME}} >> {{.CHECKSUM_FILE}} vars: