Try linux .AppImage builds
This commit is contained in:
parent
e2be0fcf0e
commit
66eee8ba95
1 changed files with 15 additions and 0 deletions
15
Makefile
15
Makefile
|
@ -6,6 +6,8 @@ VERSION := $(shell if [ -d .git ] && which git 2>&1 > /dev/null; then git descri
|
|||
CFLAGS += -Wall -g -DNMRPFLASH_VERSION=\"$(VERSION)\"
|
||||
SUFFIX ?=
|
||||
MACOS_SDK ?= macosx11.1
|
||||
ARCH = $(shell uname -m)
|
||||
LINUXDEPLOY = linuxdeploy-$(ARCH).AppImage
|
||||
|
||||
nmrpflash_OBJ = nmrp.o tftp.o ethsock.o main.o util.o
|
||||
|
||||
|
@ -85,6 +87,19 @@ release/macos:
|
|||
zip nmrpflash-$(VERSION)-macos.zip nmrpflash
|
||||
rm -f nmrpflash.x86_64 nmrpflash.arm64
|
||||
|
||||
linuxdeploy: build/$(LINUXDEPLOY)
|
||||
|
||||
build/$(LINUXDEPLOY):
|
||||
wget -O $@ https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/$(shell basename $@)
|
||||
chmod +x $@
|
||||
|
||||
release/linux-appimage: linuxdeploy release
|
||||
rm -fr build/AppDir
|
||||
mkdir -p build/AppDir
|
||||
build/$(LINUXDEPLOY) --appdir build/AppDir -e nmrpflash -i nmrpflash.svg -o appimage --create-desktop-file
|
||||
# nmrpflash-$(VERSION)-x86_64.AppImage
|
||||
tar cvfz nmrpflash-$(VERSION)-linux-$(ARCH).tar.gz nmrpflash-$(ARCH).AppImage
|
||||
|
||||
release/linux: release
|
||||
zip nmrpflash-$(VERSION)-linux.zip nmrpflash
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue