Skip to content

Track macOS WeChat.app #712

Track macOS WeChat.app

Track macOS WeChat.app #712

Workflow file for this run

name: "Track macOS WeChat.app"
on:
push:
schedule:
- cron: 0 5 * * *
jobs:
build:
name: Track
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
cache: npm
cache-dependency-path: package.json
- name: Install WeChat.app
# https://zeckli.github.io/en/2017/10/06/mac-install-dmg-through-command-line-en.html
run: |
export DL_URL='https://dldir1.qq.com/weixin/mac/WeChatMac.dmg'
wget -q -O /tmp/WeChat.dmg "$DL_URL"
sudo hdiutil attach /tmp/WeChat.dmg
sudo cp -r /Volumes/微信\ WeChat/WeChat.app /Applications/
sudo hdiutil detach /Volumes/微信\ WeChat
rm /tmp/WeChat.dmg
- name: Install class-dump
# https://github.com/AloneMonkey/MonkeyDev/blob/master/bin/class-dump
run: |
wget -q -O /tmp/class-dump https://github.com/AloneMonkey/MonkeyDev/raw/master/bin/class-dump
sudo mv /tmp/class-dump /usr/local/bin/class-dump
sudo chmod +x /usr/local/bin/class-dump
- name: Install NPM Dependencies
run: npm install
- name: Update WeChat.app Version
run: |
export VERSION=$(bin/wechat-version.sh)
npx pkg-jq -i '.version = "$VERSION"'
echo >> package.json
echo "Updated version to $VERSION"
- name: Re class-dump WeChat.app
run: |
npm run clean
npm run class-dump
- name: Track
run: npm run track