Chore: Adjust release.yml (#337)

Co-authored-by: Jim Han <50871214+JimhHan@users.noreply.github.com>
Co-authored-by: RPRX <63339210+rprx@users.noreply.github.com>
This commit is contained in:
秋のかえで 2021-03-06 14:34:40 +08:00 committed by GitHub
parent 54af48a1ae
commit 24f564b401
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,8 +99,8 @@ jobs:
goarm: 7 goarm: 7
# END OPENBSD ARM # END OPENBSD ARM
fail-fast: false fail-fast: false
#配置编译环境
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
env: env:
GOOS: ${{ matrix.goos }} GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }} GOARCH: ${{ matrix.goarch }}
@ -173,16 +173,8 @@ jobs:
shell: bash shell: bash
run: | run: |
pushd build_assets || exit 1 pushd build_assets || exit 1
touch -mt 202101010000 * touch -mt $(date +%Y01010000) *
zip -9vr ../Xray-$ASSET_NAME.zip . zip -9vr ../Xray-$ASSET_NAME.zip .
for CORE in $(ls xray*)
do
COREDGST=$CORE.dgst
for METHOD in {"md5","sha1","sha256","sha512"}
do
openssl dgst -$METHOD $CORE | sed 's/([^)]*)//g' >>$COREDGST
done
done
popd || exit 1 popd || exit 1
FILE=./Xray-$ASSET_NAME.zip FILE=./Xray-$ASSET_NAME.zip
DGST=$FILE.dgst DGST=$FILE.dgst