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'