Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: msojocs/wechat-web-devtools-linux
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.7
Choose a base ref
...
head repository: msojocs/wechat-web-devtools-linux
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Feb 4, 2022

  1. #9 fix: 云开发控制台

    msojocs committed Feb 4, 2022
    Copy the full SHA
    70ca41b View commit details

Commits on Feb 5, 2022

  1. update:整理

    msojocs committed Feb 5, 2022
    Copy the full SHA
    5321bff View commit details
  2. fix: Webview

    msojocs committed Feb 5, 2022
    Copy the full SHA
    1990a54 View commit details
  3. 二维码真机调试不可用 #10

    msojocs committed Feb 5, 2022
    Copy the full SHA
    5595748 View commit details
  4. 功能测试记录

    msojocs committed Feb 5, 2022
    Copy the full SHA
    6e69020 View commit details

Commits on Feb 6, 2022

  1. 整理

    msojocs committed Feb 6, 2022
    Copy the full SHA
    58a8f7a View commit details

Commits on Feb 10, 2022

  1. Copy the full SHA
    f53071f View commit details
  2. actions: pr trigger

    msojocs committed Feb 10, 2022
    Copy the full SHA
    97a278e View commit details
  3. Merge pull request #11 from msojocs/shatian_dev

    修复安装图标文件里,执行文件和图标图片文件的路径问题
    msojocs authored Feb 10, 2022
    Copy the full SHA
    0c3f52f View commit details

Commits on Feb 12, 2022

  1. NodeJS v16.x下安装nodegit

    msojocs committed Feb 12, 2022
    Copy the full SHA
    5c542ed View commit details

Commits on Feb 13, 2022

  1. add: 添加nw-gyp的镜像

    msojocs committed Feb 13, 2022
    Copy the full SHA
    e16c840 View commit details

Commits on Feb 15, 2022

  1. feat: appimage

    msojocs committed Feb 15, 2022
    1
    Copy the full SHA
    1f61b35 View commit details
  2. Copy the full SHA
    3c0ac9f View commit details
  3. fix: core path

    msojocs committed Feb 15, 2022
    Copy the full SHA
    599db00 View commit details

Commits on Feb 16, 2022

  1. Copy the full SHA
    0b68af1 View commit details
  2. Copy the full SHA
    a8d09d0 View commit details
  3. Copy the full SHA
    7626d7c View commit details
  4. docs: readme.md

    msojocs committed Feb 16, 2022
    Copy the full SHA
    388ecf8 View commit details

Commits on Feb 17, 2022

  1. docs: wcc wcsc

    msojocs committed Feb 17, 2022
    Copy the full SHA
    656a3dd View commit details

Commits on Feb 18, 2022

  1. feat: reduce wine

    msojocs committed Feb 18, 2022
    1
    Copy the full SHA
    1c07802 View commit details
  2. update: 优化体积

    msojocs committed Feb 18, 2022
    Copy the full SHA
    15496e0 View commit details
  3. update: readme

    msojocs committed Feb 18, 2022
    Copy the full SHA
    f25d9d7 View commit details

Commits on Feb 22, 2022

  1. wcc,wcsc: lazyload for Linux

    msojocs committed Feb 22, 2022
    Copy the full SHA
    d14fd2c View commit details
  2. feat: no wine support

    msojocs committed Feb 22, 2022
    1
    Copy the full SHA
    b789192 View commit details
  3. docs: readme

    msojocs committed Feb 22, 2022
    Copy the full SHA
    9f876b7 View commit details

Commits on Feb 23, 2022

  1. Copy the full SHA
    4744ec9 View commit details
  2. refactor: 优化构建流程

    msojocs committed Feb 23, 2022
    Copy the full SHA
    b2b7881 View commit details

Commits on Feb 24, 2022

  1. fix:wcc path

    msojocs committed Feb 24, 2022
    Copy the full SHA
    c29f28f View commit details
  2. Copy the full SHA
    f0d100c View commit details

Commits on Feb 25, 2022

  1. fix: 可视化wcsc #16

    msojocs committed Feb 25, 2022
    Copy the full SHA
    6dcf602 View commit details
  2. update: 清理无用代码 #16

    msojocs committed Feb 25, 2022
    Copy the full SHA
    1fb6cb1 View commit details
  3. Copy the full SHA
    dc6498e View commit details
  4. update: readme

    msojocs committed Feb 25, 2022
    Copy the full SHA
    2830b9a View commit details

