build: crowdin now requires auth
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
+7
-1
@@ -1,4 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
if [[ $# -ne 1 ]]; then
|
||||||
|
echo "Download https://crowdin.com/backend/download/project/wireguard.zip and provide path as argument"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
curl -Lo - https://crowdin.com/backend/download/project/wireguard.zip | bsdtar -C ui/src/main/res -x -f - --strip-components 5 wireguard-android
|
|
||||||
|
bsdtar -C ui/src/main/res -x -f "$1" --strip-components 5 wireguard-android
|
||||||
find ui/src/main/res -name strings.xml -exec bash -c '[[ $(xmllint --xpath "count(//resources/*)" {}) -ne 0 ]] || rm -rf "$(dirname {})"' \;
|
find ui/src/main/res -name strings.xml -exec bash -c '[[ $(xmllint --xpath "count(//resources/*)" {}) -ne 0 ]] || rm -rf "$(dirname {})"' \;
|
||||||
|
|||||||
Reference in New Issue
Block a user