Skip to content

Commit

Permalink
Remove goversioninfo
Browse files Browse the repository at this point in the history
  • Loading branch information
fxzxmicah committed Oct 26, 2024
1 parent bbcdd66 commit a0a5648
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 67 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,17 @@ jobs:
NAME: clash
BINDIR: bin
run: |
make build_dep
make -j releases
- name: Upload Artifact
uses: actions/upload-artifact@v4
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
with:
path: build/releases/*

- name: Upload Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
files: build/releases/*
draft: false
5 changes: 1 addition & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ NAME=clash-core
BUILDDIR=build/releases
VERSION=$(shell git describe --tags || echo v0.0.0-test)
BUILDTIME=$(shell date -u)
GOBUILD=CGO_ENABLED=0 go generate && go build -trimpath -ldflags '-X "github.com/Dreamacro/clash/constant.Version=$(VERSION)" \
GOBUILD=CGO_ENABLED=0 go build -trimpath -ldflags '-X "github.com/Dreamacro/clash/constant.Version=$(VERSION)" \
-X "github.com/Dreamacro/clash/constant.BuildTime=$(BUILDTIME)" \
-w -s -buildid='

Expand All @@ -25,9 +25,6 @@ WINDOWS_ARCH_LIST = \
windows-arm64 \
windows-armv7

build_dep:
go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo@latest

all: linux-amd64 windows-amd64 # Most used

linux-386:
Expand Down
1 change: 0 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
//go:generate goversioninfo
package main

import (
Expand Down
17 changes: 0 additions & 17 deletions resource/goversioninfo.exe.manifest

This file was deleted.

43 changes: 0 additions & 43 deletions versioninfo.json

This file was deleted.

0 comments on commit a0a5648

Please sign in to comment.