GithubHelp home page GithubHelp logo

Comments (3)

DEgITx avatar DEgITx commented on September 25, 2024
  1. Can you please provide command list how you tried to run it
  2. have you performed git clone --recurse-submodules https://github.com/DEgITx/rats-search.git with recurse-submodules after you clone program ?

from rats-search.

Am0g-us avatar Am0g-us commented on September 25, 2024

I init submodules (git submodule update --init --recursive) and have following error

[12.08.2023 04:56:03] [system] Desktop server
(node:1150243) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `rats-search --trace-deprecation ...` to show where the warning was created)
[12.08.2023 04:56:03] [udp-tracker] listening udp tracker respose on 0.0.0.0:4446
[12.08.2023 04:56:03] [sphinx] Sphinx Path: /opt/rats-search-git/x64/searchd
[12.08.2023 04:56:03] [config] dbPath = /home/basedlord/.config/Rats on The Boat
[12.08.2023 04:56:03] [sphinx] writed sphinx config to /home/basedlord/.config/Rats on The Boat
[12.08.2023 04:56:03] [sphinx] db path: /home/basedlord/.config/Rats on The Boat
[12.08.2023 04:56:03] [sphinx] sphinx closed with code 127 and signal null
[12.08.2023 04:56:03] [sphinx] sphinx closing...
[12.08.2023 04:56:03] [sphinx] stoping with sphinx stopwait

I missed the point with submodules earlier, but when you initialize them and copy them, it goes like this. The following script is used to start it (the program is installed in /opt)

#!/bin/bash

# Launch application
exec /opt/rats-search-git/rats-search "$@"

from rats-search.

Am0g-us avatar Am0g-us commented on September 25, 2024

What could be wrong with this PKGBUILD? (I want to provide support for rats-search at aur)

# Maintainer: Amog-us <ask at amogussugomus at proton dot me>
# Contributor: davedatum <ask at davedatum dot com>

pkgname=rats-search-git
pkgver=1.11.0.r18.gcbda746
pkgrel=1
pkgdesc="BitTorrent P2P multi-platform search engine for Desktop and Web servers with integrated torrent client."
arch=("x86_64")
url="https://github.com/DEgITx/rats-search"
license=("MIT")
depends=("electron")
makedepends=("git" "npm" "imagemagick")
provides=("${pkgname}")
conflicts=("${pkgname}")
install=${pkgname}.install
source=("${pkgname}::git+$url.git"
		"${pkgname}.sh"
		"${pkgname}.desktop"
		"${pkgname}.install")
md5sums=('SKIP'
         'bf8d0e316e3904298ec63d3e5a44bc94'
         'a0d9bad379a6774e8bbc28da8a4979a3'
         '1a85dc610507dd1b2db75f95d1917126')

prepare() {
	cd "${srcdir}/${pkgname}"
	git submodule update --init --recursive
	sed -i -e '/"scripts": {/a "linux": "npm run prebuild && electron-builder --dir",' "${srcdir}/${pkgname}/package.json"
}

pkgver() {
  cd "${pkgname}"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "${srcdir}/${pkgname}"
	npm install --force && npm run linux
	#Yes, --force is really needed here. If you are worried about security, use a sandbox like firejail or bubblejail.
}

package() {
	install -dm755 "${pkgdir}/opt/${pkgname}"
	cp -a "${srcdir}/${pkgname}/dist/linux-unpacked/." "${pkgdir}/opt/${pkgname}"

	install -Dm644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
	install -Dm644 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"

	install -Dm644 "${srcdir}/${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

  	for _size in "192x192" "128x128" "96x96" "64x64" "48x48" "32x32" "24x24" "22x22" "20x20" "16x16" "8x8"
  	do
    	install -dm755 "${pkgdir}/usr/share/icons/hicolor/${_size}/apps"
    	convert "${srcdir}/${pkgname}/resources/icons/512x512.png" \
    	-resize "${_size}" "${pkgdir}/usr/share/icons/hicolor/${_size}/apps/${pkgname}.png"
  	done
}

from rats-search.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.