Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strip macOS-specific files from Windows .tar.gz release #2298

Open
anthonyvdotbe opened this issue Jan 18, 2025 · 6 comments
Open

Strip macOS-specific files from Windows .tar.gz release #2298

anthonyvdotbe opened this issue Jan 18, 2025 · 6 comments

Comments

@anthonyvdotbe
Copy link

The d2-v...-windows-amd64.tar.gz archive contains 1 macOS-specific file per actual file/directory.
For a file/directory named x, the macOS-specific file is named ._x.
These files should be stripped from the archive.

@cyborg-ts cyborg-ts added this to D2 Jan 18, 2025
@alixander
Copy link
Collaborator

I don't understand. I download it, decompress it, cd into it, and ls doesn't reveal like a ._bin or ._LICENSE.txt. Can you elaborate please? @anthonyvdotbe

~/Downloads/d2-v0.6.8
▶ ls -la
drwxr-xr-x@   - nca  7 Nov  2024 bin
.rw-r--r--@ 17k nca  7 Nov  2024 LICENSE.txt
.rw-r--r--@ 250 nca  7 Nov  2024 Makefile
drwxr-xr-x@   - nca  7 Nov  2024 man
.rw-r--r--@ 768 nca  7 Nov  2024 README.md
drwxr-xr-x@   - nca  7 Nov  2024 scripts

~/Downloads/d2-v0.6.8
▶ cd bin

Downloads/d2-v0.6.8/bin
▶ ls -la
.rwxr-xr-x@ 47M nca  7 Nov  2024 d2.exe

@bo-ku-ra
Copy link
Contributor

bo-ku-ra commented Feb 4, 2025

@alixander

c.f.
on my windows
https://github.com/terrastruct/d2/releases/download/v0.6.8/d2-v0.6.8-windows-amd64.tar.gz
d2-v0.6.8-windows-amd64.tar.gz (SHA256: 9155c0e0fda3607d0557597762f9351805d17900d3e1518ddba5c4475dc59043)
d2-v0.6.8-windows-amd64.tar (SHA256: 3b5ceea7b00c18d595c11fdcf451b0bce2c910dd608f4285b0a2bec37cb4dc19)

.\D2-V0.6.8
│  ._bin
│  ._LICENSE.txt
│  ._Makefile
│  ._man
│  ._README.md
│  ._scripts
│  LICENSE.txt
│  Makefile
│  README.md
│
├─bin
│      ._d2.exe
│      d2.exe
│
├─man
│      ._d2.1
│      d2.1
│
└─scripts
        ._install.sh
        ._lib.sh
        ._uninstall.sh
        install.sh
        lib.sh
        uninstall.sh

@anthonyvdotbe
Copy link
Author

This is on Windows 11 24H2 (26100.3037). Both extracting

  • by right-clicking in File Explorer and choosing Extract All...
  • by running wsl tar xzf d2-v0.6.8-windows-amd64.tar.gz

gives the same results.

@bo-ku-ra
Copy link
Contributor

bo-ku-ra commented Feb 4, 2025

Definitely archived.

> tar -tvf d2-v0.6.8-windows-amd64.tar.gz

