Commit c447be5c authored by nanahira's avatar nanahira

some related changes

parent 7c914a9c
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
set -x set -x
set -o errexit set -o errexit
# ygopro-database # ygopro-database
apt update && apt -y install wget git p7zip-full apt update && apt -y install wget git libarchive-tools
git clone --depth=1 https://code.mycard.moe/mycard/ygopro-database git clone --depth=1 https://code.mycard.moe/mycard/ygopro-database
cp -rf ./ygopro-database/locales/$TARGET_LOCALE/* . cp -rf ./ygopro-database/locales/$TARGET_LOCALE/* .
# ygopro-images # ygopro-images
wget -O ygopro-images.zip https://cdn01.moecube.com/images/ygopro-images-${TARGET_LOCALE}.zip mkdir pics
7z x -y -opics ygopro-images.zip wget -O - https://cdn01.moecube.com/images/ygopro-images-${TARGET_LOCALE}.zip | bsdtar -C pics -xf -
...@@ -25,7 +25,7 @@ handleErrorMessage() { ...@@ -25,7 +25,7 @@ handleErrorMessage() {
runForDepot() { runForDepot() {
platform=$1 platform=$1
locale=$2 locale=$2
archivePath="./dist/ygopro-$appVersion-$platform-$locale.tar.zst" archivePath="./dist/$appName-$appVersion-$platform-$locale.tar.zst"
suffix="?platform=$platform&locale=$locale&arch=generic" suffix="?platform=$platform&locale=$locale&arch=generic"
echo "Uploading $archivePath" echo "Uploading $archivePath"
result=$(curl -H "$header" -X POST "$apiRoot/release/api/build/$appName/${appVersion}${suffix}" -F file=@$archivePath) result=$(curl -H "$header" -X POST "$apiRoot/release/api/build/$appName/${appVersion}${suffix}" -F file=@$archivePath)
......
Subproject commit 735ec9cc8191a9a5bb0670d9ada8653a2dfac05f Subproject commit 03b59cd0d5f99c365f28f3841ab3b44d0ea5071c
Subproject commit 8b82a865db02c71e7910555cfd06eb388a6fc387 Subproject commit 967a69444572c9ab9ec3cd54ab5bf8d984e37239
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment