mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-08 22:41:50 +02:00
fixup! Replace download-tessdata with inventory.py sync
This commit is contained in:
parent
5ec1809809
commit
b54f347b80
2 changed files with 11 additions and 20 deletions
27
.github/workflows/ci.yml
vendored
27
.github/workflows/ci.yml
vendored
|
@ -87,17 +87,14 @@ jobs:
|
||||||
- run: pip install poetry
|
- run: pip install poetry
|
||||||
- run: poetry install
|
- run: poetry install
|
||||||
- name: Cache inventory
|
- name: Cache inventory
|
||||||
|
id: cache-inventory
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: share/tessdata/
|
path: share/tessdata/
|
||||||
key: v1-inventory-windows-${{ hashFiles('./inventory.lock') }}
|
key: v1-inventory-windows-${{ hashFiles('./inventory.lock') }}
|
||||||
- name: Sync inventory
|
- name: Sync inventory
|
||||||
run: |-
|
if: steps.cache-inventory.outputs.cache-hit != 'true'
|
||||||
if [ -f "share/tessdata" ]; then
|
run: poetry run python3 .\dev_scripts\inventory.py sync
|
||||||
echo "Already cached, skipping"
|
|
||||||
else
|
|
||||||
poetry run python3 ./dev_scripts/inventory.py sync
|
|
||||||
fi
|
|
||||||
- name: Run CLI tests
|
- name: Run CLI tests
|
||||||
run: poetry run make test
|
run: poetry run make test
|
||||||
- name: Set up .NET CLI environment
|
- name: Set up .NET CLI environment
|
||||||
|
@ -139,17 +136,14 @@ jobs:
|
||||||
- run: pip install poetry
|
- run: pip install poetry
|
||||||
- run: poetry install
|
- run: poetry install
|
||||||
- name: Cache inventory
|
- name: Cache inventory
|
||||||
|
id: cache-inventory
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: share/tessdata/
|
path: share/tessdata/
|
||||||
key: v1-inventory-darwin-${{ matrix.arch }}-${{ hashFiles('./inventory.lock') }}
|
key: v1-inventory-darwin-${{ matrix.arch }}-${{ hashFiles('./inventory.lock') }}
|
||||||
- name: Sync inventory
|
- name: Sync inventory
|
||||||
run: |-
|
if: steps.cache-inventory.outputs.cache-hit != 'true'
|
||||||
if [ -f "share/tessdata" ]; then
|
run: poetry run python3 ./dev_scripts/inventory.py sync
|
||||||
echo "Already cached, skipping"
|
|
||||||
else
|
|
||||||
poetry run python3 ./dev_scripts/inventory.py sync
|
|
||||||
fi
|
|
||||||
- name: Run CLI tests
|
- name: Run CLI tests
|
||||||
run: poetry run make test
|
run: poetry run make test
|
||||||
- name: Build macOS app
|
- name: Build macOS app
|
||||||
|
@ -401,18 +395,15 @@ jobs:
|
||||||
poetry install
|
poetry install
|
||||||
|
|
||||||
- name: Cache inventory
|
- name: Cache inventory
|
||||||
|
id: cache-inventory
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: share/tessdata/
|
path: share/tessdata/
|
||||||
key: v1-inventory-linux-${{ hashFiles('./inventory.lock') }}
|
key: v1-inventory-linux-${{ hashFiles('./inventory.lock') }}
|
||||||
|
|
||||||
- name: Sync inventory
|
- name: Sync inventory
|
||||||
run: |-
|
if: steps.cache-inventory.outputs.cache-hit != 'true'
|
||||||
if [ -f "share/tessdata" ]; then
|
run: poetry run python3 ./dev_scripts/inventory.py sync
|
||||||
echo "Already cached, skipping"
|
|
||||||
else
|
|
||||||
poetry run python3 ./dev_scripts/inventory.py sync
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Login to GHCR
|
- name: Login to GHCR
|
||||||
run: |
|
run: |
|
||||||
|
|
4
BUILD.md
4
BUILD.md
|
@ -137,10 +137,10 @@ Build the latest container:
|
||||||
python3 ./install/common/build-image.py
|
python3 ./install/common/build-image.py
|
||||||
```
|
```
|
||||||
|
|
||||||
Download the OCR language data and other useful assets:
|
Download the necessary assets:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
python3 ./dev_scripts/inventory sync
|
poetry run python3 ./dev_scripts/inventory.py sync
|
||||||
```
|
```
|
||||||
|
|
||||||
Run from source tree:
|
Run from source tree:
|
||||||
|
|
Loading…
Reference in a new issue