Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c28b1a4

Browse files
committed
fix archive
1 parent 3757f82 commit c28b1a4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ REPO = https://github.com/yonaskolb/$(TOOL_NAME)
1010
RELEASE_TAR = $(REPO)/archive/$(VERSION).tar.gz
1111
SHA = $(shell curl -L -s $(RELEASE_TAR) | shasum -a 256 | sed 's/ .*//')
1212
SWIFT_BUILD_FLAGS = --disable-sandbox -c release --arch arm64 --arch x86_64
13+
EXECUTABLE_PATH = $(shell swift build $(SWIFT_BUILD_FLAGS) --show-bin-path)/$(EXECUTABLE_NAME)
1314

1415
.PHONY: install build uninstall format_code brew release
1516

1617
install: build
1718
mkdir -p $(PREFIX)/bin
18-
cp -f $(shell swift build $(SWIFT_BUILD_FLAGS) --show-bin-path)/$(EXECUTABLE_NAME) $(INSTALL_PATH)
19+
cp -f $(EXECUTABLE_PATH) $(INSTALL_PATH)
1920
mkdir -p $(SHARE_PATH)
2021
cp -R $(CURRENT_PATH)/SettingPresets $(SHARE_PATH)/SettingPresets
2122

@@ -45,4 +46,4 @@ brew:
4546
brew bump-formula-pr --url=$(RELEASE_TAR) XcodeGen
4647

4748
archive: build
48-
./scripts/archive.sh
49+
./scripts/archive.sh $(EXECUTABLE_PATH)

scripts/archive.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LICENSE=LICENSE
1010
# copy
1111

1212
mkdir -p $BINDIR
13-
cp -f .build/release/$EXECUTABLE_NAME $BINDIR
13+
cp -f $1 $BINDIR
1414

1515
mkdir -p $SHAREDIR
1616
cp -R SettingPresets $SHAREDIR/SettingPresets

0 commit comments

Comments
 (0)