File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change 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 :
You can’t perform that action at this time.
0 commit comments