fix platform check

This commit is contained in:
neil 2022-12-27 10:59:02 +08:00
parent adf6c22eb5
commit 3a9d2d3340
2 changed files with 2 additions and 2 deletions

View file

@ -176,7 +176,7 @@ jobs:
run: |
BUILD_PLATFORM=$(echo $platform | sed -e "s/darwin+//g" | sed -e "s/linux+//g")
[[ $BUILD_PLATFORM = "x86-64" ]] && BUILD_PLATFORM="x64" || BUILD_PLATFORM=$BUILD_PLATFORM
[[ $BUILD_PLATFORM = "linux+x86-64" ]] && BUILD_PLATFORM="amd64" || BUILD_PLATFORM=$BUILD_PLATFORM
[[ $platform = "linux+x86-64" ]] && BUILD_PLATFORM="amd64" || BUILD_PLATFORM=$BUILD_PLATFORM
echo "build_platform=$BUILD_PLATFORM" >> $GITHUB_OUTPUT
- name: test build tauri

View file

@ -132,7 +132,7 @@ jobs:
run: |
BUILD_PLATFORM=$(echo $platform | sed -e "s/darwin+//g" | sed -e "s/linux+//g")
[[ $BUILD_PLATFORM = "x86-64" ]] && BUILD_PLATFORM="x64" || BUILD_PLATFORM=$BUILD_PLATFORM
[[ $BUILD_PLATFORM = "linux+x86-64" ]] && BUILD_PLATFORM="amd64" || BUILD_PLATFORM=$BUILD_PLATFORM
[[ $platform = "linux+x86-64" ]] && BUILD_PLATFORM="amd64" || BUILD_PLATFORM=$BUILD_PLATFORM
echo "build_platform=$BUILD_PLATFORM" >> $GITHUB_OUTPUT
- name: cp package images from prod to gui bucket