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

godot-export-templates: Linux exports are huge #170470

Closed
pacien opened this issue Apr 26, 2022 · 0 comments · Fixed by #170472
Closed

godot-export-templates: Linux exports are huge #170470

pacien opened this issue Apr 26, 2022 · 0 comments · Fixed by #170472
Assignees

Comments

@pacien
Copy link
Contributor

pacien commented Apr 26, 2022

Describe the bug

The nixpkgs Godot export template for Linux is huge (about 500MB) and causes
all game exports to be at least as heavy.

Expected behavior

The export template and exported games should have the reasonable base size
below 50MB, like when generated with the pre-compiled binary templates
downloaded directly from the Godot website.

Additional context

Stripping the export templates may help, as suggested in the upstream
documentation:
https://docs.godotengine.org/en/stable/development/compiling/optimizing_for_size.html

Not sure of why it's not done automatically.

Notify maintainers

CC: @Twey @jojosch

@pacien pacien self-assigned this Apr 26, 2022
pacien added a commit to pacien/nixpkgs that referenced this issue Sep 17, 2022
Stripping reduces the template size from around 500MB to 40MB for Linux.
This is added explicitly here because mkDerivation does not automatically
strip binaries in the template directory.

This also impacts the size of the exported games and programs.
For example, here are the size of the `oh-my-git` package using this
template, without and with stripping:

```
❯ du -sh result*/
375M	result-oh-my-git-without-strip/
45M	result-oh-my-git-with-strip/
```

GitHub: closes NixOS#170470
winterqt pushed a commit that referenced this issue Sep 26, 2022
Stripping reduces the template size from around 500MB to 40MB for Linux.
This is added explicitly here because mkDerivation does not automatically
strip binaries in the template directory.

This also impacts the size of the exported games and programs.
For example, here are the size of the `oh-my-git` package using this
template, without and with stripping:

```
❯ du -sh result*/
375M	result-oh-my-git-without-strip/
45M	result-oh-my-git-with-strip/
```

GitHub: closes #170470
github-actions bot pushed a commit that referenced this issue Sep 26, 2022
Stripping reduces the template size from around 500MB to 40MB for Linux.
This is added explicitly here because mkDerivation does not automatically
strip binaries in the template directory.

This also impacts the size of the exported games and programs.
For example, here are the size of the `oh-my-git` package using this
template, without and with stripping:

```
❯ du -sh result*/
375M	result-oh-my-git-without-strip/
45M	result-oh-my-git-with-strip/
```

GitHub: closes #170470
(cherry picked from commit cb2e699)
winterqt pushed a commit that referenced this issue Sep 26, 2022
Stripping reduces the template size from around 500MB to 40MB for Linux.
This is added explicitly here because mkDerivation does not automatically
strip binaries in the template directory.

This also impacts the size of the exported games and programs.
For example, here are the size of the `oh-my-git` package using this
template, without and with stripping:

```
❯ du -sh result*/
375M	result-oh-my-git-without-strip/
45M	result-oh-my-git-with-strip/
```

GitHub: closes #170470
(cherry picked from commit cb2e699)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant