From 1ae2f93e992d08b7b7909c31a5e40c0b01237e2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Thu, 18 Jan 2024 00:38:01 +0000 Subject: [PATCH] chore: make win64 build to its own dir --- .gitignore | 2 ++ scripts/make-win64.sh | 27 ++++++++++++++++----------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 7e92622..6550dff 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,5 @@ dist-ssr /um-react-wry-* /um-react*.exe + +/win64/ diff --git a/scripts/make-win64.sh b/scripts/make-win64.sh index 88ad535..8f63fef 100755 --- a/scripts/make-win64.sh +++ b/scripts/make-win64.sh @@ -1,28 +1,33 @@ #!/bin/bash +# sudo apt install -y jq zip + pushd "$(dirname "${BASH_SOURCE[0]}")/../" +WRY_VER="0.1.1" + +mkdir -p win64/{deps,dist} dl_file() { local FILE="$1" - if [[ ! -f "$FILE" ]]; then - curl -fsL "https://um-react.app/files/${FILE}.gz" | gzip -d >"${FILE}" + if [[ ! -f "win64/deps/$FILE" ]]; then + curl -fsL "https://um-react.app/files/${FILE}.gz" | gzip -d >"win64/deps/${FILE}" fi } -dl_file "um-react-wry-builder-0.1.0-linux-amd64" -dl_file "um-react-wry-stub-0.1.0-win64.exe" -chmod a+x um-react-wry-builder-0.1.0-linux-amd64 +dl_file "um-react-wry-builder-${WRY_VER}-linux-amd64" +dl_file "um-react-wry-stub-${WRY_VER}-win64.exe" +chmod a+x win64/deps/um-react-wry-builder-${WRY_VER}-linux-amd64 APP_VERSION="$(jq -r '.version'