File tree Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Expand file tree Collapse file tree 2 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 1- BUILD_PATH =.build
2- SWIFT_BUILD_FLAGS =--product periphery --configuration release --disable-sandbox --scratch-path ${BUILD_PATH}
3-
1+ SWIFT_BUILD_FLAGS =--product periphery --configuration release --disable-sandbox --scratch-path .build
42EXECUTABLE_X86_64 =$(shell swift build ${SWIFT_BUILD_FLAGS} --arch x86_64 --show-bin-path) /periphery
53EXECUTABLE_ARM64 =$(shell swift build ${SWIFT_BUILD_FLAGS} --arch arm64 --show-bin-path) /periphery
6- EXECUTABLE =${BUILD_PATH}/periphery
74
85clean :
96 @swift package clean
@@ -15,11 +12,9 @@ build_arm64:
1512 @swift build ${SWIFT_BUILD_FLAGS} --arch arm64
1613
1714build_release : clean build_x86_64 build_arm64
18- @lipo -create -output ${EXECUTABLE} ${EXECUTABLE_X86_64} ${EXECUTABLE_ARM64}
19- @strip -rSTX ${EXECUTABLE}
20-
21- show_bin_path :
22- @echo ${EXECUTABLE}
15+ @mkdir -p .release
16+ @lipo -create -output .release/periphery ${EXECUTABLE_X86_64} ${EXECUTABLE_ARM64}
17+ @strip -rSTX .release/periphery
2318
2419swiftformat :
2520 @./scripts/lint/swiftformat.sh
Original file line number Diff line number Diff line change @@ -44,10 +44,13 @@ cat scripts/artifactbundle_info.json.template | sed s/__VERSION__/${version}/ >
4444echo -e " \nUpdate CHANGELOG.md"
4545confirm " Continue?"
4646
47- bin_path=$( make show_bin_path)
48- rm -rf " $bin_path "
4947make build_release
50- cp " $bin_path " .release/
48+
49+ if [ ! -f .release/periphery ]; then
50+ echo " ERROR: Missing release binary?"
51+ exit 1
52+ fi
53+
5154cp LICENSE.md .release/
5255cp scripts/release_notes.md.template .release/release_notes.md
5356
You can’t perform that action at this time.
0 commit comments