Chore: code style
This commit is contained in:
parent
9f00907647
commit
6fe19944ad
5
.github/workflows/build-windows-amd.yml
vendored
5
.github/workflows/build-windows-amd.yml
vendored
@ -55,14 +55,13 @@ jobs:
|
|||||||
$env:GOAMD64="v3"; $env:CGO_ENABLED=1; go build -tags build_actions -trimpath -ldflags '-w -s -buildid=' -o bin/clash-windows-amd64-v3.exe
|
$env:GOAMD64="v3"; $env:CGO_ENABLED=1; go build -tags build_actions -trimpath -ldflags '-w -s -buildid=' -o bin/clash-windows-amd64-v3.exe
|
||||||
|
|
||||||
cd bin/
|
cd bin/
|
||||||
Compress-Archive -Path clash-windows-amd64.exe -DestinationPath clash-plus-windows-amd64-$(git describe --tags --always)-$(Get-Date -Format 'yyyy.MM.dd').zip
|
Compress-Archive -Path clash-windows-amd64.exe -DestinationPath clash-plus-windows-amd64-$(Get-Date -Format 'yyyy.MM.dd').zip
|
||||||
Compress-Archive -Path clash-windows-amd64-v3.exe -DestinationPath clash-plus-windows-amd64-v3-$(git describe --tags --always)-$(Get-Date -Format 'yyyy.MM.dd').zip
|
Compress-Archive -Path clash-windows-amd64-v3.exe -DestinationPath clash-plus-windows-amd64-v3-$(Get-Date -Format 'yyyy.MM.dd').zip
|
||||||
Remove-Item -Force clash-windows-amd64.exe
|
Remove-Item -Force clash-windows-amd64.exe
|
||||||
Remove-Item -Force clash-windows-amd64-v3.exe
|
Remove-Item -Force clash-windows-amd64-v3.exe
|
||||||
|
|
||||||
- name: Upload files to Artifacts
|
- name: Upload files to Artifacts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
if: startsWith(github.ref, 'refs/tags/') == false
|
|
||||||
with:
|
with:
|
||||||
name: clash-windows-amd64-${{ steps.test.outputs.file_sha }}-${{ steps.test.outputs.file_date }}
|
name: clash-windows-amd64-${{ steps.test.outputs.file_sha }}-${{ steps.test.outputs.file_date }}
|
||||||
path: |
|
path: |
|
||||||
|
@ -40,7 +40,7 @@ Documentations are now moved to [GitHub Wiki](https://github.com/Dreamacro/clash
|
|||||||
This branch requires cgo and Python3.9, so make sure you set up Python3.9 before building.
|
This branch requires cgo and Python3.9, so make sure you set up Python3.9 before building.
|
||||||
|
|
||||||
For example, build on macOS:
|
For example, build on macOS:
|
||||||
```shell
|
```sh
|
||||||
brew update
|
brew update
|
||||||
brew install python@3.9
|
brew install python@3.9
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ git clone -b plus-pro https://github.com/yaling888/clash.git
|
|||||||
cd clash
|
cd clash
|
||||||
|
|
||||||
# build
|
# build
|
||||||
make cleancache && make local
|
make local
|
||||||
# or make local-v3
|
# or make local-v3
|
||||||
|
|
||||||
ls bin/
|
ls bin/
|
||||||
|
Reference in New Issue
Block a user