diff options
author | levinit | 2018-02-24 10:08:05 +0800 |
---|---|---|
committer | levinit | 2018-02-24 10:08:05 +0800 |
commit | 480e83a544d487a7e9bae2a2ac1c5915ef7f7f57 (patch) | |
tree | 5056358d0e0df7ee33e4b2e7c3237dfe932fee17 | |
parent | 0054c1bbf24d1f0bce999d672dbfc111f7762080 (diff) | |
download | aur-480e83a544d487a7e9bae2a2ac1c5915ef7f7f57.tar.gz |
fixed error
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 14 | ||||
-rwxr-xr-x | wechat_web_devtools.install | 25 |
3 files changed, 17 insertions, 25 deletions
@@ -6,13 +6,12 @@ pkgbase = wechat_web_devtools install = wechat_web_devtools.install arch = any license = custom - makedepends = git makedepends = wine_gecko depends = wine depends = wine-mono depends = httpie depends = wget - source = git://github.com/cytle/wechat_web_devtools + source = https://github.com/cytle/wechat_web_devtools/archive/v1.02.1802080.tar.gz sha512sums = SKIP pkgname = wechat_web_devtools @@ -9,20 +9,16 @@ url="https://github.com/cytle/wechat_web_devtools" license=('custom') depends=('wine' 'wine-mono' 'httpie' 'wget') -makedepends=('git' 'wine_gecko') +makedepends=('wine_gecko') -source=("git://github.com/cytle/wechat_web_devtools") +source=("https://github.com/cytle/wechat_web_devtools/archive/v$pkgver.tar.gz") sha512sums=('SKIP') install=${pkgname}.install -prepare() { - cd $srcdir/$pkgname - rm images -rf - rm 'package.nw/node_modules/git-utils/deps/libgit2/tests/resources/status/这' -} - package() { + rm -rf $srcdir/$pkgname-$pkgver/images install -dm755 $pkgdir/opt - cp -r $srcdir/$pkgname $pkgdir/opt/ + cp -r $srcdir/$pkgname-$pkgver $pkgdir/opt/$pkgname + echo '软件包较大 请耐心等待 please wait' } diff --git a/wechat_web_devtools.install b/wechat_web_devtools.install index 70ef34ee41d6..adef647dfbb0 100755 --- a/wechat_web_devtools.install +++ b/wechat_web_devtools.install @@ -1,34 +1,31 @@ #!bin/sh read -r -d '' msg << TIPS -====================================\n -×更新该脚本:进入/opt/wechat_web_devtools/执行\e[1mgit pull origin\e[0m 或者向aur维护者发送更新反馈 +\e[1;33m====================================\e[0m\n +×× 更新该脚本:进入/opt/wechat_web_devtools/执行\e[1mgit pull origin\e[0m 或者向aur维护者发送更新反馈 \n - -×更新开发者工具: \n - 进入/opt/wechat_web_devtools/执行\e[1m./bin/update_package_nw.sh\e[0m +×× 更新开发者工具: +\n + 进入/opt/wechat_web_devtools/执行\e[1m./bin/update_package_nw.sh\e[0m \n 安装过程中确认安装到$HOME/.wine/drive_c/Program Files (x86)/Tencent/微信web开发者工具路径下 \n 最后完成去掉打开开发者工具的钩 \n - -×如果wcc和wcsc编译有问题,进入/opt/wechat_web_devtools/,执行以下命令,让工具重新生成wcc和wcsc(会删除开发者工具配置文件,所有工程和登录信息会消失) \n - \e [1m./bin/wxdt uninstall \e[0m +×× wcc和wcsc编译问题 进入/opt/wechat_web_devtools/,执行以下命令,让工具重新生成wcc和wcsc(会删除开发者工具配置文件,所有工程和登录信息会消失) +\n + \e[1m./bin/wxdt uninstall \e[0m \n \e[1m./bin/wxdt install \e[0m \n - -×更多内容:访问 \e[1m https://github.com/cytle/wechat_web_devtools \e[0m 提交反馈/寻找问题解决/贡献代码 等等 - \n -==================================== +×× 更多内容:访问 \e[1m https://github.com/cytle/wechat_web_devtools \e[0m 提交反馈/寻找问题解决/贡献代码 等等 +\n +\e[1;33m====================================\e[0m TIPS post_install(){ - echo -e '\e[1m为小程序开发需要的wcc.exe和wcsc.exe创建32位wine环境 --->> ...\n\e[0m 正在启动wine配置工具\e[1mwinecfg\e[0m...关闭wine窗口后,将会开始自动安装wechat_web_devtools' - WINEARCH=win32 WINEPREFIX=~/.wine32 winecfg /opt/wechat_web_devtools/bin/wxdt install echo -e $msg } |