fix package location
Some checks failed
Build and Package OPKG / Build mips (push) Waiting to run
Build and Package OPKG / Build mipsel (push) Waiting to run
Build and Package OPKG / Build aarch64 (push) Successful in 47s
Build and Package OPKG / Build armv5 (push) Successful in 41s
Build and Package OPKG / Build armv7 (push) Has been cancelled
Some checks failed
Build and Package OPKG / Build mips (push) Waiting to run
Build and Package OPKG / Build mipsel (push) Waiting to run
Build and Package OPKG / Build aarch64 (push) Successful in 47s
Build and Package OPKG / Build armv5 (push) Successful in 41s
Build and Package OPKG / Build armv7 (push) Has been cancelled
This commit is contained in:
parent
a2f5294768
commit
4f89e4e1af
5
Makefile
5
Makefile
@ -13,7 +13,8 @@ GOARCH ?= mipsle
|
|||||||
GOMIPS ?= softfloat
|
GOMIPS ?= softfloat
|
||||||
GOARM ?=
|
GOARM ?=
|
||||||
|
|
||||||
PKG_DIR = ./.build/$(ARCH)
|
BUILD_DIR = ./.build
|
||||||
|
PKG_DIR = $(BUILD_DIR)/$(ARCH)
|
||||||
BIN_DIR = $(PKG_DIR)/data/opt/usr/bin
|
BIN_DIR = $(PKG_DIR)/data/opt/usr/bin
|
||||||
PARAMS = -v -a -trimpath -ldflags="-X 'kvas2/constant.Version=$(VERSION)' -X 'kvas2/constant.Commit=$(COMMIT)' -w -s"
|
PARAMS = -v -a -trimpath -ldflags="-X 'kvas2/constant.Version=$(VERSION)' -X 'kvas2/constant.Commit=$(COMMIT)' -w -s"
|
||||||
|
|
||||||
@ -37,4 +38,4 @@ package:
|
|||||||
@cp -r ./opt/* $(PKG_DIR)/data/
|
@cp -r ./opt/* $(PKG_DIR)/data/
|
||||||
@fakeroot sh -c "tar -C $(PKG_DIR)/control -cvf $(PKG_DIR)/control.tar ."
|
@fakeroot sh -c "tar -C $(PKG_DIR)/control -cvf $(PKG_DIR)/control.tar ."
|
||||||
@fakeroot sh -c "tar -C $(PKG_DIR)/data -cvf $(PKG_DIR)/data.tar ."
|
@fakeroot sh -c "tar -C $(PKG_DIR)/data -cvf $(PKG_DIR)/data.tar ."
|
||||||
@ar r $(PKG_DIR)/$(APP_NAME)_$(ARCH).ipk $(PKG_DIR)/debian-binary $(PKG_DIR)/control.tar $(PKG_DIR)/data.tar
|
@ar r $(BUILD_DIR)/$(APP_NAME)_$(ARCH).ipk $(PKG_DIR)/debian-binary $(PKG_DIR)/control.tar $(PKG_DIR)/data.tar
|
||||||
|
Loading…
x
Reference in New Issue
Block a user