Commits on Feb 26, 2022

  1. Copy the full SHA
    38677f4 View commit details
  2. Update issue templates

    msojocs authored Feb 26, 2022
    Copy the full SHA
    5425318 View commit details
  3. Update issue templates

    msojocs authored Feb 26, 2022
    Copy the full SHA
    c0a49d6 View commit details
  4. update: readme

    msojocs committed Feb 26, 2022
    Copy the full SHA
    41938a2 View commit details

Commits on Feb 27, 2022

  1. Copy the full SHA
    e9c717d View commit details
  2. fix: 权限,兼容性优化

    msojocs committed Feb 27, 2022
    Copy the full SHA
    8c67f5a View commit details
  3. fix: 权限

    msojocs committed Feb 27, 2022
    Copy the full SHA
    0ba6ca1 View commit details

Commits on Feb 28, 2022

  1. fix: 权限问题

    msojocs committed Feb 28, 2022
    Copy the full SHA
    f521040 View commit details
  2. fix: AppImage权限异常

    msojocs committed Feb 28, 2022
    1
    Copy the full SHA
    5908cdf View commit details

Commits on Mar 1, 2022

  1. Squashed commit of the following:

    commit 1d759c8
    Author: msojocs <jiyecafe@gmail.com>
    Date:   Tue Mar 1 16:13:26 2022 +0800
    
        feat: AUR Build
    msojocs committed Mar 1, 2022
    Copy the full SHA
    7f2112e View commit details

Commits on Mar 3, 2022

  1. update: deb build

    msojocs committed Mar 3, 2022
    Copy the full SHA
    5bcdb80 View commit details

Commits on Mar 4, 2022

  1. fix: build version

    msojocs committed Mar 4, 2022
    Copy the full SHA
    3f7f7a6 View commit details
  2. Squashed commit of the following:

    commit 48f6b5450d7d0983f1f697c176cf1e129bb51629
    Author: msojocs <jiyecafe@gmail.com>
    Date:   Fri Mar 4 18:12:47 2022 +0800
    
        refactor: build
    msojocs committed Mar 4, 2022
    Copy the full SHA
    d0a7907 View commit details
  3. update: PKGBUILD

    msojocs committed Mar 4, 2022
    Copy the full SHA
    60b3ff3 View commit details
  4. add: version of devtools

    msojocs committed Mar 4, 2022
    Copy the full SHA
    2d7d826 View commit details
  5. Merge pull request #23 from msojocs/build

    add: 打包时带上工具版本号
    msojocs authored Mar 4, 2022
    Copy the full SHA
    6c47ba6 View commit details

Commits on Mar 5, 2022

  1. update: readme

    msojocs committed Mar 5, 2022
    Copy the full SHA
    924eaf6 View commit details
