Merge pull request #1899 from ArturKlauser/simplify-prepare-deploy
Simplify .prepare-deploy
This commit is contained in:
commit
775c0c11d7
|
@ -27,35 +27,14 @@ do
|
||||||
zip "${file%.*}.zip" README.txt LICENSE.txt "$file"
|
zip "${file%.*}.zip" README.txt LICENSE.txt "$file"
|
||||||
done
|
done
|
||||||
|
|
||||||
for file in *.linux-x86_64
|
for file in *.{linux,darwin}-*
|
||||||
do
|
do
|
||||||
base="${file%.*}"
|
base="${file%.*}"
|
||||||
|
ext="${file##*.}"
|
||||||
|
os="${ext%-*}"
|
||||||
|
arch="${ext##*-}"
|
||||||
cp "$file" "shellcheck"
|
cp "$file" "shellcheck"
|
||||||
tar -cJf "$base.linux.x86_64.tar.xz" --transform="s:^:$base/:" README.txt LICENSE.txt shellcheck
|
tar -cJf "$base.$os.$arch.tar.xz" --transform="s:^:$base/:" README.txt LICENSE.txt shellcheck
|
||||||
rm "shellcheck"
|
|
||||||
done
|
|
||||||
|
|
||||||
for file in *.linux-aarch64
|
|
||||||
do
|
|
||||||
base="${file%.*}"
|
|
||||||
cp "$file" "shellcheck"
|
|
||||||
tar -cJf "$base.linux.aarch64.tar.xz" --transform="s:^:$base/:" README.txt LICENSE.txt shellcheck
|
|
||||||
rm "shellcheck"
|
|
||||||
done
|
|
||||||
|
|
||||||
for file in *.linux-armv6hf
|
|
||||||
do
|
|
||||||
base="${file%.*}"
|
|
||||||
cp "$file" "shellcheck"
|
|
||||||
tar -cJf "$base.linux.armv6hf.tar.xz" --transform="s:^:$base/:" README.txt LICENSE.txt shellcheck
|
|
||||||
rm "shellcheck"
|
|
||||||
done
|
|
||||||
|
|
||||||
for file in *.darwin-x86_64
|
|
||||||
do
|
|
||||||
base="${file%.*}"
|
|
||||||
cp "$file" "shellcheck"
|
|
||||||
tar -cJf "$base.darwin.x86_64.tar.xz" --transform="s:^:$base/:" README.txt LICENSE.txt shellcheck
|
|
||||||
rm "shellcheck"
|
rm "shellcheck"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue