Skip to content

Commit 40d1daf

Browse files
committed
Support for x86_64
1 parent 34d6004 commit 40d1daf

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ To download a specific version of the `swift-format` binary, specify the version
2020
curl -LO https://github.com/DevYeom/swift-format-executable/releases/download/510.1.0/swift-format.zip
2121
```
2222

23+
If you're running in `x86_64` environment, you can use the following URL.
24+
25+
```
26+
curl -LO https://github.com/DevYeom/swift-format-executable/releases/download/510.1.0/swift-format-x86_64.zip
27+
```
28+
2329
### Grant Execution Permission
2430

2531
After downloading, give execution permission to the binary:

install.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ rm -rf swift-format
3030
git clone https://github.com/apple/swift-format.git
3131
cd swift-format
3232
git switch --detach "tags/$SWIFT_FORMAT_VERSION"
33-
swift build -c release
33+
swift build -c release --arch arm64
34+
swift build -c release --arch x86_64
3435
cd $SCRIPT_DIR
35-
cp swift-format/.build/release/swift-format ./swift-format-$SWIFT_FORMAT_VERSION
36+
cp swift-format/.build/arm64-apple-macosx/release/swift-format ./swift-format-$SWIFT_FORMAT_VERSION-arm64
37+
cp swift-format/.build/x86_64-apple-macosx/release/swift-format ./swift-format-$SWIFT_FORMAT_VERSION-x86_64
3638
rm -rf swift-format
3739
__success "swift-format is installed."

0 commit comments

Comments
 (0)