Skip to content

Commit

Permalink
package-binaries.yml: Account for .exe when renaming file
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuacwnewton committed May 16, 2022
1 parent 650abdd commit 2357a67
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/package-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,27 +68,31 @@ jobs:
- name: get ctrDetect
run: |
echo "test test trying to build for ${{ matrix.os }}"
mkdir -p pkg
case "${{ matrix.os }}" in
linux)
URL="http://www.creatis.insa-lyon.fr/~sdika/soft/ctrDetect-v1_x86_64.tar.gz"
curl -L "$URL" -o ctrDetect.tar.gz
tar -zxvf ctrDetect.tar.gz
cp -p ctrDetect/{spine_detect,spine_train_svm} pkg/
mv pkg/spine_train_svm pkg/train_svm # we have this one named unusually
;;
osx)
URL="http://www.creatis.insa-lyon.fr/~sdika/soft/ctrDetect-v1_macos10.11.tar.gz"
curl -L "$URL" -o ctrDetect.tar.gz
tar -zxvf ctrDetect.tar.gz
cp -p ctrDetect/{spine_detect,spine_train_svm} pkg/
mv pkg/spine_train_svm pkg/train_svm # we have this one named unusually
;;
windows)
URL="http://www.creatis.insa-lyon.fr/~sdika/soft/ctrDetect-v1_win.zip"
curl -L "$URL" -o ctrDetect.zip
unzip ctrDetect.zip
mv ctrDetect-win/ ctrDetect/
mv ctrDetect-win/ ctrDetect
cp -p ctrDetect/{spine_detect,spine_train_svm}.exe pkg/
mv pkg/spine_train_svm.exe pkg/train_svm.exe # we have this one named unusually
;;
esac
mkdir -p pkg
cp -p ctrDetect/{spine_detect,spine_train_svm}* pkg/
mv pkg/spine_train_svm pkg/train_svm # we have this one named unusually
cp -p ctrDetect/LICENSE.txt pkg/copyright/LICENSE_ctrDetect.txt
cp -p ctrDetect/LICENSE_opencv.txt pkg/copyright/
chmod 544 pkg/copyright/* # upstream accidentally marked the licenses as programs, oops.
Expand Down

0 comments on commit 2357a67

Please sign in to comment.