Skip to content

Commit e3045f5

Browse files
author
Damir Porobic
committed
Copy dlls instead of lib file
1 parent 288f8b3 commit e3045f5

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

.github/workflows/windows.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,6 @@ jobs:
2727
- name: Set up nmake
2828
uses: ilammy/msvc-dev-cmd@v1
2929

30-
# - name: Set up SW
31-
# run: |
32-
# curl -L "https://software-network.org/client/sw-master-windows-client.zip" --output sw.zip
33-
# 7z x sw.zip -o"sw"
34-
# cd sw
35-
# ./sw.exe setup
36-
#
37-
# - name: Set up SW path
38-
# run: echo "D:\a\ksnip-plugin-ocr\ksnip-plugin-ocr\sw" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
39-
4030
- name: Build and install zlib
4131
run: |
4232
curl -sSL -o zlib1211.zip https://zlib.net/zlib1211.zip
@@ -147,12 +137,17 @@ jobs:
147137
cmake .. -G"NMake Makefiles" -DCMAKE_PREFIX_PATH="$env:INSTALL_PREFIX" -DCMAKE_BUILD_TYPE=Release
148138
nmake
149139
140+
- name: Build
141+
run: |
142+
curl -L https://github.com/tesseract-ocr/tessdata/blob/main/eng.traineddata --output eng.traineddata
143+
150144
- name: Package
151145
run: |
152-
mkdir packageDir
146+
mkdir packageDir/tessdata
153147
cp build/src/ksnip-plugin-ocr.dll packageDir/ksnip-plugin-ocr.dll
154-
cp $env:INSTALL_PREFIX/lib/* packageDir/
155-
7z a ksnip-plugin-ocr-${VERSION}-windows.zip ./packageDir/*
148+
cp $env:INSTALL_PREFIX/bin/*.dll packageDir/
149+
cp eng.traineddata packageDir/tessdata
150+
7z a ksnip-plugin-ocr-$env:VERSION-windows.zip ./packageDir/*
156151
157152
- name: Upload files
158153
env:

0 commit comments

Comments
 (0)