Showing with 3,962 additions and 22,248 deletions.
  1. +41 −0 .github/ISSUE_TEMPLATE/bug_report.md
  2. +239 −43 .github/workflows/release.yml
  3. +11 −1 .gitignore
  4. +3 −3 .vscode/launch.json
  5. +10 −0 .vscode/settings.json
  6. +238 −0 CHANGELOG.MD
  7. +213 −0 README.MD
  8. +51 −7 bin/wechat-devtools
  9. +10 −6 bin/wechat-devtools-cli
  10. +0 −14 bin/wechat-devtools-docker
  11. BIN compiler/wcc
  12. +0 −96 compiler/wcc_node/index.js
  13. +0 −25 compiler/wcc_node/package.json
  14. +0 −30 compiler/wcc_node/src/index.js
  15. +0 −129 compiler/wcc_node/src/wcc.js
  16. +0 −1,134 compiler/wcc_node/util.js
  17. BIN compiler/wcsc
  18. +0 −91 compiler/wcsc_node/index.js
  19. +0 −30 compiler/wcsc_node/package.json
  20. +0 −58 compiler/wcsc_node/src/index.js
  21. +0 −81 compiler/wcsc_node/src/wcsc.js
  22. +0 −1,134 compiler/wcsc_node/util.js
  23. +1 −0 conf/compiler_version
  24. +1 −0 conf/devtools_v
  25. +0 −6 conf/node.json
  26. +6 −0 conf/node_info
  27. +3 −1 conf/nwjs.json
  28. +0 −11 docker-compose.yml
  29. +42 −52 docker/Dockerfile
  30. +0 −6 docker/docker-entrypoint
  31. +8 −50 docker/entrypoint
  32. +46 −0 docs/Console.MD
  33. +23 −11 docs/FAQ.MD
  34. +0 −5 docs/FIX.MD
  35. +33 −0 docs/Features.MD
  36. +29 −0 docs/Nodegit.MD
  37. +76 −0 docs/WCC与WCSC.MD
  38. +3 −0 docs/snap.md
  39. +0 −56 docs/winEnv.json
  40. +0 −50 docs/winEnv.txt
  41. +160 −0 docs/修正主题监听.MD
  42. +1 −1 license.md
  43. +0 −61 old/compact/Dockerfile
  44. +0 −11 old/wine/wcc
  45. +0 −11 old/wine/wcsc
  46. +15 −0 other/multipass-change-storage.sh
  47. +0 −6 package-lock.json
  48. +0 −1 package.json
  49. +0 −92 patch/nw-menu.js
  50. +0 −147 readme.md
  51. +14 −0 res/appimage/usr/share/applications/io.github.msojocs.wechat_devtools.desktop
  52. +132 −0 res/aur/PKGBUILD
  53. +123 −0 res/aur/logo.svg
  54. +12 −0 res/aur/wechat-devtools.desktop
  55. +13 −0 res/deb.desktop
  56. +6 −0 res/deepin/debian/changelog
  57. +1 −0 res/deepin/debian/compat
  58. +13 −0 res/deepin/debian/control
  59. +2 −0 res/deepin/debian/install
  60. +21 −0 res/deepin/debian/rules
  61. 0 res/deepin/debian/shlibs.local
  62. +21 −0 res/deepin/opt/apps/io.github.msojocs.wechat-devtools/info
  63. +4 −0 res/flatpak/startup.sh
  64. BIN res/icons/128x128.png
  65. BIN res/icons/16x16.png
  66. BIN res/icons/256x256.png
  67. BIN res/icons/32x32.png
  68. BIN res/icons/48x48.png
  69. BIN res/icons/512x512.png
  70. BIN res/icons/64x64.png
  71. BIN res/icons/96x96.png
  72. BIN res/icons/wechat-devtools.png
  73. +123 −71 res/icons/wechat-devtools.svg
  74. BIN res/icons/wechat-devtools128.png
  75. BIN res/icons/wechat-devtools256.png
  76. BIN res/icons/wechat-devtools512.png
  77. BIN res/icons/wechat-devtools64.png
  78. +7 −0 res/mpr/docker-compose.yml
  79. +34 −0 res/mpr/docker/entrypoint
  80. +11 −0 res/scripts/entrance.js
  81. +5 −4 res/template.desktop
  82. +11 −0 test/buid-deepin.sh
  83. +5 −0 test/cloudconsole
  84. +17 −0 test/compiler-replace-test
  85. +15 −0 test/core-test
  86. +5 −0 test/debug-wcsc
  87. +0 −2 test/env
  88. +16 −0 test/fix-core.sh
  89. +12 −0 test/fix-spdlog
  90. 0 test/{fix-wcc-node → fix-wcc-node.sh}
  91. +0 −9 test/linkDir
  92. 0 {docs → test/log}/cmd.txt
  93. 0 {docs → test/log}/log.log
  94. +10 −0 test/miniumT.py
  95. +9 −0 test/nw-gyp-rebuild
  96. +9 −0 test/nw-gyp.sh
  97. +9 −0 test/nw-simple/index.html
  98. +4 −0 test/nw-simple/package.json
  99. +6 −0 test/reduce-wine
  100. +7 −0 test/snap.sh
  101. +0 −16 test/test-bash
  102. +3 −3 test/test-node
  103. +8 −0 test/test.sh
  104. +301 −0 test/theme-check.js
  105. +0 −26 test/wcc/1/options.json
  106. +0 −1,117 test/wcc/1/result-bin.js
  107. +0 −1,258 test/wcc/1/result-node.js
  108. +0 −25 test/wcc/2/options.json
  109. +0 −1,258 test/wcc/2/result-node.js
  110. +0 −26 test/wcc/3/options.json
  111. +0 −1,258 test/wcc/3/result-node.js
  112. +0 −150 test/wcc/4/options.json
  113. +0 −10,958 test/wcc/4/result-node.js
  114. +0 −42 test/wcc/WCC.MD
  115. +0 −1,023 test/wcc/common.js
  116. +0 −18 test/wcc/test.sh
  117. 0 {bin → test}/wechat-devtools-test
  118. +15 −0 test/wxvpkg-test
  119. +100 −0 tools/build-appimage.sh
  120. +71 −0 tools/build-aur.sh
  121. +109 −0 tools/build-deepin.sh
  122. +27 −0 tools/build-prepare.sh
  123. +56 −0 tools/build-release.sh
  124. +73 −0 tools/build-tar.sh
  125. +6 −0 tools/build-with-docker.sh
  126. +0 −20 tools/fix-cli-node
  127. +17 −0 tools/fix-cli.sh
  128. +138 −0 tools/fix-core.sh
  129. +133 −0 tools/fix-menu.sh
  130. +81 −0 tools/fix-other.sh
  131. +0 −24 tools/fix-package-name-node
  132. +25 −0 tools/fix-package-name.js
  133. +2 −4 tools/fix-selection-copy-node
  134. +17 −0 tools/install-desktop-icon-bash
  135. +0 −43 tools/install-desktop-icon-node
  136. +0 −17 tools/old/fix-cli
  137. +0 −20 tools/old/fix-package-name
  138. +0 −17 tools/old/fix-selection-copy
  139. +0 −22 tools/old/install-desktop-icon
  140. +0 −32 tools/old/patch-wechat-devtools
  141. +0 −42 tools/old/setup-wechat-devtools
  142. +0 −100 tools/old/update-node
  143. +0 −100 tools/old/update-nwjs
  144. +0 −207 tools/old/update-wechat-devtools
  145. +0 −36 tools/patch-wechat-devtools-node
  146. +9 −0 tools/push-docker.sh
  147. +0 −127 tools/rebuild-node-modules
  148. +141 −0 tools/rebuild-node-modules.sh
  149. +0 −111 tools/rebuild-node-modules2
  150. +0 −54 tools/setup-wechat-devtools-bash
  151. +0 −93 tools/setup-wechat-devtools-node
  152. +169 −0 tools/setup-wechat-devtools.sh
  153. +43 −0 tools/step.sh
  154. +0 −126 tools/update-node-node
  155. +63 −0 tools/update-node.sh
  156. +3 −3 tools/update-nwjs-node
  157. +0 −308 tools/update-wechat-devtools-node
  158. +337 −0 tools/update-wechat-devtools.js
  159. +0 −3 tools/wechat-devtools-cli
  160. +0 −12 tools/wechat-devtools-env.sh
  161. +16 −3 test/pack → tools/wxvpkg_pack.js
  162. +59 −0 tools/wxvpkg_unpack.js