-rwxr-xr-x  0 nca    staff     163 11 08 06:26 ._d2-v0.6.8
drwxr-xr-x  0 nca    staff       0 11 08 06:26 d2-v0.6.8/
-rwxr-xr-x  0 nca    staff     163 11 08 06:26 d2-v0.6.8/._man
drwxr-xr-x  0 nca    staff       0 11 08 06:26 d2-v0.6.8/man/
-rwxr-xr-x  0 nca    staff     163 11 08 06:26 d2-v0.6.8/._bin
drwxr-xr-x  0 nca    staff       0 11 08 06:26 d2-v0.6.8/bin/
-rw-r--r--  0 nca    staff     163 11 08 06:26 d2-v0.6.8/._Makefile
-rw-r--r--  0 nca    staff     250 11 08 06:26 d2-v0.6.8/Makefile
-rw-r--r--  0 nca    staff     163 11 08 06:26 d2-v0.6.8/._README.md
-rw-r--r--  0 nca    staff     768 11 08 06:26 d2-v0.6.8/README.md
-rwxr-xr-x  0 nca    staff     163 11 08 06:26 d2-v0.6.8/._scripts
drwxr-xr-x  0 nca    staff       0 11 08 06:26 d2-v0.6.8/scripts/
-rw-r--r--  0 nca    staff     163 11 08 06:26 d2-v0.6.8/._LICENSE.txt
-rw-r--r--  0 nca    staff   16757 11 08 06:26 d2-v0.6.8/LICENSE.txt
-rwxr-xr-x  0 nca    staff     163 11 08 06:26 d2-v0.6.8/scripts/._uninstall.sh
-rwxr-xr-x  0 nca    staff     285 11 08 06:26 d2-v0.6.8/scripts/uninstall.sh
-rwxr-xr-x  0 nca    staff     163 11 08 06:26 d2-v0.6.8/scripts/._install.sh
-rwxr-xr-x  0 nca    staff     396 11 08 06:26 d2-v0.6.8/scripts/install.sh
-rw-r--r--  0 nca    staff     163 11 08 06:26 d2-v0.6.8/scripts/._lib.sh
-rw-r--r--  0 nca    staff    8308 11 08 06:26 d2-v0.6.8/scripts/lib.sh
-rwxr-xr-x  0 nca    staff     163 11 08 06:26 d2-v0.6.8/bin/._d2.exe
-rwxr-xr-x  0 nca    staff 46579200 11 08 06:26 d2-v0.6.8/bin/d2.exe
-rw-r--r--  0 nca    staff      163 11 08 06:26 d2-v0.6.8/man/._d2.1
-rw-r--r--  0 nca    staff     4482 11 08 06:26 d2-v0.6.8/man/d2.1

@alixander
Copy link
Collaborator

Strange, thanks both

@bo-ku-ra
Copy link
Contributor

bo-ku-ra commented Feb 5, 2025

> tar -tvf d2-v0.6.9-windows-amd64.tar.gz

-rwxr-xr-x  0 nca    staff     163 2 05 13:33 ._d2-v0.6.9
drwxr-xr-x  0 nca    staff       0 2 05 13:33 d2-v0.6.9/
-rwxr-xr-x  0 nca    staff     163 2 05 13:33 d2-v0.6.9/._man
drwxr-xr-x  0 nca    staff       0 2 05 13:33 d2-v0.6.9/man/
-rwxr-xr-x  0 nca    staff     163 2 05 13:34 d2-v0.6.9/._bin
drwxr-xr-x  0 nca    staff       0 2 05 13:34 d2-v0.6.9/bin/
-rw-r--r--  0 nca    staff     163 2 05 13:33 d2-v0.6.9/._Makefile
-rw-r--r--  0 nca    staff     250 2 05 13:33 d2-v0.6.9/Makefile
-rw-r--r--  0 nca    staff     163 2 05 13:33 d2-v0.6.9/._README.md
-rw-r--r--  0 nca    staff     768 2 05 13:33 d2-v0.6.9/README.md
-rwxr-xr-x  0 nca    staff     163 2 05 13:33 d2-v0.6.9/._scripts
drwxr-xr-x  0 nca    staff       0 2 05 13:33 d2-v0.6.9/scripts/
-rw-r--r--  0 nca    staff     163 2 05 13:33 d2-v0.6.9/._LICENSE.txt
-rw-r--r--  0 nca    staff   16757 2 05 13:33 d2-v0.6.9/LICENSE.txt
-rwxr-xr-x  0 nca    staff     163 2 05 13:33 d2-v0.6.9/scripts/._uninstall.sh
-rwxr-xr-x  0 nca    staff     285 2 05 13:33 d2-v0.6.9/scripts/uninstall.sh
-rwxr-xr-x  0 nca    staff     163 2 05 13:33 d2-v0.6.9/scripts/._install.sh
-rwxr-xr-x  0 nca    staff     396 2 05 13:33 d2-v0.6.9/scripts/install.sh
-rw-r--r--  0 nca    staff     163 2 05 13:33 d2-v0.6.9/scripts/._lib.sh
-rw-r--r--  0 nca    staff    8308 2 05 13:33 d2-v0.6.9/scripts/lib.sh
-rwxr-xr-x  0 nca    staff     163 2 05 13:34 d2-v0.6.9/bin/._d2.exe
-rwxr-xr-x  0 nca    staff 46797824 2 05 13:34 d2-v0.6.9/bin/d2.exe
-rw-r--r--  0 nca    staff      163 2 05 13:33 d2-v0.6.9/man/._d2.1
-rw-r--r--  0 nca    staff     6422 2 05 13:33 d2-v0.6.9/man/d2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

3 participants