mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-03 07:56:42 -05:00
Fix: debian package (#1279)
This commit is contained in:
parent
c334a4ed3c
commit
70c796b7ee
12
.github/workflows/deb.yml
vendored
12
.github/workflows/deb.yml
vendored
@ -21,18 +21,16 @@ jobs:
|
|||||||
package:
|
package:
|
||||||
if: github.repository == 'v2fly/v2ray-core'
|
if: github.repository == 'v2fly/v2ray-core'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: debian:sid
|
container: golang:1.17-bullseye
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Install git
|
- name: Update & install dependencies
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y git wget
|
apt-get install -y git wget
|
||||||
|
|
||||||
- name: Checkout codebase
|
- name: Checkout codebase
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
|
||||||
submodules: "recursive"
|
|
||||||
|
|
||||||
- name: Download geo files
|
- name: Download geo files
|
||||||
run: |
|
run: |
|
||||||
@ -42,11 +40,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Install build dependencies
|
- name: Install build dependencies
|
||||||
run: |
|
run: |
|
||||||
apt-get install -y build-essential dh-golang golang-1.17 reprepro
|
apt-get install -y build-essential dh-golang reprepro
|
||||||
|
|
||||||
- name: Set environment variable
|
|
||||||
run: |
|
|
||||||
echo "PATH=/usr/lib/go-1.17/bin:${PATH}" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
v2ray-core (4.42.2-1) unstable; urgency=medium
|
v2ray-core (4.42.2-2) unstable; urgency=medium
|
||||||
|
|
||||||
* Support Windows ARM64
|
* Support Windows ARM64
|
||||||
* TLS: support client certificate authentication
|
* TLS: support client certificate authentication
|
||||||
|
@ -4,7 +4,6 @@ Priority: optional
|
|||||||
Maintainer: ymshenyu <ymshenyu@gmail.com>
|
Maintainer: ymshenyu <ymshenyu@gmail.com>
|
||||||
Build-Depends: debhelper-compat (= 12),
|
Build-Depends: debhelper-compat (= 12),
|
||||||
dh-golang,
|
dh-golang,
|
||||||
golang-1.17
|
|
||||||
Standards-Version: 4.5.0
|
Standards-Version: 4.5.0
|
||||||
Homepage: https://github.com/v2fly/v2ray-core
|
Homepage: https://github.com/v2fly/v2ray-core
|
||||||
#Vcs-Browser: https://salsa.debian.org/debian/v2ray-core
|
#Vcs-Browser: https://salsa.debian.org/debian/v2ray-core
|
||||||
@ -16,7 +15,8 @@ Package: v2ray
|
|||||||
Architecture: any
|
Architecture: any
|
||||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||||
Recommends: v2ray-domain-list-community,
|
Recommends: v2ray-domain-list-community,
|
||||||
v2ray-geoip
|
v2ray-geoip,
|
||||||
|
v2ray-geoip-only-cn-private
|
||||||
Description: Library platform for building proxies in golang
|
Description: Library platform for building proxies in golang
|
||||||
Project V2Ray is a set of network tools that help you to build your
|
Project V2Ray is a set of network tools that help you to build your
|
||||||
own computer network. It secures your network connections and thus
|
own computer network. It secures your network connections and thus
|
||||||
|
@ -5,16 +5,12 @@ include /usr/share/dpkg/default.mk
|
|||||||
BUILDDIR=_build
|
BUILDDIR=_build
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@ --builddirectory=$(BUILDDIR) --buildsystem=golang --with=golang
|
dh $@ --builddirectory=$(BUILDDIR) --buildsystem=golang
|
||||||
|
|
||||||
execute_after_dh_auto_configure:
|
execute_after_dh_auto_configure:
|
||||||
go mod vendor
|
go mod vendor
|
||||||
cp -r vendor/* _build/src
|
cp -r vendor/* _build/src
|
||||||
|
|
||||||
override_dh_auto_clean:
|
|
||||||
dh_auto_clean
|
|
||||||
rm -rf vendor
|
|
||||||
|
|
||||||
override_dh_auto_build:
|
override_dh_auto_build:
|
||||||
DH_GOPKG="github.com/v2fly/v2ray-core/v4/main" dh_auto_build -- -ldflags "-s -w"
|
DH_GOPKG="github.com/v2fly/v2ray-core/v4/main" dh_auto_build -- -ldflags "-s -w"
|
||||||
cd $(BUILDDIR); mv bin/main bin/v2ray
|
cd $(BUILDDIR); mv bin/main bin/v2ray
|
||||||
|
Loading…
Reference in New Issue
Block a user