File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,13 @@ REPO = https://github.com/yonaskolb/$(TOOL_NAME)
1010RELEASE_TAR = $(REPO ) /archive/$(VERSION ) .tar.gz
1111SHA = $(shell curl -L -s $(RELEASE_TAR ) | shasum -a 256 | sed 's/ .* //')
1212SWIFT_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
1617install : 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
4546 brew bump-formula-pr --url=$(RELEASE_TAR ) XcodeGen
4647
4748archive : build
48- ./scripts/archive.sh
49+ ./scripts/archive.sh $( EXECUTABLE_PATH )
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ LICENSE=LICENSE
1010# copy
1111
1212mkdir -p $BINDIR
13- cp -f .build/release/ $EXECUTABLE_NAME $BINDIR
13+ cp -f $1 $BINDIR
1414
1515mkdir -p $SHAREDIR
1616cp -R SettingPresets $SHAREDIR /SettingPresets
You can’t perform that action at this time.
0 commit comments