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

feat: Adding self-extracting file as an optional feature #31

Merged
merged 97 commits into from
Nov 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
58eda9c
Adding self-executable
prsabahrami Jul 23, 2024
175ed05
Added header.sh
prsabahrami Jul 23, 2024
4ae4b35
Adding archive directly to shar
prsabahrami Jul 24, 2024
e5171a0
Finished self-extracting files
prsabahrami Jul 24, 2024
cecfe4e
Adding tests
prsabahrami Jul 24, 2024
447a6e2
Remove extra line in header.sh
prsabahrami Jul 25, 2024
c2290a6
fix ci
pavelzw Jul 25, 2024
506ff30
Removing extra print in header file
prsabahrami Jul 25, 2024
9cf18a3
Fixing extraction error in header.sh
prsabahrami Jul 25, 2024
b23c1a9
Initialized extractor
prsabahrami Aug 3, 2024
4bed827
Update chore.yml
prsabahrami Aug 3, 2024
cd71898
Merge branch 'Quantco:main' into main
prsabahrami Aug 3, 2024
85d50eb
Update ci.yml
prsabahrami Aug 3, 2024
5990275
Added extractor
prsabahrami Aug 5, 2024
78352cb
Fixed unpack shell script
prsabahrami Aug 5, 2024
34ece1e
Merge branch 'main' into selfexec_support
prsabahrami Aug 7, 2024
bab4334
Updated Cargo.toml and Cargo.lock
prsabahrami Aug 21, 2024
5a409cc
Merge branch 'main' into selfexec_support
prsabahrami Aug 21, 2024
2c70aa1
Fixed unpack.rs
prsabahrami Aug 21, 2024
9591883
Merge branch 'main' into selfexec_support
prsabahrami Aug 22, 2024
aeb8873
Revert "Merge branch 'main' into selfexec_support"
prsabahrami Aug 22, 2024
0137e5b
Fixed cargo.toml and added support for windows
prsabahrami Aug 22, 2024
04b3a45
Adding tests
prsabahrami Aug 31, 2024
90c1014
Merge branch 'main' into selfexec_support
prsabahrami Sep 5, 2024
62ec962
Fixed merge conflict
prsabahrami Sep 5, 2024
b7abd97
Update dependencies
prsabahrami Sep 6, 2024
89a242d
added download to pack
prsabahrami Sep 20, 2024
1bf7523
Added windows support
prsabahrami Sep 22, 2024
4157a22
added tests
prsabahrami Sep 22, 2024
1109360
added tests and run fmt
prsabahrami Sep 22, 2024
5c06d2b
remove extra function in unpack
prsabahrami Sep 22, 2024
76d41fc
Remove extractor tests
prsabahrami Sep 22, 2024
db13b4a
Update src/header.sh
prsabahrami Oct 11, 2024
9d2c1ac
Update src/header.sh
prsabahrami Oct 11, 2024
e980ec1
Update src/main.rs
prsabahrami Oct 11, 2024
bc037b5
Update tests/integration_test.rs
prsabahrami Oct 11, 2024
cc6b42e
Update tests/integration_test.rs
prsabahrami Oct 11, 2024
6bf5da3
Remove header file from exception in pre-commit.
prsabahrami Nov 25, 2024
7151957
merge upstream/main into selfexec_support
prsabahrami Nov 25, 2024
f31cce3
Remove -f from header files. Added status code to pack.rs error and o…
prsabahrami Nov 25, 2024
69fc8d6
Merge branch 'main' into selfexec_support
prsabahrami Nov 25, 2024
738dafc
add reproducible test for executable script
prsabahrami Nov 25, 2024
094e2b2
whitespace fix
prsabahrami Nov 25, 2024
11ffbdf
Change output_file to optional and add default values
prsabahrami Nov 25, 2024
2633cdb
run fmt
prsabahrami Nov 25, 2024
7943ef4
Use bash by default to test
prsabahrami Nov 26, 2024
25e3a81
replace sed with awk
prsabahrami Nov 26, 2024
6a036c2
Merge branch 'main' into selfexec_support
pavelzw Nov 26, 2024
1fb28ef
Support two versions of base64
prsabahrami Nov 26, 2024
96dcd2b
Minor fix with base64
prsabahrami Nov 26, 2024
790a846
Update tests/integration_test.rs
prsabahrami Nov 26, 2024
79c6b1d
Update tests/integration_test.rs
prsabahrami Nov 26, 2024
5520df4
Update src/header.ps1
prsabahrami Nov 26, 2024
f0ca3fc
Update Cargo.toml
prsabahrami Nov 26, 2024
9055d09
Update src/header.sh
prsabahrami Nov 26, 2024
7e5655b
removed verbosity and quiet flags check from headers
prsabahrami Nov 26, 2024
82eceea
Merge branch 'selfexec_support' of github.com:prsabahrami/pixi-pack i…
prsabahrami Nov 26, 2024
bf7134c
Update src/header.sh
prsabahrami Nov 26, 2024
edfeb46
Merge branch 'selfexec_support' of github.com:prsabahrami/pixi-pack i…
prsabahrami Nov 26, 2024
921b701
Update tests/integration_test.rs
prsabahrami Nov 26, 2024
54f8030
Update tests/integration_test.rs
prsabahrami Nov 26, 2024
a305e3b
Update tests/integration_test.rs
prsabahrami Nov 26, 2024
254fa1e
Fix pack_fle default for windows
prsabahrami Nov 27, 2024
b557b6a
Merge branch 'selfexec_support' of github.com:prsabahrami/pixi-pack i…
prsabahrami Nov 27, 2024
04d215e
Fixed small ordering issue
prsabahrami Nov 27, 2024
407c1cb
Assert executable bits exist
prsabahrami Nov 27, 2024
71058b6
Fix issue with setting the default output file
prsabahrami Nov 27, 2024
1151f6a
Add permission for the executable on unix along with tests
prsabahrami Nov 27, 2024
f2dd16d
Pass args to pixi-pack directly instead of parsing
prsabahrami Nov 27, 2024
888f461
set the executable bit only on unix systems
prsabahrami Nov 27, 2024
112970c
Remove extra comment in header.sh
prsabahrami Nov 27, 2024
69cb2ac
Minor fixes
prsabahrami Nov 27, 2024
5e5387a
Added tempdir removal
prsabahrami Nov 27, 2024
40017d1
replace "env" with options.unpack_options.env_name
prsabahrami Nov 27, 2024
9e31bc0
Replace tail and head with sed
prsabahrami Nov 27, 2024
833e179
rnu fmt
prsabahrami Nov 27, 2024
35df7c0
shellcheck and readme
pavelzw Nov 27, 2024
6a72521
add $ErrorActionPreference = "Stop"
pavelzw Nov 27, 2024
d03d895
exit on failure
pavelzw Nov 27, 2024
2caa939
minor fix
prsabahrami Nov 27, 2024
889f555
Merge branch 'selfexec_support' of github.com:prsabahrami/pixi-pack i…
prsabahrami Nov 27, 2024
6e8b915
Merge branch 'main' into selfexec_support
pavelzw Nov 27, 2024
b4ad711
fix reproducibility test
pavelzw Nov 27, 2024
012b338
fmt
pavelzw Nov 27, 2024
c45c049
Print args for debugging
prsabahrami Nov 27, 2024
6f9cda6
Merge branch 'selfexec_support' of github.com:prsabahrami/pixi-pack i…
prsabahrami Nov 27, 2024
e3e588e
Fix args issue on windows
prsabahrami Nov 27, 2024
0b0f01b
Windows args fix
prsabahrami Nov 27, 2024
c2c1eea
Update Win64 snapshot
prsabahrami Nov 27, 2024
79ae7fa
Added built-on-win snapshots
prsabahrami Nov 27, 2024
31ccdbf
use clrf in header.ps1
pavelzw Nov 28, 2024
06e4c73
use \r\n for windows executable
pavelzw Nov 28, 2024
1ed05d9
force line endings
pavelzw Nov 28, 2024
f5a32fc
reproducible on windows as well
pavelzw Nov 28, 2024
ec67d22
add test for line endings
pavelzw Nov 28, 2024
3b03267
Bump version
pavelzw Nov 28, 2024
a9b67a3
fix shas
pavelzw Nov 28, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
# GitHub syntax highlighting
pixi.lock linguist-language=YAML

src/header.ps1 text eol=crlf
src/header.sh text eol=lf
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ env/
environment.yml
environment
environment.tar
environment.tar.zst
environment.tar.zstd
environment.sh
environment.ps1
pixi-pack.json
unpack/

Expand Down
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@ repos:
entry: pixi run -e lint taplo format
language: system
types: [toml]
# shellcheck
- id: shellcheck
name: shellcheck
entry: pixi run -e lint shellcheck
language: system
types: [shell]
116 changes: 72 additions & 44 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pixi-pack"
description = "A command line tool to pack and unpack conda environments for easy sharing"
version = "0.2.2"
version = "0.3.0"
edition = "2021"

[features]
Expand Down Expand Up @@ -56,6 +56,7 @@ url = "2.5.3"
fxhash = "0.2.1"
tempfile = "3.13.0"
walkdir = "2.5.0"
base64 = "0.22.1"

[dev-dependencies]
async-std = "1.13.0"
Expand Down
Loading
Loading