mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-23 18:49:08 +08:00
Make downloads with curl silent in build process
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
b7c7540bd7
commit
60ed299550
2
.github/workflows/autotools-macos.yml
vendored
2
.github/workflows/autotools-macos.yml
vendored
@ -125,7 +125,7 @@ jobs:
|
||||
|
||||
- name: Install Macports
|
||||
run: |
|
||||
curl -LO https://raw.githubusercontent.com/GiovanniBussi/macports-ci/master/macports-ci; source ./macports-ci install
|
||||
curl -sSLO https://raw.githubusercontent.com/GiovanniBussi/macports-ci/master/macports-ci; source ./macports-ci install
|
||||
# --remove-brew does not remove the Homebrew entries in bin,
|
||||
# so remove them now.
|
||||
rm -v $(brew --prefix)/bin/*
|
||||
|
4
.github/workflows/cmake-win64.yml
vendored
4
.github/workflows/cmake-win64.yml
vendored
@ -117,8 +117,8 @@ jobs:
|
||||
- name: Display Tesseract Version and Test Command Line Usage
|
||||
shell: cmd
|
||||
run: |
|
||||
curl -L https://github.com/tesseract-ocr/tessdata/raw/main/eng.traineddata --output ${{env.ILOC}}/share/tessdata/eng.traineddata
|
||||
curl -L https://github.com/tesseract-ocr/tessdata/raw/main/osd.traineddata --output ${{env.ILOC}}/share/tessdata/osd.traineddata
|
||||
curl -sSL https://github.com/tesseract-ocr/tessdata/raw/main/eng.traineddata --output ${{env.ILOC}}/share/tessdata/eng.traineddata
|
||||
curl -sSL https://github.com/tesseract-ocr/tessdata/raw/main/osd.traineddata --output ${{env.ILOC}}/share/tessdata/osd.traineddata
|
||||
echo "Setting TESSDATA_PREFIX..."
|
||||
set TESSDATA_PREFIX=${{env.ILOC}}/share/tessdata
|
||||
echo "Setting PATH..."
|
||||
|
@ -9,7 +9,7 @@ gitrev="$(shell git --git-dir=${abs_top_srcdir}/.git --work-tree=${abs_top_srcdi
|
||||
.PHONY: winsetup
|
||||
|
||||
Plugins/x86-unicode/INetC.dll:
|
||||
curl -O https://nsis.sourceforge.io/mediawiki/images/c/c9/Inetc.zip
|
||||
curl -OsS https://nsis.sourceforge.io/mediawiki/images/c/c9/Inetc.zip
|
||||
unzip Inetc.zip $@
|
||||
|
||||
winpath.exe: winpath.cpp
|
||||
|
@ -33,13 +33,6 @@ sudo apt-get install --assume-yes --no-install-recommends --quiet \
|
||||
mingw-w64-tools nsis g++-"$PKG_ARCH" \
|
||||
makepkg pacman-package-manager
|
||||
|
||||
# Install pacman-package-manager and its dependencies (from Ubuntu 22.10).
|
||||
# sudo curl -Os http://de.archive.ubuntu.com/ubuntu/pool/universe/p/pacman-package-manager/pacman-package-manager_6.0.1-4_amd64.deb
|
||||
# sudo curl -Os http://de.archive.ubuntu.com/ubuntu/pool/universe/p/pacman-package-manager/libalpm13_6.0.1-4_amd64.deb
|
||||
# sudo curl -Os http://de.archive.ubuntu.com/ubuntu/pool/universe/p/pacman-package-manager/makepkg_6.0.1-4_amd64.deb
|
||||
# sudo dpkg -i *.deb || true
|
||||
# sudo apt-get install --fix-broken --assume-yes --no-install-recommends --quiet
|
||||
|
||||
# Configure pacman.
|
||||
|
||||
# Enable mirrorlist.
|
||||
@ -47,9 +40,9 @@ sudo sed -Ei 's/^#.*(Include.*mirrorlist)/\1/' /etc/pacman.conf
|
||||
(
|
||||
# Add msys key for pacman.
|
||||
cd /usr/share/keyrings
|
||||
sudo curl -Os https://raw.githubusercontent.com/msys2/MSYS2-keyring/master/msys2.gpg
|
||||
sudo curl -Os https://raw.githubusercontent.com/msys2/MSYS2-keyring/master/msys2-revoked
|
||||
sudo curl -Os https://raw.githubusercontent.com/msys2/MSYS2-keyring/master/msys2-trusted
|
||||
sudo curl -OsS https://raw.githubusercontent.com/msys2/MSYS2-keyring/master/msys2.gpg
|
||||
sudo curl -OsS https://raw.githubusercontent.com/msys2/MSYS2-keyring/master/msys2-revoked
|
||||
sudo curl -OsS https://raw.githubusercontent.com/msys2/MSYS2-keyring/master/msys2-trusted
|
||||
)
|
||||
(
|
||||
# Add active environments for pacman.
|
||||
@ -60,8 +53,8 @@ cat <<eod | sudo tee mirrorlist >/dev/null
|
||||
[mingw64]
|
||||
Include = /etc/pacman.d/mirrorlist.mingw
|
||||
eod
|
||||
sudo curl -O https://raw.githubusercontent.com/msys2/MSYS2-packages/master/pacman-mirrors/mirrorlist.mingw
|
||||
# sudo curl -O https://raw.githubusercontent.com/msys2/MSYS2-packages/master/pacman-mirrors/mirrorlist.msys
|
||||
sudo curl -OsS https://raw.githubusercontent.com/msys2/MSYS2-packages/master/pacman-mirrors/mirrorlist.mingw
|
||||
# sudo curl -OsS https://raw.githubusercontent.com/msys2/MSYS2-packages/master/pacman-mirrors/mirrorlist.msys
|
||||
)
|
||||
|
||||
sudo pacman-key --init
|
||||
|
@ -32,7 +32,7 @@ mkdir -p "$OUT"/tessdata
|
||||
(
|
||||
cd "$OUT"/tessdata
|
||||
test -f eng.traineddata || \
|
||||
curl -L -O https://github.com/tesseract-ocr/tessdata/raw/main/eng.traineddata
|
||||
curl -sSL -O https://github.com/tesseract-ocr/tessdata/raw/main/eng.traineddata
|
||||
)
|
||||
|
||||
# OSS-Fuzz requires static linking for the project specific libraries,
|
||||
|
Loading…
Reference in New Issue
Block a user