Skip to content

Commit 9b13239

Browse files
Fix windows release by looking up .exe (#202)
* changed release.yaml 56 from gnu to msvc * Update release.yaml * added exe extension * added executable actually * use single [ --------- Co-authored-by: Jason Shin <[email protected]>
1 parent f985024 commit 9b13239

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/install.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,11 @@ echo "URL to download $url"
185185

186186
curl -LSfs $url --output $td/sqlx-ts.zip
187187
unzip -j $td/sqlx-ts.zip -d $td
188-
cp $td/sqlx-ts .
188+
if [ "$os" == "win32" ]; then
189+
cp $td/sqlx-ts.exe .
190+
else
191+
cp $td/sqlx-ts .
192+
fi
189193

190194
# shellcheck disable=SC2045
191195
for f in $(ls $td); do

0 commit comments

Comments
 (0)