Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #67 from 1054009064/main
Browse files Browse the repository at this point in the history
Rework #65
  • Loading branch information
messense authored Jul 3, 2023
2 parents 91afd2a + de1d17c commit 66003af
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
1 change: 0 additions & 1 deletion .github/feeds.conf.default

This file was deleted.

2 changes: 1 addition & 1 deletion .github/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def fetch_latest_release():
def main():
version, sha256 = fetch_latest_release()
if os.getenv("GITHUB_ACTIONS"):
print(f"::set-output name=NETBIRD_VERSION::{version}")
print(f"NETBIRD_VERSION={version}", file=open(os.environ["GITHUB_OUTPUT"], "a"))

with open("netbird/Makefile") as f:
makefile = f.read()
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ jobs:
wget -O openwrt-sdk.tar.xz ${{ matrix.target.sdk }}
xz -q -d openwrt-sdk.tar.xz && tar -xvf openwrt-sdk.tar
mv -f openwrt-sdk-* openwrt-sdk
mv -f .github/feeds.conf.default openwrt-sdk/feeds.conf.default
- name: Build Package
run: |
echo "src-link netbird $GITHUB_WORKSPACE" > openwrt-sdk/feeds.conf
Expand All @@ -59,9 +58,10 @@ jobs:
cd openwrt-sdk
git clone https://github.com/kuoruan/openwrt-upx.git package/upx
git -C package/upx checkout 2c2ee0d696ea6084bee893a2861a7ed0729728ed
git -C package/upx checkout 2c2ee0d696ea6084bee893a2861a7ed0729728ed # upx version: v2022-10-20
cat feeds.conf.default >> feeds.conf
#cat feeds.conf.default >> feeds.conf
echo 'src-git packages https://git.openwrt.org/feed/packages.git^8939b43659dabe9b737feee02976949ad0355adc' >> feeds.conf # feeds/packages: OpenWrt v23.05.0-rc2
cat feeds.conf
./scripts/feeds update -a > /dev/null
Expand Down
6 changes: 5 additions & 1 deletion netbird/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ PKG_USE_MIPS16:=0
GO_PKG:=github.com/netbirdio/netbird
GO_PKG_BUILD_PKG:=github.com/netbirdio/netbird/client
GO_PKG_LDFLAGS:=-s -w
GO_PKG_LDFLAGS_X:=github.com/netbirdio/netbird/client/system.version=$(PKG_VERSION)
GO_PKG_LDFLAGS_X:=github.com/netbirdio/netbird/version.version=$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk
include $(TOPDIR)/feeds/packages/lang/golang/golang-package.mk
Expand All @@ -44,6 +44,10 @@ ifneq ($(CONFIG_NETBIRD_COMPRESS_UPX),)
endif
endef

define Package/netbird/conffiles
/etc/netbird/config.json
endef

define Package/netbird/install
$(call GoPackage/Package/Install/Bin,$(PKG_INSTALL_DIR))

Expand Down

0 comments on commit 66003af

Please sign in to comment.