Patch commit message and some tweaking

This commit is contained in:
𐲓𐳛𐳪𐳂𐳐 𐲀𐳢𐳦𐳫𐳢 𐲥𐳔𐳛𐳪𐳌𐳑𐳖𐳇 2024-12-24 00:10:55 +08:00 committed by GitHub
parent 72b875bbe9
commit 08ddb382b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,7 +41,7 @@ jobs:
run: | run: |
cd ./src cd ./src
. ./all.bash . ./all.bash
cd ../ cd ${{ github.workspace }}
mkdir -p patched-go mkdir -p patched-go
rsync -a --exclude 'patched-go' ./ 'patched-go' rsync -a --exclude 'patched-go' ./ 'patched-go'
@ -132,18 +132,18 @@ jobs:
- name: Download dependencies and build Xray - name: Download dependencies and build Xray
run: | run: |
echo "Setup environment..." echo "Setup environment..."
export PATH=$PATH:$PWD/patched-go/bin export PATH=$PATH:${{ github.workspace }}/patched-go/bin
./patched-go/bin/go version ${{ github.workspace }}/patched-go/bin/go version
./patched-go/bin/go env -w GOPATH=$PWD ${{ github.workspace }}/patched-go/bin/go env -w GOPATH=${{ github.workspace }}
./patched-go/bin/go env -w GOROOT=$PWD/patched-go ${{ github.workspace }}/patched-go/bin/go env -w GOROOT=${{ github.workspace }}/patched-go
echo "Download dependencies..." echo "Download dependencies..."
./patched-go/bin/go mod download ${{ github.workspace }}/patched-go/bin/go mod download
echo "Build Xray..." echo "Build Xray..."
mkdir -p build_assets mkdir -p build_assets
./patched-go/bin/go clean -v -i $PWD ${{ github.workspace }}/patched-go/bin/go clean -v -i $PWD
rm -f xray xray.exe wxray.exe xray_softfloat rm -f xray xray.exe wxray.exe xray_softfloat
./patched-go/bin/go build -o xray.exe -trimpath -ldflags "-s -w -buildid=" -v ./main ${{ github.workspace }}/patched-go/bin/go build -o xray.exe -trimpath -ldflags "-X github.com/xtls/xray-core/core.build=win7-${{ github.ref_name }}-${{ github.sha }} -s -w -buildid=" -v ./main
./patched-go/bin/go build -o wxray.exe -trimpath -ldflags "-H windowsgui -s -w -buildid=" -v ./main ${{ github.workspace }}/patched-go/bin/go build -o wxray.exe -trimpath -ldflags "-H windowsgui -X github.com/xtls/xray-core/core.build=win7-${{ github.ref_name }}-${{ github.sha }} -s -w -buildid=" -v ./main
echo "Build completed." echo "Build completed."
find . -maxdepth 1 -type f -regex './\(wxray\|xray\).exe' -exec mv {} ./build_assets/ \; find . -maxdepth 1 -type f -regex './\(wxray\|xray\).exe' -exec mv {} ./build_assets/ \;