Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

Commit a0a5648

Browse files
committed
Remove goversioninfo
1 parent bbcdd66 commit a0a5648

File tree

5 files changed

+8
-67
lines changed

5 files changed

+8
-67
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,17 @@ jobs:
3232
NAME: clash
3333
BINDIR: bin
3434
run: |
35-
make build_dep
3635
make -j releases
3736
37+
- name: Upload Artifact
38+
uses: actions/upload-artifact@v4
39+
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
40+
with:
41+
path: build/releases/*
42+
3843
- name: Upload Release
3944
uses: softprops/action-gh-release@v2
40-
if: startsWith(github.ref, 'refs/tags/')
45+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
4146
with:
4247
files: build/releases/*
4348
draft: false

Makefile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ NAME=clash-core
22
BUILDDIR=build/releases
33
VERSION=$(shell git describe --tags || echo v0.0.0-test)
44
BUILDTIME=$(shell date -u)
5-
GOBUILD=CGO_ENABLED=0 go generate && go build -trimpath -ldflags '-X "github.com/Dreamacro/clash/constant.Version=$(VERSION)" \
5+
GOBUILD=CGO_ENABLED=0 go build -trimpath -ldflags '-X "github.com/Dreamacro/clash/constant.Version=$(VERSION)" \
66
-X "github.com/Dreamacro/clash/constant.BuildTime=$(BUILDTIME)" \
77
-w -s -buildid='
88

@@ -25,9 +25,6 @@ WINDOWS_ARCH_LIST = \
2525
windows-arm64 \
2626
windows-armv7
2727

28-
build_dep:
29-
go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo@latest
30-
3128
all: linux-amd64 windows-amd64 # Most used
3229

3330
linux-386:

main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
//go:generate goversioninfo
21
package main
32

43
import (

resource/goversioninfo.exe.manifest

Lines changed: 0 additions & 17 deletions
This file was deleted.

versioninfo.json

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)