diff options
author | Kimiblock | 2022-12-25 10:40:42 +0800 |
---|---|---|
committer | Kimiblock | 2022-12-25 10:40:42 +0800 |
commit | 21e4d9106f981c5ca918c7be3d4db23f46db40a4 (patch) | |
tree | 3a04c9ccff4858a3e96bd4ad5ec1f7e8b911e0b7 | |
parent | 0bcf6cba40a194200d77ed453b593698d573b6cc (diff) | |
download | aur-21e4d9106f981c5ca918c7be3d4db23f46db40a4.tar.gz |
修复了 Pamac 无法构建的问题
-rwxr-xr-x | PKGBUILD | 4 | ||||
-rwxr-xr-x | electronic-wechat-uos-bin.install | 15 |
2 files changed, 13 insertions, 6 deletions
@@ -55,9 +55,13 @@ exec electron /opt/electronic-wechat-uos-bin/resources/app.asar' >${pkgdir}/usr/ } function info() { + if [ -f /usr/bin/pamac ]; then + echo " ==> [Info]: $@" + else all_off="$(tput sgr0)" bold="${all_off}$(tput bold)" blue="${bold}$(tput setaf 4)" yellow="${bold}$(tput setaf 3)" printf "${blue}==>${yellow} [Info]:${bold} $1${all_off}\n" + fi } diff --git a/electronic-wechat-uos-bin.install b/electronic-wechat-uos-bin.install index b0dd488d6642..cea6de07acfb 100755 --- a/electronic-wechat-uos-bin.install +++ b/electronic-wechat-uos-bin.install @@ -1,12 +1,15 @@ function note() { - printf "${blue}==>${yellow} 提示:${bold} $1${all_off}\n" + if [ -f /usr/bin/pamac ]; then + echo " ==> [Info]: $@" + else + all_off="$(tput sgr0)" + bold="${all_off}$(tput bold)" + blue="${bold}$(tput setaf 4)" + yellow="${bold}$(tput setaf 3)" + printf "${blue}==>${yellow} [Info]:${bold} $1${all_off}\n" + fi } -all_off="$(tput sgr0)" -bold="${all_off}$(tput bold)" -blue="${bold}$(tput setaf 4)" -yellow="${bold}$(tput setaf 3)" - function post_install(){ note '如果桌面通知无法送达, 请检查是否正确设置 libnotify' note '若要启用 Wayland 支持, 请在 ~/.config/electron-flags.conf 添加 --enable-features=WaylandWindowDecorations 与 --ozone-platform-hint=auto' |