docs: 赞赏支持

This commit is contained in:
msojocs 2022-09-03 23:07:22 +08:00
parent 701efb0a9f
commit e10ad2ff9d
2 changed files with 113 additions and 124 deletions

View File

@ -65,26 +65,13 @@ jobs:
ls -l ls -l
export WINE=true export WINE=true
mkdir -p tmp/src mkdir -p tmp/src
mkdir -p tmp/build
rm -rf nwjs/node nwjs/node.exe rm -rf nwjs/node nwjs/node.exe
cp node/bin/node nwjs/node cp node/bin/node nwjs/node
cd nwjs && ln -s node node.exe cd nwjs && ln -s node node.exe
cd .. cd ..
tar -zcf tmp/src/src-wine.tar.gz bin nwjs package.nw tools tar -zcf tmp/src/src-wine.tar.gz bin nwjs package.nw tools
- name: Compress nodegit compiler
run: |
ls -l
export WINE=true
mkdir -p tmp/build
cp -r package.nw/node_modules/nodegit .
sudo rm -rf compiler/test
tar -zcf compiler.tar.gz compiler
tar -zcf nodegit.tar.gz nodegit
mv nodegit.tar.gz tmp/build
mv compiler.tar.gz tmp/build
cd tmp/build
ls -l
- name: View Directory - name: View Directory
run: | run: |
ls -l ls -l
@ -214,130 +201,131 @@ jobs:
name: wechat-devtools-${{ matrix.ARCH }}.build name: wechat-devtools-${{ matrix.ARCH }}.build
path: tmp/build path: tmp/build
build-arch: # build-arch:
name: Build ArchLinux Package # name: Build ArchLinux Package
runs-on: ubuntu-latest # runs-on: ubuntu-latest
timeout-minutes: 30 # timeout-minutes: 30
strategy: # strategy:
matrix: # matrix:
node-version: [16.x] # node-version: [16.x]
ARCH: ['x86_64'] # ARCH: ['x86_64']
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ # # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps: # steps:
- uses: actions/checkout@v2 # - uses: actions/checkout@v2
with: # with:
submodules: 'recursive' # submodules: 'recursive'
- name: Use Node.js ${{ matrix.node-version }} # - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2 # uses: actions/setup-node@v2
with: # with:
node-version: ${{ matrix.node-version }} # node-version: ${{ matrix.node-version }}
cache: 'npm' # cache: 'npm'
- name: Prepare # - name: Prepare
run: | # run: |
cd compiler && npm install # cd compiler && npm install
npm install node-gyp nw-gyp npm -g # npm install node-gyp nw-gyp npm -g
node-gyp install # node-gyp install
cat /etc/passwd # cat /etc/passwd
- name: Generate TAG # - name: Generate TAG
id: Tag # id: Tag
run: | # run: |
tag='continuous' # tag='continuous'
name='Continuous Build' # name='Continuous Build'
if [ 'true' == ${{ startsWith(github.ref, 'refs/tags/') }} ];then # if [ 'true' == ${{ startsWith(github.ref, 'refs/tags/') }} ];then
tag='${{ github.ref_name }}' # tag='${{ github.ref_name }}'
name='${{ github.ref_name }}' # name='${{ github.ref_name }}'
fi # fi
echo "tag result: $tag - $name" # echo "tag result: $tag - $name"
echo "::set-output name=tag::$tag" # echo "::set-output name=tag::$tag"
echo "::set-output name=name::$name" # echo "::set-output name=name::$name"
- name: Build ArchLinux Package # - name: Build ArchLinux Package
uses: countstarlight/arch-makepkg-action@master # uses: countstarlight/arch-makepkg-action@master
env: # env:
BUILD_VERSION: ${{ steps.tag.outputs.tag }} # BUILD_VERSION: ${{ steps.tag.outputs.tag }}
with: # WINE: true
repos: > # with:
archlinuxcn=https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch # repos: >
before: "tools/build-aur.sh && sudo pacman -S --noconfirm archlinuxcn-keyring" # archlinuxcn=https://mirrors.tuna.tsinghua.edu.cn/archlinuxcn/$arch
packages: > # before: "tools/build-aur.sh && sudo pacman -S --noconfirm archlinuxcn-keyring"
gconf # packages: >
p7zip # gconf
libxkbfile # p7zip
python2 # libxkbfile
openssl # python2
gcc # openssl
make # gcc
libssh2 # make
krb5 # libssh2
wget # krb5
scripts: "cd tmp/AUR && makepkg && ls -l && cd ../../" # wget
# scripts: "cd tmp/AUR && makepkg && ls -l && cd ../../"
- name: Fix Permissions # - name: Fix Permissions
run: | # run: |
sudo chmod -R 0777 tmp # sudo chmod -R 0777 tmp
mkdir -p tmp/build # mkdir -p tmp/build
mv tmp/AUR/*.pkg.* tmp/build # mv tmp/AUR/*.pkg.* tmp/build
cd tmp/build # cd tmp/build
for file in `ls *.pkg.*`;do mv $file `echo $file|sed 's/:/-/g'`;done; # for file in `ls *.pkg.*`;do mv $file `echo $file|sed 's/:/-/g'`;done;
ls -l # ls -l
- name: Upload artifact # - name: Upload artifact
uses: actions/upload-artifact@v2.3.1 # uses: actions/upload-artifact@v2.3.1
with: # with:
# Artifact name # # Artifact name
name: wechat-devtools-${{ matrix.ARCH }}.build # name: wechat-devtools-${{ matrix.ARCH }}.build
path: tmp/build # path: tmp/build
build-snap: # build-snap:
name: Build Snap Package # name: Build Snap Package
runs-on: ubuntu-18.04 # runs-on: ubuntu-18.04
timeout-minutes: 30 # timeout-minutes: 30
strategy: # strategy:
matrix: # matrix:
node-version: [16.x] # node-version: [16.x]
ARCH: ['x86_64'] # ARCH: ['x86_64']
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/ # # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps: # steps:
- uses: actions/checkout@v2 # - uses: actions/checkout@v2
with: # with:
submodules: 'recursive' # submodules: 'recursive'
- name: Install Snapcraft # - name: Install Snapcraft
uses: samuelmeuli/action-snapcraft@v1 # uses: samuelmeuli/action-snapcraft@v1
with: # with:
use_lxd: true # use_lxd: true
- name: Prepare # - name: Prepare
run: | # run: |
cd compiler && npm install # cd compiler && npm install
git --version # git --version
git --help # git --help
# You can now run Snapcraft shell commands # # You can now run Snapcraft shell commands
- name: Build snap # - name: Build snap
run: sg lxd -c 'snapcraft --use-lxd' # run: sg lxd -c 'snapcraft --use-lxd'
- name: move file # - name: move file
run: | # run: |
mkdir -p tmp/build # mkdir -p tmp/build
mv *.snap tmp/build # mv *.snap tmp/build
- name: Upload artifact # - name: Upload artifact
uses: actions/upload-artifact@v2.3.1 # uses: actions/upload-artifact@v2.3.1
with: # with:
# Artifact name # # Artifact name
name: wechat-devtools-${{ matrix.ARCH }}.build # name: wechat-devtools-${{ matrix.ARCH }}.build
path: tmp/build # path: tmp/build
upload: upload:
name: Create release and upload artifacts name: Create release and upload artifacts
needs: needs:
- build-tar - build-tar
- build-deb - build-deb
- build-snap # - build-snap
- build-arch # - build-arch
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Download artifacts - name: Download artifacts
@ -365,7 +353,7 @@ jobs:
run: | run: |
wget -q https://github.com/TheAssassin/pyuploadtool/releases/download/continuous/pyuploadtool-x86_64.AppImage wget -q https://github.com/TheAssassin/pyuploadtool/releases/download/continuous/pyuploadtool-x86_64.AppImage
chmod +x pyuploadtool-x86_64.AppImage chmod +x pyuploadtool-x86_64.AppImage
./pyuploadtool-x86_64.AppImage **build/WeChat*.AppImage **build/*.tar.gz **build/*.deb **build/*.pkg.* **build/*.snap ./pyuploadtool-x86_64.AppImage **build/WeChat*.AppImage **build/*.tar.gz **build/*.deb # **build/*.pkg.* **build/*.snap
- name: Release - name: Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
@ -379,5 +367,5 @@ jobs:
**build/WeChat*.AppImage **build/WeChat*.AppImage
**build/*.tar.gz **build/*.tar.gz
**build/*.deb **build/*.deb
**build/*.pkg.* # **build/*.pkg.*
**build/*.snap # **build/*.snap

View File

@ -166,6 +166,7 @@
|-------|---------| |-------|---------|
| Milder | 50.00¥ | | Milder | 50.00¥ |
| [Starrah](https://github.com/Starrah) | 50.00¥ | | [Starrah](https://github.com/Starrah) | 50.00¥ |
| 仙人柱 | 50.00¥ |
| . | 20.00¥ | | . | 20.00¥ |
| [icepie](https://github.com/icepie) | 20.00¥ | | [icepie](https://github.com/icepie) | 20.00¥ |
| 南极の短尾猫 | 20.00¥ | | 南极の短尾猫 | 20.00¥ |