41 changes: 41 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
name: 报告Bug
about: 如果阁下提交的 `issue` 属于bug,但没有按模板提交,那么将会被忽略或删除
title: ''
labels: bug
assignees: ''

---

**预先准备**
1. 删除 `~/.config/wechat-devtools` 目录,重新打开项目(若发布 `issue` 即默认阁下执行了此操作且问题没有解决);
2. HelloWorld是否正常(登录状态新建默认项目,执行复现步骤):正常/不正常
3. ***注意:如果你的问题是编译器错误,那么请提供可复现的demo,否则会被直接关闭。***

**问题描述**
<!-- 请对问题做一个简单描述。 -->

**问题复现**
<!-- 复现问题需要进行的操作: -->
1. 打开项目
2. 点击 '....'
3. 看到问题

**期望的效果**
<!-- 经过上述操作你希望得到的结果. -->

**截屏**
<!-- 添加截图图片有助于解释您的问题,请尽量将整个开发工具都涵括在截图在(复制图片后直接粘贴将自动上传图片)。 -->

**版本信息 (这是必要的):**
- OS: e.g. manjaro
- Package: e.g. xxx_wine.tar.gz
- Wine Version: e.g. 7 可选

**代码片段**
<!-- 提供代码片段对维护者定位与修复问题有极大帮助;
若阁下不能提供,且维护者不能复现问题,那么阁下的`issue`将被搁置或者关闭。
[查看创建代码片段的教程](https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html) -->

