diff --git a/installer.sh b/installer.sh index bf04d23..c03bc4a 100644 --- a/installer.sh +++ b/installer.sh @@ -147,7 +147,9 @@ move_to_bin_directory() { echo "Moving compiled binary to bin directory..." # - sudo mv termpdf.py "/home/felipe/.config" + #sudo mv termpdf.py "/home/felipe/.config" + # /usr/local/bin/ + sudo mv termpdf.py "/usr/local/bin" sudo mv term-pdf-wrapper "/usr/bin/term-pdf" sudo chmod +x "/usr/bin/term-pdf" @@ -157,8 +159,8 @@ move_to_bin_directory() { run_termpdf_viewer() { echo "Running the TermPDF Viewer..." - python3 /home/felipe/.config/termpdf.py - + #python3 /home/felipe/.config/termpdf.py + python3 /usr/local/bin/termpdf.py echo "TermPDF Viewer executed." } diff --git a/src/Aur/PKGBUILD b/src/Aur/PKGBUILD index 083f375..f9c271e 100644 --- a/src/Aur/PKGBUILD +++ b/src/Aur/PKGBUILD @@ -1,6 +1,6 @@ # Mantenedor: Felipe Alfonso Gonzalez pkgname=term-pdf -pkgver=0.0.3.8 +pkgver=0.0.3.9 pkgrel=1 pkgdesc="TermPDF Viewer is an open-source PDF file viewer designed to run in the terminal." arch=('x86_64') @@ -8,7 +8,7 @@ url="https://github.com/felipealfonsog/TermPDFViewer" license=('MIT') depends=('python-pip' 'python-pymupdf') source=("https://github.com/felipealfonsog/TermPDFViewer/archive/refs/tags/v.${pkgver}.tar.gz") -sha256sums=('2abb9938cbdf9b54e3dbdee77a0ea11d9aed50729ea5a9d61e5456166d268692') +sha256sums=('ff15c7a79a4b13eb067e28408e18c7333b609b7d76f2bb3039072df9125688ab') prepare() { tar xf "v.${pkgver}.tar.gz" -C "$srcdir" --strip-components=1 @@ -20,5 +20,5 @@ build() { } package() { install -Dm755 "$srcdir"/TermPDFViewer-v."${pkgver}"/src/term-pdf-wrp "${pkgdir}/usr/bin/term-pdf" - install -Dm700 "$srcdir"/TermPDFViewer-v."${pkgver}"/src/termpdf.py "${pkgdir}/$HOME/.config/termpdf.py" -} + install -Dm755 "$srcdir"/TermPDFViewer-v."${pkgver}"/src/termpdf.py "${pkgdir}/usr/local/bin/termpdf.py" +} \ No newline at end of file diff --git a/src/term-pdf-wrp b/src/term-pdf-wrp index b7d1abe..1075974 100755 Binary files a/src/term-pdf-wrp and b/src/term-pdf-wrp differ diff --git a/src/term-pdf-wrp.c b/src/term-pdf-wrp.c index 20be1f5..3031f94 100644 --- a/src/term-pdf-wrp.c +++ b/src/term-pdf-wrp.c @@ -61,7 +61,9 @@ view and navigate PDF files directly within the terminal. #include int main() { - system("python $HOME/.config/termpdf.py"); + // system("python $HOME/.config/termpdf.py"); + system("python /usr/local/bin/termpdf.py"); + return 0; }