Skip to content

Commit

Permalink
fix: remove non-necessary binary compression
Browse files Browse the repository at this point in the history
Signed-off-by: Lincoln Wallace <[email protected]>
  • Loading branch information
locnnil committed Oct 17, 2024
1 parent 6fa6f67 commit 2642669
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions snapcraft/extensions/env_injector.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,12 @@ def get_parts_snippet(self) -> Dict[str, Any]:
"source-tag": "v1.0.0-beta",
"plugin": "nil",
"build-snaps": ["rustup"],
"build-packages": ["upx-ucl"], # for binary compression
"override-build": f"""
rustup default stable
rustup target add {toolchain}
cargo build --target {toolchain} --release
mkdir -p $SNAPCRAFT_PART_INSTALL/bin/command-chain
# compress the binary
upx --best --lzma target/{toolchain}/release/env-exporter
cp target/{toolchain}/release/env-exporter $SNAPCRAFT_PART_INSTALL/bin/command-chain
""",
Expand Down
4 changes: 0 additions & 4 deletions tests/unit/extensions/test_env_injector.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,12 @@ def test_get_parts_snippet(self, envinjector_extension, unsupported_arch):
"source-tag": "v1.0.0-beta",
"plugin": "nil",
"build-snaps": ["rustup"],
"build-packages": ["upx-ucl"], # for binary compression
"override-build": f"""
rustup default stable
rustup target add {toolchain}
cargo build --target {toolchain} --release
mkdir -p $SNAPCRAFT_PART_INSTALL/bin/command-chain
# compress the binary
upx --best --lzma target/{toolchain}/release/env-exporter
cp target/{toolchain}/release/env-exporter $SNAPCRAFT_PART_INSTALL/bin/command-chain
""",
Expand Down

0 comments on commit 2642669

Please sign in to comment.