mirror of
https://github.com/ciromattia/kcc
synced 2026-09-01 08:27:06 +00:00
only use 7zz on macos (#1012)
This commit is contained in:
@@ -34,7 +34,7 @@ jobs:
|
|||||||
- name: Install python dependencies
|
- name: Install python dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y libpng-dev libjpeg-dev 7zip python3-pip squashfs-tools libfuse2 libxcb-cursor0
|
sudo apt-get install -y libpng-dev libjpeg-dev p7zip-full p7zip-rar python3-pip squashfs-tools libfuse2 libxcb-cursor0
|
||||||
python -m pip install --upgrade pip setuptools wheel certifi pyinstaller --no-binary pyinstaller
|
python -m pip install --upgrade pip setuptools wheel certifi pyinstaller --no-binary pyinstaller
|
||||||
python -m pip install -r requirements.txt
|
python -m pip install -r requirements.txt
|
||||||
- name: build binary
|
- name: build binary
|
||||||
|
|||||||
+4
-4
@@ -8,7 +8,7 @@ RUN echo "I'm building for $TARGETOS/$TARGETARCH/$TARGETVARIANT"
|
|||||||
COPY requirements.txt /opt/kcc/
|
COPY requirements.txt /opt/kcc/
|
||||||
ENV PATH="/opt/venv/bin:$PATH"
|
ENV PATH="/opt/venv/bin:$PATH"
|
||||||
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && apt-get -yq upgrade && \
|
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && apt-get -yq upgrade && \
|
||||||
apt-get install -y libpng-dev libjpeg-dev 7zip unrar-free libgl1 && \
|
apt-get install -y libpng-dev libjpeg-dev p7zip-full unrar-free libgl1 && \
|
||||||
python -m pip install --upgrade pip && \
|
python -m pip install --upgrade pip && \
|
||||||
python -m venv /opt/venv && \
|
python -m venv /opt/venv && \
|
||||||
python -m pip install -r /opt/kcc/requirements.txt
|
python -m pip install -r /opt/kcc/requirements.txt
|
||||||
@@ -55,7 +55,7 @@ RUN set -x && \
|
|||||||
KEPT_PACKAGES+=(locales-all) && \
|
KEPT_PACKAGES+=(locales-all) && \
|
||||||
KEPT_PACKAGES+=(libfreetype6) && \
|
KEPT_PACKAGES+=(libfreetype6) && \
|
||||||
KEPT_PACKAGES+=(libfontconfig1) && \
|
KEPT_PACKAGES+=(libfontconfig1) && \
|
||||||
KEPT_PACKAGES+=(7zip) && \
|
KEPT_PACKAGES+=(p7zip-full) && \
|
||||||
KEPT_PACKAGES+=(python3) && \
|
KEPT_PACKAGES+=(python3) && \
|
||||||
KEPT_PACKAGES+=(python3-pip) && \
|
KEPT_PACKAGES+=(python3-pip) && \
|
||||||
KEPT_PACKAGES+=(unrar-free) && \
|
KEPT_PACKAGES+=(unrar-free) && \
|
||||||
@@ -113,7 +113,7 @@ RUN set -x && \
|
|||||||
KEPT_PACKAGES+=(locales-all) && \
|
KEPT_PACKAGES+=(locales-all) && \
|
||||||
KEPT_PACKAGES+=(libfreetype6) && \
|
KEPT_PACKAGES+=(libfreetype6) && \
|
||||||
KEPT_PACKAGES+=(libfontconfig1) && \
|
KEPT_PACKAGES+=(libfontconfig1) && \
|
||||||
KEPT_PACKAGES+=(7zip) && \
|
KEPT_PACKAGES+=(p7zip-full) && \
|
||||||
KEPT_PACKAGES+=(python3) && \
|
KEPT_PACKAGES+=(python3) && \
|
||||||
KEPT_PACKAGES+=(python3-pip) && \
|
KEPT_PACKAGES+=(python3-pip) && \
|
||||||
KEPT_PACKAGES+=(unrar-free) && \
|
KEPT_PACKAGES+=(unrar-free) && \
|
||||||
@@ -158,7 +158,7 @@ LABEL org.opencontainers.image.title="Kindle Comic Converter"
|
|||||||
ENV PATH="/opt/venv/bin:$PATH"
|
ENV PATH="/opt/venv/bin:$PATH"
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && apt-get -yq upgrade && \
|
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && apt-get -yq upgrade && \
|
||||||
apt-get install -y 7zip unrar-free && \
|
apt-get install -y p7zip-full unrar-free && \
|
||||||
ln -s /app/kindlegen /bin/kindlegen && \
|
ln -s /app/kindlegen /bin/kindlegen && \
|
||||||
echo docker-base-20241116 > /IMAGE_VERSION
|
echo docker-base-20241116 > /IMAGE_VERSION
|
||||||
|
|
||||||
|
|||||||
@@ -155,7 +155,7 @@ Please check [our wiki](https://github.com/ciromattia/kcc/wiki/) for more detail
|
|||||||
CLI version of **KCC** is intended for power users. It allows using options that might not be compatible and decrease the quality of output.
|
CLI version of **KCC** is intended for power users. It allows using options that might not be compatible and decrease the quality of output.
|
||||||
CLI version has reduced dependencies, on Debian based distributions this commands should install all needed dependencies:
|
CLI version has reduced dependencies, on Debian based distributions this commands should install all needed dependencies:
|
||||||
```
|
```
|
||||||
sudo apt-get install python3 7zip python3-pil python3-psutil python3-slugify
|
sudo apt-get install python3 p7zip-full python3-pil python3-psutil python3-slugify
|
||||||
```
|
```
|
||||||
|
|
||||||
### Profiles:
|
### Profiles:
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ from xml.parsers.expat import ExpatError
|
|||||||
from .shared import subprocess_run
|
from .shared import subprocess_run
|
||||||
|
|
||||||
EXTRACTION_ERROR = 'Failed to extract archive. Try extracting file outside of KCC.'
|
EXTRACTION_ERROR = 'Failed to extract archive. Try extracting file outside of KCC.'
|
||||||
SEVENZIP = '7z' if os.name == 'nt' else '7zz'
|
SEVENZIP = '7zz' if platform.system() == 'Darwin' else '7z'
|
||||||
|
|
||||||
|
|
||||||
class ComicArchive:
|
class ComicArchive:
|
||||||
|
|||||||
Reference in New Issue
Block a user