Skip to content

Commit

Permalink
UPDATE workflows and v2ray bin
Browse files Browse the repository at this point in the history
  • Loading branch information
iotames committed Apr 8, 2024
1 parent 0ed44d6 commit b4e66ae
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/release_tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,29 @@ jobs:
- name: Build
run: |
go build -v -o main/v2raypool -trimpath -ldflags "-s -w -buildid=" ./main
mkdir -p build_assets
go build -v -o build_assets/v2raypool -trimpath -ldflags "-s -w -buildid=" ./main
- name: Rename Windows File
if: matrix.goos == 'windows'
run: |
cd ./main || exit 1
cd ./build_assets || exit 1
mv v2raypool v2raypool.exe
- name: Download geo files
run: |
wget -O main/bin/geoip.dat "https://raw.githubusercontent.com/v2fly/geoip/release/geoip.dat"
wget -O main/bin/geoip-only-cn-private.dat "https://raw.githubusercontent.com/v2fly/geoip/release/geoip-only-cn-private.dat"
wget -O main/bin/geosite.dat "https://raw.githubusercontent.com/v2fly/domain-list-community/release/dlc.dat"
- name: Prepare package
run: |
cp -rv ./main/resource ./build_assets/
cp -rv ./main/bin ./build_assets/
touch ./build_assets/subscribe_data.txt
- name: Package
run: tar zcvf ${{ steps.get_filename.outputs.ASSET_NAME }}.tar.gz ./main/v2raypool ./main/resource
run: tar zcvf ${{ steps.get_filename.outputs.ASSET_NAME }}.tar.gz ./build_assets

# 上传附件
- name: Upload file to Artifacts
Expand Down
5 changes: 4 additions & 1 deletion main/bin/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
*
!.gitignore
!.gitignore
!v2ray.exe
!v2ray_for_linux
!v2ray_for_mac
Binary file added main/bin/v2ray.exe
Binary file not shown.
Binary file added main/bin/v2ray_for_linux
Binary file not shown.
Binary file added main/bin/v2ray_for_mac
Binary file not shown.

0 comments on commit b4e66ae

Please sign in to comment.