-
-
Notifications
You must be signed in to change notification settings - Fork 47
Closed
Labels
bugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already existsno responseNo response to this issueNo response to this issue
Description
📄 Describe the bug
我目前正准备将其移植到ArchLinux上,但是在移植的过程中出现了一堆问题。
首先,PKGBUILD文件内容如下:
# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname="kitx-bin"
pkgver=3.23.04.6488
pkgrel=1
pkgdesc="An all-purpose toolbox app. | 一个万用的工具箱"
arch=("x86_64")
url="https://kitx.apps.catrol.cn/"
_githuburl="https://github.com/Crequency/KitX"
license=('AGPL3')
depends=('zlib' 'glibc' 'fontconfig' 'gcc-libs')
makedepends=('gendesk')
conflicts=("${pkgname%-bin}" "${pkgname%-bin}-appimage")
options=(!strip)
noextract=("${pkgname%-bin}-${pkgver}.7z")
source=("${pkgname%-bin}-${pkgver}.7z::${_githuburl}/releases/download/v${pkgver}/${pkgname%-bin}-linux-x64.7z")
sha256sums=('36ba5acddbd8f8c48e0b1291c05f1ca73b271dc4a9a3d1cb95e2a704cf2816ed')
package() {
install -Dm755 -d "${pkgdir}/opt/${pkgname%-bin}"
bsdtar -xf "${srcdir}/${pkgname%-bin}-${pkgver}.7z" -C "${pkgdir}/opt/${pkgname%-bin}"
install -Dm644 "${pkgdir}/opt/${pkgname%-bin}/Assets/KitX-Icon-1920x-margin-2x.png" "${pkgdir}/usr/share/pixmaps/${pkgname%-bin}.png"
gendesk -f --icon "${pkgname%-bin}" --categories "Utility" --name "KitX" --exec '"/opt/kitx/KitX Dashboard"'
install -Dm644 "${srcdir}/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
find "${pkgdir}/opt/${pkgname%-bin}" -type f -exec chmod a-w {} \;
find "${pkgdir}/opt/${pkgname%-bin}" -type d -exec chmod 755 {} \;
chmod 755 "${pkgdir}/opt/${pkgname%-bin}/KitX Dashboard"
touch "${pkgdir}/opt/${pkgname%-bin}/dump.log"
chmod 666 "${pkgdir}/opt/${pkgname%-bin}/dump.log"
install -Dm777 -d "${pkgdir}/opt/${pkgname%-bin}/Log" "${pkgdir}/opt/${pkgname%-bin}/Config" "${pkgdir}/opt/${pkgname%-bin}/Data"
chmod 666 "${pkgdir}/opt/${pkgname%-bin}/Languages/"*
}
最终打包运行之后,dump.log报错如下:
$ cat dump.log
Default font family name can't be null or empty.%
我想提几个建议:
1、整个程序, 给人的感觉就是要安装到$HOME目录使用,否则会因为各种问题无法正常启动;不知道能不能考虑一下将诸如日志、配置文件之类的放在$HOME/.config目录下呢?
2、不知道为什么语言文件也需要写入权限呢?
3、能否考虑下Linux下的兼容性问题,不要在文件名中间加空格呢?
⛏ To Reproduce
No response
⚒ Expected behaviour
No response
🖥 Client version
No response
🖼 Screenshots
No response
📎 Additional context
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingduplicateThis issue or pull request already existsThis issue or pull request already existsno responseNo response to this issueNo response to this issue