summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorzxp198210052024-08-13 10:03:14 +0800
committerzxp198210052024-08-13 10:03:14 +0800
commitf4dfc0a5d332634642dacfc015eec50e31fe096b (patch)
tree893e3347346268967664e8e0090bb33d253c325e /PKGBUILD
parent4f17d7e80c4717cbace18a22aaf804d62352c4f2 (diff)
downloadaur-f4dfc0a5d332634642dacfc015eec50e31fe096b.tar.gz
fix errors
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 5a4165b2d09c..973f5f6b5774 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=wolai-bin
pkgver=1.2.10
_electronversion=22
-pkgrel=1
+pkgrel=2
pkgdesc="wolai是一种新形态的文档/笔记/信息系统,它与你过去使用的所有传统文档、在线文档都有很多不同,学会使用wolai就等于拥有了一个强大的个人与团队生产力工具。"
arch=(
"aarch64"
@@ -38,8 +38,9 @@ build() {
-i "${srcdir}/${pkgname%-bin}.sh"
bsdtar -xf "${srcdir}/data."*
sed "s|/opt/${pkgname%-bin}/${pkgname%-bin}|${pkgname%-bin}|g" -i "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop"
+ sed "3i\Name[zh_CN]=我来" -i "${srcdir}/usr/share/applications/${pkgname%-bin}.desktop"
asar e "${srcdir}/opt/${pkgname%-bin}/resources/app.asar" "${srcdir}/app.asar.unpacked"
- sed "s|(resourcesPath,|(\"\/usr\/lib\/${pkgname%-bin}\",|g" -i "${srcdir}/app.asar.unpacked/packages/main/dist/index.cjs"
+ sed "s|process.resourcesPath|\"\/usr\/lib\/${pkgname%-bin}\"|g" -i "${srcdir}/app.asar.unpacked/packages/main/dist/index.cjs"
asar p "${srcdir}/app.asar.unpacked" "${srcdir}/app.asar"
}
package() {