Skip to content

Commit

Permalink
Test upload.
Browse files Browse the repository at this point in the history
  • Loading branch information
RetroCyber committed Nov 12, 2024
1 parent ca5142d commit 55cf094
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,24 @@ jobs:
- name: Package executables on Windows
if: runner.os == 'Windows'
run: |
Compress-Archive -Path 'dist/add_patch.exe', 'dist/mirror_repo.exe' -DestinationPath thpatch_mirror.zip
mkdir -p dist/win
Move-Item -Path 'dist/add_patch.exe', 'dist/mirror_repo.exe' -Destination 'dist/win/'
shell: pwsh
working-directory: thcrap_patch_mirror

- name: Package executables on Linux
if: runner.os == 'Linux'
run: |
tar -czf thpatch_mirror.tar.gz dist/add_patch dist/mirror_repo
mkdir -p dist/linux
mv dist/add_patch dist/mirror_repo dist/linux/
shell: bash
working-directory: thcrap_patch_mirror

- name: Package executables on Linux and macOS
- name: Package executables on macOS
if: runner.os == 'macOS'
run: |
tar -czf thpatch_mirror.tar.gz dist/add_patch dist/mirror_repo
mkdir -p dist/macos
mv dist/add_patch dist/mirror_repo dist/macos/
shell: bash
working-directory: thcrap_patch_mirror

Expand All @@ -79,8 +82,9 @@ jobs:
with:
name: thpatch_mirror-${{ matrix.os }}
path: |
thcrap_patch_mirror/thpatch_mirror.tar.gz
thcrap_patch_mirror/thpatch_mirror.zip
dist/win/*
dist/linux/*
dist/macos/*
# release:
# runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion add_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# 1.可直接输入仓库(repo)或补丁(patch)的 URL 进行添加
# 2.给定仓库(repo)URL,列举其下所有补丁(patch),选择添加
# 3.引导用户生成自定义配置文件,可供镜像脚本(mirror_patch.py)使用
# 4.自动调用 repo_update.py 构建补丁,允许thcrap直接下载使用
# 4.自动调用 repo_update.py 构建补丁,允许thcrap直接下载使用
import httpx
import json
import asyncio
Expand Down

0 comments on commit 55cf094

Please sign in to comment.