Package Details: wechat-devtools-bin 2:1.06.2409140_2-1

Git Clone URL: https://aur.archlinux.org/wechat-devtools-bin.git (read-only, click to copy)
Package Base: wechat-devtools-bin
Description: WeChat Devtools For Linux.
Upstream URL: https://github.com/msojocs/wechat-web-devtools-linux
Licenses: MIT
Conflicts: wechat-devtools
Provides: wechat-devtools
Submitter: zhullyb
Maintainer: zhullyb
Last Packager: zhullyb
Votes: 0
Popularity: 0.000000
First Submitted: 2024-12-22 23:22 (UTC)
Last Updated: 2024-12-22 23:22 (UTC)

Latest Comments

Kandscode commented on 2025-02-18 08:43 (UTC)

Please do not use ln -s xxx/*, as this will create a link named * instead of linking everything in the xxx directory. A better approach is to use a script to start the executable in a specific path and install that script rather than a link. You can refer to the visual-studio-code-bin visual-studio-code-bin.sh for specific operations, or refer to my implementation:

# Maintainer: Kevin Stephen <qarks@icloud.com>
pkgname=wechat-devtools-git
_pkgname=wechat-devtools
pkgver=1.06.2412050
pkgrel=2
epoch=0
pkgdesc="WeChat Devtools For Linux."
license=("MIT")
arch=("x86_64")
url="https://github.com/msojocs/wechat-web-devtools-linux"
provides=("${_pkgname}" "${_pkgname}-cli")
conflicts=("${_pkgname}-bin" "${_pkgname}")
depends=("libxkbfile")
options=("!strip")
source=(
    "${url}/releases/download/v${pkgver}-${pkgrel}/WeChat_Dev_Tools_v${pkgver}-${pkgrel}_${arch}_linux.tar.gz"
    "${_pkgname}.desktop"
    "${_pkgname}.png"
    "${_pkgname}.sh"
    "${_pkgname}-cli.sh"
)
md5sums=(
    '21801283de48c6d050c5e81b2d24c26c'
    '08b27001217b9732289cd0e33f8f8d58'
    '9f585ae635005d2b6fa0570eb69cc12f'
    '6f3f6858627577e698c95d46e74e7e63'
    'dad3603be8e659c7e6667511d4889bb9'
)

package() {
    install -d "${pkgdir}/opt/${_pkgname}"
    install -d "${pkgdir}/usr/bin"
    install -d "${pkgdir}/usr/share/applications"
    install -d "${pkgdir}/usr/share/icons"

    cp -r "${srcdir}/WeChat_Dev_Tools_v${pkgver}-${pkgrel}_${arch}_linux/"* "${pkgdir}/opt/${_pkgname}"
    # launcher
    install -Dm755 "${srcdir}/${_pkgname}.sh" "${pkgdir}/usr/bin/${_pkgname}"
    install -Dm755 "${srcdir}/${_pkgname}-cli.sh" "${pkgdir}/usr/bin/${_pkgname}-cli"
    # desktop file
    install -Dm644 "${srcdir}/${_pkgname}.desktop" "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
    # icons
    install -Dm644 "${srcdir}/${_pkgname}.png" "${pkgdir}/usr/share/icons/${_pkgname}.png"
}

For compatibility reasons, the desktop icon uses the png format in the GitHub repository, and the desktop file content is as follows:

[Desktop Entry]
Name=WeChat Devtools
Name[zh_CN]=微信web开发者工具
Comment=The development tools for wechat web develop
Categories=Development;WebDevelopment;IDE;
Exec=wechat-devtools %U
Icon=wechat-devtools
Type=Application
Terminal=false
StartupWMClass=nwjs_mbeenbnhnmdhkbicabncjghgnikfbgjh
MimeType=x-scheme-handler/wechatide

The script file corresponds to two executable files, which are wechat-devtools.sh:

#!/bin/bash

XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}

# Launch
exec /opt/wechat-devtools/bin/wechat-devtools "$@"

and wechat-devtools-cli.sh:

#!/bin/bash

XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}

# Launch
exec /opt/wechat-devtools/bin/wechat-devtools-cli "$@"