Skip to content

Commit 723dd8e

Browse files
generatedunixname89002005232357facebook-github-bot
generatedunixname89002005232357
authored andcommitted
Revert D74274760
Summary: This diff reverts D74274760 #52 Reviewed By: bigfootjon Differential Revision: D75027253 fbshipit-source-id: cfb76bd4c450182ab0de8260445332393d354305
1 parent 7ec265d commit 723dd8e

File tree

2 files changed

+11
-27
lines changed

2 files changed

+11
-27
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- run: cargo build --release --target x86_64-apple-darwin
3535
- run: lipo -create -output dotslash target/aarch64-apple-darwin/release/dotslash target/x86_64-apple-darwin/release/dotslash
3636
# Package universal binary
37-
- run: tar -czvf dotslash-macos.tar.gz --options gzip:compression-level=9 dotslash
37+
- run: tar -czvf "dotslash-macos.${GITHUB_REF#refs/tags/}.tar.gz" dotslash
3838
shell: bash
3939
# Package architecture-specific binaries
4040
- run: tar -czvf "dotslash-macos-arm64.${GITHUB_REF#refs/tags/}.tar.gz" -C target/aarch64-apple-darwin/release dotslash
@@ -47,9 +47,9 @@ jobs:
4747
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4848
shell: bash
4949
run: |
50-
gh release upload "${GITHUB_REF#refs/tags/}" "dotslash-macos.tar.gz"
51-
gh release upload "${GITHUB_REF#refs/tags/}" "dotslash-macos-arm64.tar.gz"
52-
gh release upload "${GITHUB_REF#refs/tags/}" "dotslash-macos-amd64.tar.gz"
50+
gh release upload "${GITHUB_REF#refs/tags/}" "dotslash-macos.${GITHUB_REF#refs/tags/}.tar.gz"
51+
gh release upload "${GITHUB_REF#refs/tags/}" "dotslash-macos-arm64.${GITHUB_REF#refs/tags/}.tar.gz"
52+
gh release upload "${GITHUB_REF#refs/tags/}" "dotslash-macos-amd64.${GITHUB_REF#refs/tags/}.tar.gz"
5353
5454
ubuntu-22_04-x86_64:
5555
needs: create-release
@@ -61,12 +61,12 @@ jobs:
6161
- run: cargo test
6262
- run: cargo clippy
6363
- run: cargo build --release
64-
- run: tar -cvf dotslash-ubuntu-22.04.x86_64.tar.gz -I 'gzip -9' -C target/release dotslash
64+
- run: tar -czvf "dotslash-ubuntu-22.04.x86_64.${GITHUB_REF#refs/tags/}.tar.gz" -C target/release dotslash
6565
- name: upload release
6666
env:
6767
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6868
shell: bash
69-
run: gh release upload "${GITHUB_REF#refs/tags/}" dotslash-ubuntu-22.04.x86_64.tar.gz
69+
run: gh release upload "${GITHUB_REF#refs/tags/}" "dotslash-ubuntu-22.04.x86_64.${GITHUB_REF#refs/tags/}.tar.gz"
7070

7171
ubuntu-22_04-arm64:
7272
needs: create-release
@@ -84,12 +84,12 @@ jobs:
8484
- run: cargo build --target aarch64-unknown-linux-gnu --release
8585
env:
8686
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
87-
- run: tar -cvf dotslash-ubuntu-22.04.aarch64.tar.gz -I 'gzip -9' -C target/aarch64-unknown-linux-gnu/release dotslash
87+
- run: tar -czvf "dotslash-ubuntu-22.04.arm64.${GITHUB_REF#refs/tags/}.tar.gz" -C target/aarch64-unknown-linux-gnu/release dotslash
8888
- name: upload release
8989
env:
9090
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9191
shell: bash
92-
run: gh release upload "${GITHUB_REF#refs/tags/}" dotslash-ubuntu-22.04.aarch64.tar.gz
92+
run: gh release upload "${GITHUB_REF#refs/tags/}" "dotslash-ubuntu-22.04.arm64.${GITHUB_REF#refs/tags/}.tar.gz"
9393

9494
linux-musl-x86_64:
9595
needs: create-release
@@ -145,10 +145,10 @@ jobs:
145145
- run: cargo test
146146
- run: cargo clippy
147147
- run: cargo build --release
148-
- run: tar czvf dotslash-windows.tar.gz --options gzip:compression-level=9 -C target/release dotslash.exe
148+
- run: tar czvf dotslash-windows.%GITHUB_REF:~10%.tar.gz -C target/release dotslash.exe
149149
shell: cmd
150150
- name: upload release
151151
env:
152152
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
153-
run: gh release upload %GITHUB_REF:~10% dotslash-windows.tar.gz
153+
run: gh release upload %GITHUB_REF:~10% dotslash-windows.%GITHUB_REF:~10%.tar.gz
154154
shell: cmd

website/docs/installation.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,7 @@ We provide prebuilt binaries for macOS, [Ubuntu] Linux, and Windows on GitHub:
2323

2424
<https://github.com/facebook/dotslash/releases/latest>
2525

26-
macOS: for the reasons explained above, the macOS release is a Universal Binary.
27-
28-
```shell
29-
curl -LSfs https://github.com/facebook/dotslash/releases/latest/download/dotslash-macos.tar.gz | tar fxz - -C YOUR_BIN_PATH
30-
```
31-
32-
Linux
33-
34-
```shell
35-
curl -LSfs "https://github.com/facebook/dotslash/releases/latest/download/dotslash-ubuntu-22.04.$(uname -m).tar.gz" | tar fxz - -C YOUR_BIN_PATH
36-
```
37-
38-
Windows
39-
40-
```cmd
41-
cmd /c 'curl.exe -LSfs https://github.com/facebook/dotslash/releases/latest/download/dotslash-windows.tar.gz | tar fxz - -C YOUR_BIN_PATH'
42-
```
26+
For the reasons explained above, the macOS release is a Universal Binary.
4327

4428
Once you have downloaded DotSlash, you must ensure that `dotslash` (or
4529
`dotslash.exe` on Windows) is on your `PATH`. You can test that it is setup

0 commit comments

Comments
 (0)