makedeb
WeChat Devtools For Linux.
Click here to go back to the commit logs for wechat-devtools.
Hash: 3efa3d7c1b1487c3081d6f432fda7afaf4805648
Message: fix: wcc.bin, wcsc.bin没有正确复制的问题
diff --git a/.SRCINFO b/.SRCINFO
index ba7a401..cc386e1 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,7 +3,7 @@ generated-by = makedeb-makepkg
pkgbase = wechat-devtools
pkgdesc = WeChat Devtools For Linux.
pkgver = 1.05.2203030
- pkgrel = 1
+ pkgrel = 2
epoch = 2
url = https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html
arch = x86_64
diff --git a/.gitignore b/.gitignore
index ebe1af7..716a2fd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,4 +8,5 @@ src/
compiler.tar.gz
wechat-devtools-*.pkg.tar.xz
wechat-devtools-*.pkg.tar.zst
-*.deb
\ No newline at end of file
+*.deb
+docker*
\ No newline at end of file
diff --git a/PKGBUILD b/PKGBUILD
index 0ec0425..0d29d7f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -16,7 +16,7 @@ _node_version="16.1.0"
pkgname=wechat-devtools
pkgver="${_wechat_devtools_ver}" # 主版本号
-pkgrel=1 # 次版本号release
+pkgrel=2 # 修订版本号release
epoch=2 # 大版本迭代强制更新(维护者变更,尽量不用)
pkgdesc="WeChat Devtools For Linux. "
arch=("x86_64")
diff --git a/fix-core.sh b/fix-core.sh
index 024ca85..c194323 100644
--- a/fix-core.sh
+++ b/fix-core.sh
@@ -52,6 +52,8 @@ if [[ $NO_WINE == 'true' ]];then
sed -i "s#{wcc:!0,wcsc:!0,DevToolProtector:!0}#$new_str#g" "$find_result"
new_str='"linux"===process.platform'
sed -i "s#\"darwin\"===process.platform#$new_str#g" "$find_result"
+ sed -i 's#return I("wcc")#return I("wcc.bin"),I("wcc")#g' "$find_result"
+ sed -i 's#return I("wcsc")#return I("wcsc.bin"),I("wcsc")#g' "$find_result"
fi
current=`date "+%Y-%m-%d %H:%M:%S"`