**额外的信息**
<!-- 一些关于此问题的额外信息。 -->
282 changes: 239 additions & 43 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,67 +1,263 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Node.js CI
name: Build Packages Linux

on:
release:
types: [published]
push:
tags:
- v*
branches: [ master, actions ]
# pull_request:
# branches: [ master ]
branches: [ master, dev, ci]
pull_request:
branches: [ master ]
# # Allows you to run this workflow manually from the Actions tab
# workflow_dispatch:

jobs:
build:

name: Build
build-src:
name: Build Base Packages
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]
ARCH: ['x86_64']
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Prepare
run: |
pwd
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2

- name: Prepare
run: |
echo "$UID, $GID"
- name: Generate TAG
id: Tag
run: |
tag='continuous'
name='Continuous Build'
if [ 'true' == ${{ startsWith(github.ref, 'refs/tags/') }} ];then
tag='${{ github.ref_name }}'
name='${{ github.ref_name }}'
fi
echo "tag result: $tag - $name"
echo "::set-output name=tag::$tag"
echo "::set-output name=name::$name"
- name: Build
run: |
export ACTION_MODE=true
ls -l
export WINE=false
tools/build-with-docker.sh
- name: Compress Resources
run: |
ls -l
chmod 777 docker/entrypoint
chmod 777 tools/*
mkdir -p tmp/src
rm -rf nwjs/node nwjs/node.exe
cp node/bin/node nwjs/node
cd nwjs && ln -s node node.exe
cd ..
tar -zcf tmp/src/src-linux.tar.gz bin nwjs package.nw tools
- name: Compress nodegit
run: |
ls -l
mkdir -p tmp/build
cp -r package.nw/node_modules/nodegit .
tar -zcf nodegit.tar.gz nodegit
mv nodegit.tar.gz tmp/build
cd tmp/build
ls -l
- name: View Directory
run: |
ls -l
- name: Upload src artifact
uses: actions/upload-artifact@v4
with:
# Artifact name
name: wechat-devtools-${{ matrix.ARCH }}.src
path: tmp/src

- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
# Artifact name
name: wechat-devtools-${{ matrix.ARCH }}.build
path: tmp/build

build-tar:
name: Build tar.gz AppImage
needs:
- build-src
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]
ARCH: ['x86_64']
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Inspect directory after downloading artifacts
run: |
ls -alFR wechat-devtools-*.build
ls -alFR wechat-devtools-*.src
- name: Prepare
run: |
sudo apt install -y fuse
echo "$UID, $GID"
- name: Generate TAG
id: Tag
run: |
tag='continuous'
name='Continuous Build'
if [ 'true' == ${{ startsWith(github.ref, 'refs/tags/') }} ];then
tag='${{ github.ref_name }}'
name='${{ github.ref_name }}'
fi
echo "tag result: $tag - $name"
echo "::set-output name=tag::$tag"
echo "::set-output name=name::$name"
- name: Build
run: |
export WINE=false
export ACTION_MODE=true
npm uninstall node-gyp -g
npm install node-gyp nw-gyp npm -g
- name: Build
run: docker-compose up

- name: Delete unused file
run: |
sudo rm -rf cache tmp
mkdir ${{ env. name }}
sudo find -maxdepth 1 -not -name ${{ env.name }} -not -name . -exec mv {} ${{ env.name }} \;
sudo cp -r "${{ env.name }}/package.nw/node_modules/nodegit" nodegit
sudo cp -r "${{ env.name }}/compiler" compiler
ls -ls
env:
name: 'release-${{ github.ref_name }}'

- name: Release
uses: fnkr/github-action-ghr@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GHR_COMPRESS: xz
GHR_PATH: .
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# tar.gz AppImage
ls -l
mkdir -p tmp/build
tools/build-prepare.sh
tools/build-release.sh ${{ matrix.ARCH }} ${{ steps.tag.outputs.tag }}
- name: View Directory
run: |
ls -l
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
# Artifact name
name: wechat-devtools-simple-${{ matrix.ARCH }}.build
path: tmp/build

build-deb:
name: Build DEB Package
needs:
- build-src
runs-on: ubuntu-20.04

strategy:
matrix:
ARCH: ['x86_64']
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2
- name: Download artifacts
uses: actions/download-artifact@v4

- name: Generate TAG
id: Tag
run: |
tag='continuous'
name='Continuous Build'
if [ 'true' == ${{ startsWith(github.ref, 'refs/tags/') }} ];then
tag='${{ github.ref_name }}'
name='${{ github.ref_name }}'
fi
echo "tag result: $tag - $name"
echo "::set-output name=tag::$tag"
echo "::set-output name=name::$name"
# https://stackoverflow.com/questions/61096521/how-to-use-gpg-key-in-github-actions
# gpg --generate-key
# gpg --export-secret-keys YOUR_ID_HERE | base64 > private.key
- name: Configure GPG Key
run: |
echo -n "$GPG_SIGNING_KEY" | base64 --decode | gpg --import
gpg --list-secret-keys jiyecafe@gmail.com
env:
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}

- name: Prepare
run: |
sudo apt-get install -y build-essential fakeroot devscripts debhelper # debmake lintian pbuilder
- name: Build Deb Package
run: |
export BUILD_VERSION=${{ steps.tag.outputs.tag }}
ls -l
mkdir -p tmp/build
export WINE=false
tools/build-prepare.sh
env WINE=false tools/build-deepin.sh ${{ steps.tag.outputs.tag }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
# Artifact name
name: wechat-devtools-deb-${{ matrix.ARCH }}.build
path: tmp/build

upload:
name: Create release and upload artifacts
needs:
- build-tar
- build-deb
# - build-snap
# - build-arch
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Inspect directory after downloading artifacts
run: ls -alFR

- name: Generate TAG
id: Tag
run: |
tag='continuous'
name='Continuous Build'
if [ 'true' == ${{ startsWith(github.ref, 'refs/tags/') }} ];then
tag='${{ github.ref_name }}'
name='${{ github.ref_name }}'
fi
echo "tag result: $tag - $name"
echo "::set-output name=tag::$tag"
echo "::set-output name=name::$name"
- name: Create release and upload artifacts
if: startsWith(github.ref, 'refs/heads/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
sudo apt install -y fuse
wget -q https://github.com/TheAssassin/pyuploadtool/releases/download/continuous/pyuploadtool-x86_64.AppImage
chmod +x pyuploadtool-x86_64.AppImage
./pyuploadtool-x86_64.AppImage **build/WeChat*.AppImage **build/*.tar.gz **build/*.deb
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
# note you'll typically need to create a personal access token
# with permissions to create releases in the other repo
name: ${{ steps.tag.outputs.name }}
tag_name: ${{ steps.tag.outputs.tag }}
files: |
**build/WeChat*.AppImage
**build/*.tar.gz
**build/*.deb
12 changes: 11 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -8,4 +8,14 @@ mew/
node_modules
test/mini-ci
crash-server
build
build
*.snap
*.AppImage
appimage-builder-cache
wcc.bin
wcsc.bin
temp.sh
# flatpak
.flatpak-builder
build-dir
__pycache__
6 changes: 3 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -8,13 +8,13 @@
"type": "nwjs",
"request": "launch",
"name": "Launch NWjs",
"nwjsVersion": "0.47.0",
"nwjsVersion": "0.55.0",
"webRoot": "${workspaceFolder}/package.nw",
"reloadAfterAttached": true,
"runtimeArgs": [
"--load-extension=${workspaceFolder}/tmp/data/WeappPlugin",
// "--load-extension=${workspaceFolder}/tmp/data/WeappPlugin",
// "--custom-devtools-frontend=file://${workspaceFolder}/tmp/data/WeappPlugin/inspector/",
"--user-data-dir=${workspaceFolder}/tmp/data",
// "--user-data-dir=${workspaceFolder}/tmp/data",
// "--remote-debugging-port=9999"
],
"env": {
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/*/**": true,
"**/.hg/store/**": true,
".flatpak/**": true,
"_build/**": true
}
}
Loading