mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2024-08-17 08:40:28 +03:00
fix archive
This commit is contained in:
parent
3757f82bf6
commit
c28b1a4082
5
Makefile
5
Makefile
@ -10,12 +10,13 @@ REPO = https://github.com/yonaskolb/$(TOOL_NAME)
|
||||
RELEASE_TAR = $(REPO)/archive/$(VERSION).tar.gz
|
||||
SHA = $(shell curl -L -s $(RELEASE_TAR) | shasum -a 256 | sed 's/ .*//')
|
||||
SWIFT_BUILD_FLAGS = --disable-sandbox -c release --arch arm64 --arch x86_64
|
||||
EXECUTABLE_PATH = $(shell swift build $(SWIFT_BUILD_FLAGS) --show-bin-path)/$(EXECUTABLE_NAME)
|
||||
|
||||
.PHONY: install build uninstall format_code brew release
|
||||
|
||||
install: build
|
||||
mkdir -p $(PREFIX)/bin
|
||||
cp -f $(shell swift build $(SWIFT_BUILD_FLAGS) --show-bin-path)/$(EXECUTABLE_NAME) $(INSTALL_PATH)
|
||||
cp -f $(EXECUTABLE_PATH) $(INSTALL_PATH)
|
||||
mkdir -p $(SHARE_PATH)
|
||||
cp -R $(CURRENT_PATH)/SettingPresets $(SHARE_PATH)/SettingPresets
|
||||
|
||||
@ -45,4 +46,4 @@ brew:
|
||||
brew bump-formula-pr --url=$(RELEASE_TAR) XcodeGen
|
||||
|
||||
archive: build
|
||||
./scripts/archive.sh
|
||||
./scripts/archive.sh $(EXECUTABLE_PATH)
|
||||
|
@ -10,7 +10,7 @@ LICENSE=LICENSE
|
||||
# copy
|
||||
|
||||
mkdir -p $BINDIR
|
||||
cp -f .build/release/$EXECUTABLE_NAME $BINDIR
|
||||
cp -f $1 $BINDIR
|
||||
|
||||
mkdir -p $SHAREDIR
|
||||
cp -R SettingPresets $SHAREDIR/SettingPresets
|
||||
|
Loading…
Reference in New Issue
Block a user