Skip to content

Commit f065585

Browse files
committed
add drawio calibre and pandoc support for transmute
1 parent 66b3faa commit f065585

2 files changed

Lines changed: 12 additions & 13 deletions

File tree

ct/transmute.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ function update_script() {
2929
exit
3030
fi
3131

32+
fetch_and_deploy_gh_release "calibre" "kovidgoyal/calibre" "prebuild" "latest" "/opt/calibre" "calibre-*-x86_64.txz"
33+
ln -sf /opt/calibre/ebook-convert /usr/bin/ebook-convert
34+
fetch_and_deploy_gh_release "drawio" "jgraph/drawio-desktop" "binary" "latest" "" "drawio-amd64-*.deb"
35+
fetch_and_deploy_gh_release "pandoc" "jgm/pandoc" "binary" "latest" "" "pandoc-*-amd64.deb"
36+
3237
if check_for_gh_release "transmute" "transmute-app/transmute"; then
3338
msg_info "Stopping Service"
3439
systemctl stop transmute
@@ -43,7 +48,7 @@ function update_script() {
4348

4449
msg_info "Updating Python Dependencies"
4550
cd /opt/transmute
46-
$STD uv venv /opt/transmute/.venv
51+
$STD uv venv --clear /opt/transmute/.venv
4752
$STD uv pip install --python /opt/transmute/.venv/bin/python -r requirements.txt
4853
msg_ok "Updated Python Dependencies"
4954

install/transmute-install.sh

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,37 +26,31 @@ $STD apt install -y \
2626
libreoffice-common \
2727
libmagic1 \
2828
xvfb \
29+
libsm6 \
30+
libxext6 \
2931
libpango-1.0-0 \
3032
libopengl0 \
3133
libpangocairo-1.0-0 \
3234
libgdk-pixbuf-2.0-0 \
3335
libffi-dev \
3436
libcairo2 \
3537
librsvg2-bin \
36-
unar \
38+
unrar-free \
3739
python3-numpy \
3840
python3-lxml \
3941
python3-tinycss2 \
4042
python3-cssselect
4143
msg_ok "Installed Dependencies"
4244

43-
msg_info "Installing Pandoc"
44-
PANDOC_VERSION=$(get_latest_github_release "jgm/pandoc")
45-
curl -fsSL "https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION#v}-linux-amd64.tar.gz" -o /tmp/pandoc.tar.gz
46-
tar -xzf /tmp/pandoc.tar.gz -C /tmp
47-
cp /tmp/pandoc-*/bin/pandoc /usr/local/bin/pandoc
48-
chmod +x /usr/local/bin/pandoc
49-
rm -rf /tmp/pandoc*
50-
msg_ok "Installed Pandoc"
51-
45+
fetch_and_deploy_gh_release "pandoc" "jgm/pandoc" "binary" "latest" "" "pandoc-*-amd64.deb"
5246
fetch_and_deploy_gh_release "calibre" "kovidgoyal/calibre" "prebuild" "latest" "/opt/calibre" "calibre-*-x86_64.txz"
5347
ln -sf /opt/calibre/ebook-convert /usr/bin/ebook-convert
54-
48+
fetch_and_deploy_gh_release "drawio" "jgraph/drawio-desktop" "binary" "latest" "" "drawio-amd64-*.deb"
5549
fetch_and_deploy_gh_release "transmute" "transmute-app/transmute" "tarball" "latest" "/opt/transmute"
5650

5751
msg_info "Setting up Python Backend"
5852
cd /opt/transmute
59-
$STD uv venv /opt/transmute/.venv
53+
$STD uv venv --clear /opt/transmute/.venv
6054
$STD uv pip install --python /opt/transmute/.venv/bin/python -r requirements.txt
6155
ln -sf /opt/transmute/.venv/bin/weasyprint /usr/bin/weasyprint
6256
msg_ok "Set up Python Backend"

0 commit comments

Comments
 (0)